Is there a shortcut for starting search in different search modes, e.g. normal and regex search mode?
-
Hi,
When I press CTRL-F the search opens and I can use the radio buttons to select a search mode (using the mouse or navigating using the tab and arrow keys)
However, I am switching between different search modes fairly often and therefore I’d like to know:-
is there any way to switch from normal search mode to regex search mode using a shortcut after opening the serach with ctrl-F?
-
Or even better: is there a shortcut for starting a search in normal mode and another shortcut for starting search in regex mode?
-
If not, can I somehow define such shortcuts on my own?
Since I am switching between them very often that would be really a time saver.
Thanks -
-
@Sebastian-Freeh said in Is there a shortcut for starting search in different search modes, e.g. normal and regex search mode?:
- is there any way to switch from normal search mode to regex search mode using a shortcut after opening the serach with ctrl-F?
Yes.
- Alt-N = Normal search
- Alt-X = Extended
- Alt-G = Regular expression.
In fact,
Alt+
any underlined letter on text items in the Find dialog will activate that component.Cheers.
-
@Michael-Vincent Thanks!
When I use English as localization that works perfectly!
When I swith to german however, my native language, the unterlined characters are a bit different:ALT-l for normal
ALT-i for extended
ALT-R for regex (but ambiguoesly also used for backwards search (Rückwärts suchen))When I press ALT-i it works perfectly fine and activates the radio button.
When pressing ALT-l or ALT-R however, the marker jumps to normal (in german Normal) but the radio button is not activated. Pressing ENTER does not activate the radio button. Is there any way to to toggle the radio button when the marker is on it?
Switching to english localization is not an option in the long-term…
Thanks for any ideas -
@Sebastian-Freeh said in Is there a shortcut for starting search in different search modes, e.g. normal and regex search mode?:
If not, can I somehow define such shortcuts on my own?
Make them anything you like.
Presume you are using the English translation of Notepad++ (but similar for other languages if you use something else).
Edit the English_customizable.xml file.
Find the relevant area.
Change, for N++'s “Count” function as an example:<Item id="1614" name="Coun&t"/>
to<Item id="1614" name="&Count"/>
with the
&
part being the important part, to change the accelerator from Alt+t to Alt+c.
Make sure you don’t define two things with the same combo!
Save.
Set your Localization toEnglish (customizable)
.
Profit.So a bit light on the details here, but if more is wanted, can certainly supply.
-
@Sebastian-Freeh said in Is there a shortcut for starting search in different search modes, e.g. normal and regex search mode?:
Is there any way to to toggle the radio button when the marker is on it?
Space bar press+release?
By “marker” I presume you mean the indication that shows you you have input focus on a certain control?
-
@Alan-Kilborn
Space bar press+release?Thanks! That worked like a charme!
By “marker” I presume you mean the indication that shows you you have input focus on a certain control?
Yes, that’s exactly what I meant
-
@Alan-Kilborn said in Is there a shortcut for starting search in different search modes, e.g. normal and regex search mode?:
Make them anything you like.
Thank you, for the explanation I will definitly try it out and let you know how it worked for me!