Hello, @thomas-knoefel and All,
For example, in the screenshot below, using these different search-replacements, against the text below, I got these search results !
Notepad++ is a text editor and source code editor for use under Microsoft Windows. It support around 80 progamming languages with syntax highlighting and code folding. It allows working with multiple open files in a single window, thanks to its tabbed editing interface. Notepad++ is available under GPL and distributed as free software.
Notepad++ is a text editor and source code editor for use under Microsoft Windows.
bla
bla blah
It support around 80 progamming languages with syntax highlighting and code folding.
It allows working with multiple open files in a single window, thanks to its tabbed editing interface.
Notepad++ is available under GPL and distributed as free software.
[image: 1796034005765-4ad8d13e-2730-4575-86c5-f73220450a7f-image.jpeg]
But, after clicking, on the Next Search Result, The cursor went, successively, right after :
• The word 'Notepad++' only, in line 1
• The word 'Notepad++' only, in line 4
• The string 'aournd 80' only , in line 7
• The word 'multiple' only, in line 8
• The word 'Notepad++ only, in line 9
Thus, if I’m not mistaken, I consider that the options Next Search Result and Previous Search Result should rather be labelled as Next Line Result and Previous Line Result ! May be, I’m miss something obvious !?
On the contrary, when I subsequently ran a Replace All operation, the Next Replacement and Previous Replacement options did go, in turn, to the different replacements, particularly in case of several replacements in a same line !
Now, in your documentation, within the Settings section, you said regarding the Find: Search from cursor position option :
Find: Search from cursor position — If checked and Wrap around is off, “Find All”, “Replace All”, and “Mark Matches” start from the current cursor position. Runs over open documents or files never start at the cursor. If unchecked, operations always process the entire defined scope.
So, if I understand you clearly, this behavior can be summarized in the table below :
•================================•========================================•========================================•========================================•========================================•
In Settings\Search and Replace | Find: Search from cursor position ON | Find: Search from cursor position OFF | Find: Search from cursor position ON | Find: Search from cursor position OFF |
| | | | |
In MultiReplace dialog | Wrap around OFF | Wrap around OFF | Wrap around ON | Wrap around ON |
•================================•========================================•========================================•========================================•========================================•
| Find all | From CURSOR location | From START of file | From START of file | From START of file |
•--------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•
| Find in Docs | From START of files | From START of files | From START of files | From START of files |
•--------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•
| Find in Files | From START of files | From START of files | From START of files | From START of files |
•--------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•
| Replace All | From CURSOR location | From START of file | From START of file | From START of file |
•--------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•
| Replace in Docs | From START of files | From START of files | From START of files | From START of files |
•--------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•
| Replace in Files | From START of files | From START of files | From START of files | From START of files |
•--------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•----------------------------------------•
| Mark Matches | From CURSOR location | From START of file | From START of file | From START of file |
•================================•========================================•========================================•========================================•========================================•
And I’m really confused because these two options seem to serve the same purpose ! I probably misunderstood the underlying logic behind these two options. Please enlighten me on this !
Best Regards,
guy038