I know that you can show the Sublime Text Find and Replace panel using the show_panel (either with a key binding or with a plugin), and control which arguments are on / off.
Example launch from the Sublime Console panel:
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 })
What I would like to know is: is there a way to pre-populate the Find What: and Replace With: values?
I found this forum post , but it has no answer, and unofficial documentation will not help in this case.
I tried:
'find_what': 'string''replace_with': 'string''find_history': 'string''replace_history': 'string''find_history': ['string']'replace_history': ['string']'find': 'string''replace': 'string'
EDIT: I also tried:
charactersfind_characterslook_forsearch_forfind_regexfind_stringsearch_stringreplacementsearch_characters
and none of the above has any meaning - the panel is always pre-filled with the previous search and replaces the values, and not what I pass.
I know the slurp_find_string and slurp_replace_string that will take the current selection and update the Find What / Replace With values ββaccordingly, but I would like to do this without getting confused with the choices first - I just want to pass the values ββas arguments directly to the show_panel .
Does anyone know which parameters / arguments can be used to control this?
source share