pnedev / comparePlus

Compare plugin for Notepad++
GNU General Public License v3.0
1.01k stars 139 forks source link

[Suggestion] Please, add difference type filter #260

Open VladiStep opened 3 years ago

VladiStep commented 3 years ago

It would be nice if you add the "difference type filter" - possibility to show only selected types of difference (added, missing, moved, differs...)

pnedev commented 3 years ago

This is a nice suggestion, thanks

AlexVercammen commented 3 years ago

+1. A work around is to change the color assignment then revert to default if you want. In my case, "Change Line" has been set to bright yellow so the lines would pop-out when scrolling through. But you still need to catch them and filter would isolate lines instead!

Carm01 commented 1 year ago

I like this enhancement, however there is no way to copy or save the displayed data. You can choose copy, but if there are non sequential lines then all the data in between will copy.

I think being able to save just the differential data would be extremely helpful.

Thanks!

pnedev commented 1 year ago

Hello @Carm01 ,

Yes, this behavior comes from Notepad++'s editing engine - Scintilla. When lines are hidden (so they are not visible to the user) and if you copy a block of lines around them they are also copied. This is Scintilla limitation and cannot be directly fixed by the plugin. The only way around this is adding another 'custom copy' plugin command that manually copies only the visible lines and that new command should be used by the user in place of the standard CTRL-C (editor Copy) operation. I will consider adding such command.

BR