While the Find panel is opened, I wanted F3 to close that panel before going to the next match.
The only thing that I got to work was this:
- Code: Select all
import sublime,sublime_plugin
class findNextHidePanelCommand(sublime_plugin.WindowCommand):
def run(self):
self.window.run_command("hide_panel")
self.window.run_command("find_next")
- Code: Select all
keymap FILE:
{ "keys": ["f3"], "command": "find_next_hide_panel", "context":
[{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
},
Is there a simpler way to do this, for example inside of the keymap file ?
Thank you for you help
William.