Skip Menu |

This queue is for tickets about the Text-Diff-Parser CPAN distribution.

Report information
The Basics
Id: 64141
Status: rejected
Priority: 0/
Queue: Text-Diff-Parser

People
Owner: Nobody in particular
Requestors: dmuey [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



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
On Wed Dec 22 08:52:08 2010, DMUEY wrote: Show quoted text
> 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