You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however, it is not possible to set what value should be filled in for the Find What or Replace With text boxes.
The only current option is to use the slurp_find_string and slurp_replace_string commands, which take the selection from the buffer. However, these are also both Window commands, so there is no way to set the find/replace string without putting it into the main buffer first (i.e. one can't work around it by using a hidden output panel View to execute the commands on).
Please could it be made possible to set the find and replace strings either by:
specifying arguments to the show_panel command like window.run_command('show_panel', { 'panel': 'replace', 'regex': True, 'case_sensitive': False, 'whole_word': False, 'in_selection': False, 'wrap': True, 'highlight': True, 'preserve_case': True, 'find_string': 'foo', 'replace_string': 'bar' })
and/or by implementing new commands like set_find_string and set_replace_string which would take a string argument
The text was updated successfully, but these errors were encountered:
Currently, it is possible to execute the
show_panel
Window command and set a variety of options when showing thefind
orreplace
panels:however, it is not possible to set what value should be filled in for the
Find What
orReplace With
text boxes.The only current option is to use the
slurp_find_string
andslurp_replace_string
commands, which take the selection from the buffer. However, these are also both Window commands, so there is no way to set the find/replace string without putting it into the main buffer first (i.e. one can't work around it by using a hidden output panel View to execute the commands on).Please could it be made possible to set the find and replace strings either by:
show_panel
command likewindow.run_command('show_panel', { 'panel': 'replace', 'regex': True, 'case_sensitive': False, 'whole_word': False, 'in_selection': False, 'wrap': True, 'highlight': True, 'preserve_case': True, 'find_string': 'foo', 'replace_string': 'bar' })
set_find_string
andset_replace_string
which would take astring
argumentThe text was updated successfully, but these errors were encountered: