Hello, @coises and All,
FIRST test. Let’s suppose I chose these settings :
[image: 1790513241990-619541f4-7ee4-45ce-9bfb-48be28fa2c81-image.jpeg]
You note that I unchecked the two options Default commands automatically search within selections and Default commands automatically search within marked text. Thus, all default commands will always apply to whole document
Note also that I checked the two options Always clear selections before Select command. (Otherwise add to existing selections.) and the Always unmark all text before Mark command. (Otherwise add to existing marked text.)
And that I decided to not bookmark the lines containing a marked text :
[image: 1790513284780-23de9898-4c1c-4ddf-8f36-447fb9a401ed-image.jpeg]
Then, starting with that text :
bla
blah
This is the test to do
bla
blah
test
bla
blah
I marked the two words test with the Mark command or the M key. Now, given the above parameters, it just marked these two words.
[image: 1790513414255-03329b13-4012-4cac-8f64-2f61c1336e03-image.jpeg]
[image: 1790513542631-7348f86c-56e9-46d1-b153-778f609c608e-image.jpeg]
Then, using the Synchronize bookmarks to marked text option, ( Ctrl + Shift + Z ), it bookmarked the lines 4 and 7 => OK
[image: 1790513588549-475bac52-3747-4bc9-81ef-b3995130ea17-image.jpeg]
Now, using the Remove marks from active document option ( Ctrl + Shift + R ), it deleted any marked text. However the bookmarks remain.
[image: 1790513633030-3767b2d0-be9d-4e0c-83d5-63f6882ff45d-image.jpeg]
Is this behavior logical as you said that, even when the Bookmark lines when marking text is not checked, the Keep bookmarks synchronized with marked text option is still honored ?
SECOND test :
I now decided to check the Bookmark lines when marking text option ( Ctrl + B )
Again, I marked the two words test with the Mark command or the M key. Given the modified parameters, it correctly marked these two words and bookmarked the lines 4 and 7
Then using the Remove marks and bookmarks from active document option ( Ctrl + Shift + R ), it deleted, both, marked text and bookmarks => OK
Remark that this command is now labelled Remove marks and bookmarks ..., unlike Remove marks ... in the first test : nice !
THIRD test :
Again, I marked the two words with a Mark command. Thus, the snapshot below :
[image: 1790513778688-af1745d6-6e7e-4036-a04f-e86675835818-image.jpeg]
Then, I used the Invert marked text option ( Crl + Shift + I ). I got this snapshot :
[image: 1790513817663-c0bbc189-4c13-4fd8-a8d3-a2920d7ad3c4-image.jpeg]
That’s not exactly what I expected !
I wanted to invert all the bookmarks, FIRST and SECONDLY, mark the contents of all the lines having a bookmark ! To do so, instead of searching the test word, I needed to use the regex ^((?!test).)*$ and I chose again the Mark command to get this behavior. See below :
[image: 1790513872378-96971287-7731-42c8-b420-5a0cece1df53-image.jpeg]
Note that this behavior is even better than with N++. Indeed, if you decide to use the Invert bookmarks feature, it swaps the bookmarks but leaves the marked text as is, in lines 4 and 7 !
Of course, @coises, to imagine the negative regex ^((?!test).)*$ compared to the positive regex test is easy enough with that simple example. However, how to quickly determine a correct negative regex vs a complicated positive regex ?
Of course, it’s obvious that your plugin is already very configurable and has numerous options ! So, may be, my request might not be reasonable !
BTW; I really appreciate the right click on any option. For example :
First, you right-click on the Hde all lines option ( Ctrl + Shift + D ) option => Any line of current document is hidden
Then, if you right-click on the Show selected lines (Shift: All) option => All lines of current document are visible again !
Best Regards,
guy038