Skip to content

Find All in... feature request (formerly #1499) #5547

@DanielTheGreat

Description

@DanielTheGreat

MetaChuh closed this issue without any good explanation why, so I'm re-opening it, as suggested for unresolved issues. S/he suggested I try Notepad++ version 7.6.6, which I did, but with no change to the unwanted behaviour. If it was closed because the requested improvement was not thought worthy of doing, then please say so.

I don't use it often, but I like Notepad++ for the occasional coding (hobby) project! Just one little thing slightly annoys me, so I wondered whether others would agree to a small change to the way the 'Find All in...' feature operates...

I sometimes use 'Find All in All Opened Documents' (or the other one) to find all occurrences of a particular string that I want to check and/or edit. But if I search for a string (perhaps a variable or register name) that occurs twice (or more) in one line, the search results pane shows that line twice (or more). This simply clutters the search results, and seems to serve no useful purpose.

Here's an example:
define vca25 vca2_addr.bit.b5 // Voltage detection 0 enable bit

If I'm searching for 'vca2' to find everywhere the register is accessed, I don't need to see that line appear twice in the results; I just want to know every file and every line where that register appears.

Would it be practical (and acceptable to most users) to change the 'Find All' code such that when a string is identified in a particular file/line, that line is then skipped from further searching so it appears only once in the results pane?

I realise this will complicate the code a little, since I presume there is much common code between 'Find All in...' and 'Replace All in...' functions, whereas for 'Replace All in...' you do want every instance found, not just the first per line!

Thanks, Daniel
(Gerroa, Australia)

Metadata

Metadata

Assignees

Labels

acceptedenhancementProposed enhancements of existing featuresknown issueThe issue was known, but won't be fixed or cannot be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions