@Hans-Schulze said in Preferences option to show only one line in search results:
Which use case needs all the search hits explicitly listed as a separate result?
Often people are short-sighted when they complain.
Here is the answer: When a line in the Find-result window is double-clicked, the editor window is adjusted to find the match. If multiple matches per line occur, the logic needs to know which match should be highlighted and the caret placed at.
To produce just one line in the Find-result window for a line in the editor window that has multiple matches, use this type of regular expression find-all: ABC(?-s).*? This will find the first matching ABC on a line and will include the rest of the line in that match. Thus, even if the remainder of the line contains more ABC, there is only one match for the line. Disclaimer: I’m not near Notepad++ right now where I can test the above, so I can only say I think it will work. It may need some tweaking.
Should be easy to implement.
This is a great statement, most often cited by people that have no clue about software development. Perhaps the OP will respond and say they are a long-time software developer; to which I would then say “Shame on you for making such a statement, then”. :)