Subject: | Add smarter MODIFY mode |
Hello,
nice module, thanks! One thing that'd be really useful in looking for
specific types of add, remove, and changes:
If you add a new item above a changed line 'Simplify' does not see it as
a MODIFY.
For example, change:
use XYZ;
to
# We want letters!
use XYD;
It sees 'use XYZ;' as 'REMOVE' and the other 2 as an 'ADD'. It'd be nice
to have a mode that'd do the MODIFY check in a given context, say the
last N surrounding changes.
...new(Simplify=>1,modify_context=>5);
change:
ADD '# We want letters!'
MODIFY [
'use XYZ;',
'use XYD;',
]
Any caveats, like ordering issues, would need noted in the POD of
course, but it'd be great to have!
Multiple lines would need handled too, e.g. like this simple set that
happens to be next to each other:
- abc
- def
+ abc howdy
+ def blah
MODFIY: [abc, abc howdy]
MODFIY: [def, def blah]
pretty tricky to implement fuzz like this I know, but would be awesome :)
thanks for your time
--
Dan Muey