Sublime Forum

Activate a keybind only in a Find Results tab


I’d like Escape to cancel find in file operation, but only when the Find Results tab is opened

I’ve found the API that can detect whether the active sheet is a Find Results tab, but I don’t understand how to make this a condition for a keybind, only found conditions for the find in files panel

So what’s the keybinding condition equivalent to this plugin API?



If there is some view-level boolean setting that is only set in Find Results then you could use a keybinding context like {"key": ""}.

In fact, even if there isn’t, you could make one exist by adding it to the Syntax Specific Settings file for Find Results.

  "foo": true
1 Like


Great idea, thanks!