Page 1 of 1

Find 'Match Whole Words' is not sticky

Posted: Fri Jul 17, 2020 3:29 pm
by Kryptryx
The 'Match Whole Words' option is not sticky. That is, it is cleared each time TextPad starts.

Is this new behavior, or has it always been that way?

If it is not a bug, it would be nice to have an option to make it sticky.

This is TextPad 8.4.2

Posted: Mon Jul 27, 2020 9:57 am
by bbadmin
Match Whole Words is cleared if the Find What box is initialized with text which cannot match a whole word. TextPad has always behaved like that.

In case you're not into regular expressions, you can achieve the same end by checking that option and surrounding your search text with \< ... \>. Note that to match any of .[{}()\*+?|^$ literally, you would then have to precede those characters with a backslash.

\< matches the start of a word boundary and \> matches the end, so they only need to be paired for matching whole words.

Keith MacDonald
Helios Software Solutions

Posted: Tue Jul 28, 2020 11:25 am
by Kryptryx
Match Whole Words is cleared if the Find What box is initialized with text which cannot match a whole word.
Yes, I am familiar with that behavior. However I am referring to the first use of find via F5. It always clears the 'Match Whole Words' option. I suspect it it because the initial string is empty. I am suggesting it should be preserved in this case.