I’m using the Clipboard Manager and I have the “clipboard_manager_choose_and_paste” command bound to F3. I’ve been searching for how to alter { “keys”: “f3”], “command”: “clipboard_manager_choose_and_paste” }, to make it so if I hit F3 once I see the panel and if I hit it again without pasting the panel is hidden but I can’t figure out what to add to make that happen.
Toggle display of panel with keybinding
I don’t use this plugin and I’m not sure I understand what you want.
Didn’t hitting ESC close the panel ?
You can add a keymap to close (any) panel on f3 (basically an alias to ESC):
[code] { “keys”: “f3”], “command”: “hide_overlay”, “context”:
{ "key": "overlay_visible", "operator": "equal", "operand": true }
]
},[/code]
Otherwise, the plugin code must be modified to handle the close of the panel when the keymap is triggered and the panel is still open.
Do it yourself or open an issue on github.
Thanks for the help. I was able to do pretty much the same thing you’re suggesting myself already.
Yes, ESC closes the panel and I realize it’s close to F3 and kind of silly but it’s I’m using Vintageous and being a modal user I’d prefer to just use the same key to open and close the panel.
I don’t want to open an issue or fix it myself because the developer probably doesn’t care about my custom bindings and I don’t want to fork the repository for that one item.
I’ll keep digging because it seems like I should be able to access the already open clipboard manager panel and close that but not other open panels. I just don’t know how and can’t seem to sort out where or how to access a list of panels or windows that are currently open in Sublime.