Is there a way to have a script open the Find dialog with a given string as the search term?
I'm doing some pretty extensive editing of HTML files and need a few specific RegEx searches, but I also do a lot of content editing, which requires that I search for text around where I need to edit, which pushes my commonly-used RegEx expressions off the bottom of the recently-used list.
Creating a script to trigger the Find dialog would be extremely helpful.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, no, there isn't a way. The dialog uses either the selection or the last string it remembers internally, there is no way to give the search term to it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is there a way to have a script open the Find dialog with a given string as the search term?
I'm doing some pretty extensive editing of HTML files and need a few specific RegEx searches, but I also do a lot of content editing, which requires that I search for text around where I need to edit, which pushes my commonly-used RegEx expressions off the bottom of the recently-used list.
Creating a script to trigger the Find dialog would be extremely helpful.
Sorry, no, there isn't a way. The dialog uses either the selection or the last string it remembers internally, there is no way to give the search term to it.
<post deleted=""></post>
Last edit: Matt Keefo 2019-08-22