New feature: Allow additional line on each search results
-
When displaying search results, say it finds something on line 53 and 104…Have an option to show say 3 more lines. So the results would show 53 to 56 and 104 to 107.
Reason is that code is often formatted like
dosomething(param1,
param2,
param3);And we might want to see what is on line 3.
-
Something like this has been proposed before, and I’ll have to assume that the developer and other code contributors, while they recognize the value of the idea, have thought that implementing it might be awkward – not coding it, but rather what the resulting solution looked like. So…I wouldn’t count on seeing it natively in Notepad++.
However, it might be a nice suggestion for the Search++ plugin.
-
@Alan-Kilborn said in New feature: Allow additional line on each search results:
However, it might be a nice suggestion for the Search++ plugin.
Noted. This is certainly the time to consider it, while things are still unstable and I’m not hesitant to make potentially breaking changes. (Not that I expect to get beyond that state for at least a couple of months yet.) It would probably entail redesigning the way I create a search results list, especially if it is to be dynamic (i.e., that you can decide after you’ve done the search that you need to see more context).
@Alain-Savard, if you’re interesting in weighing in on this plugin-in-progress (I’m the author), there’s a thread about it here.