Find 'Match Whole Words' is not sticky

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Kryptryx
Posts: 8
Joined: Tue Apr 14, 2020 5:51 pm

Find 'Match Whole Words' is not sticky

Post 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
User avatar
bbadmin
Site Admin
Posts: 1020
Joined: Mon Feb 17, 2003 8:54 pm
Contact:

Post 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
Kryptryx
Posts: 8
Joined: Tue Apr 14, 2020 5:51 pm

Post 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.
Post Reply