Hi, @coises and All,
Regarding selection, I’m thinking about these new options in the Settings dialog :
- Selections -------------------------------------------------------------------------------------------
□ Fill the Find box from single selection in current document when opening the search++ dialog
□ Fill the Find box from single selection in current document when re-activating the search++ dialog
□ Fill the Find box from single selection in current document when clicking on the search++ dialog title
□ Only if the selection has no more than : 79 characters and 2 lines
□ Fill with the word containing the caret if nothing is selected
And, by default, the first and two last options would be checked
Do you think that make sense ? May be, would you preder to merge the first 3 options in this single one :
□ Fill the Find box from single selection in current document each time the search++ dialog is invoked
Now, I tested the multi-lines text, below, pasted in a new tab :
Bla blah
This is
a test
to verify
if everything
works correctly
foo bar
Then, the search of the 5 consecutive lines, below
This is
a test
to verify
if everything
works correctly
Would select the 5 lines above, with search in Plain mode
Now, the search of the 5 consecutive lines, below
This is
a test
to verify
if everything
works correctly
OR
SEARCH This is\Ra test\Rto verify\Rif everything\Rworks correctly\R
OR
SEARCH This is\r\na test\r\nto verify\r\nif everything\r\nworks correctly\r\n
Would select the 5 lines above, with search in Regex or ICU mode
Now using this regex :
(?x)
This[ ]is \R |
a[ ]test \R |
to[ ]verify \R |
if[ ]everything \R |
works[ ]correctly \R
It would match each entire line, from 2 to 6, of the new tab, with search in Regex mode
And using this regex :
(?x)
This\ is \R |
a\ test \R |
to\ verify \R |
if\ everything \R |
works\ correctly \R
It would match each entire line, from 2 to 6, of the new tab, with search in Regex or in ICU mode.
Seemingly, brackets to enclose the space character [ ] do not work with the ICU regex engine, when using the Free-Spacing mode !?
So all is fine, so far !!
BR
guy038