Hi,
I would like to create a command that would open the Replace panel, and then immediately change the focus to the “Replace With” field.
I tried the code below, it opens the panel correctly, but the focus remains unchanged
import sublime,sublime_plugin
class replacePanelCommand(sublime_plugin.WindowCommand):
def run(self):
view = self.window.active_view()
self.window.run_command("show_panel",{"panel": "replace"})
self.window.run_command("next_field")
Thank you for your help.
William