Hi, @coises and All,
@coises, I read carefully your last two posts and many thanks for all your explanations !
Regarding your point #3 :
You said :
I’m questioning the sense of that now. I’m thinking that if the user specifies “in selection” or ”in marked text,” and there is none, the search should fail with a message like “No marked text to search”
Indeed, it quite disturbing for example that, when no selection and no marked text exists, the Count in selection or Count in Marked Text options still return all the matches of current document ! Give it a try, searching for the insensitive word fix within the last change.log file ( You should get 32 matches ! )
So I support your idea that, in this specific case, the search should fail with the message No marked text to search or No selection to search
Regarding your point #1 :I totally understand your logic. This make sense !
Regarding your point #2You began with :
Mark commands that don’t specify a scope …
Are we agree that you’re speaking about the Mark Before and Mark after options ONLY ? Presently, as you said, these two commands, not restricted to a scope, search throughout all file contents.
Now, as expressed in your very last post, I do support your idea to avoid any command, containing Before or After, that do not include a scope ( in Selection, in marked Text and in Whole Document ). Thus, that should solve automatically this problem ;-))
One question :
Let’s suppose the v8.9.3 change.log in a tab
Now, enter the regex (?si) 1.+?(?=^\R) in the Search dialog
Click on the ▼, after the defeautl Find All option
Run the Mark > Mark in Whole Document option
=> Message : Marked 4 matches
Now, with the (?si) 1.+?(?=^\R) regex still present in the Find dialog
Run the Mark > Mark in Marked Text option
=> We get the message No matches found in marked text. Is this coherent, @coises ?. To my mind, I was expecting the message 4 matches in marked text !
Of course, I know that, normally, I should have changed the search, in between ! For example :
Write the (?i)fix regex, in the Find dialog
Run again the Mark > Mark in Marked Text option
=> The fix word, whatever its case, is now marked, from all the previous marked regions, ONLY !
You’ll note that the fix string within all the lines beginning with Notepad++, which were not concerned by the previous search, are not marked, as expected !
Regarding the Remove marks from all open documents and Remove marks from documents in this view options, in the Tools dialog :Could you move them to an other place of the Tools dialog, in order to not be close to the Remove marks from active document option, that we’ll probably use more often ?
OR :
Could you add a confirmation dialog for these two specific options ?
Best regards
guy038