Sublime Forum

How to detect in keybindings if sidebar is open?

#1

I’d like cmd+1 to alternate between reveal in sidebar (if closed) and if sidebar is open, close it.

if closed: { “keys”: [“super+1”], “command”: “reveal_in_side_bar”}

if open: { “keys”: [“super+1”], “command”: “toggle_side_bar” }

I don’t know how to do the if part . Thanks

0 Likes

#2

this was answered on SO:

0 Likes