Startup script to check "Highlight All" box on Incremental Search
-
I rely on Incremental Search as my default CTRL-F search because it’s perfect for my needs except that the “Highlight All” checkbox does not persist across sessions by being saved in config.xml. Initially, I thought this was simply a bug but after extensive investigation, I now suspect it’s a “stealth ‘Won’t Fix’” (see below for more on that). Hence, this request for a startup script to set the checkbox on every session start.
I’ve found some related info on these forums and on Github which may be helpful in creating such a script.
-
A script that finds the Incremental Search dialog (but then does something else).(https://community.notepad-plus-plus.org/topic/14271/keyboard-shortcut-for-next-previous-incremental-search-result/4)
-
A startup script that checks a checkbox (but it’s not this checkbox). (https://community.notepad-plus-plus.org/topic/22552/bookmark-line-becomes-unchecked-on-reopening-application/3)
-
A mention of this one line “notepad.menuCommand(MENUCOMMAND.SEARCH_FINDINCREMENT)” but that doesn’t appear to check the Highlight All checkbox.
Thanks!
Note: Further explanation of why I think this issue won’t be fixed in the program (at least anytime soon).
I’ve searched extensively and haven’t found a way to persist the “Highlight All” setting on Incremental Search. I found this been repeatedly reported as a bug (https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8375) and as a feature request on Github by many different users over the years.
The related issue of this checkbox being cleared every time the Incremental Search dialog closed was reported in 2019 (https://github.com/notepad-plus-plus/notepad-plus-plus/issues/7753) and marked fixed in 2020 (https://github.com/notepad-plus-plus/notepad-plus-plus/commit/12bb0efc7a2325034279f7be0674c80e591aa7ba)
The issue of this checkbox not persisting across sessions by being saved in config.xml was reported in 2019 and reported as still broken last year (https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14058) and immediately closed with no action or explanation.
This has already been discussed on these forums. (https://community.notepad-plus-plus.org/topic/12722/survey-incremental-search-usefulness/65?_=1705088702737) I’ve posted a request for an explanation on the still-open bug. (https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8375) That’s why I think it’s reasonable to assume that it won’t be fixed (at least anytime soon).
Sorry for the obfuscated links but as a new member the forum won’t let me post links.
—
moderator edit: linkified for you
-
-
A startup script that checks a checkbox (but it’s not this checkbox) https://community.notepad-plus-plus.org/topic/22552
I don’t think you read far enough into topic 22552; see this POSTING from that thread which is a script for exactly what you want.
-
@Alan-Kilborn kindly said :
which is a script for exactly what you want.
@markran, if you don’t know how to use such a script, our FAQ: Install/Run a script in Python Script even explains how to use a script like that, and even how to run that script at startup.
-
Doh! I’m not sure how I missed that so thank you for posting it for me.