Sublime Forum

Remap or disable "Show Console"

#1

Hello,

I’m trying to remap or disable the keymap for “Show Console”.
I’ve tried this:
[
{ “keys”: [“ctrl+alt+`”], “command”: “show_panel”, “args”: {“panel”: “console”, “toggle”: true} }
]

New keymap works, but the default [“ctrl+`”] works too, it’s confusing.
I need this shortcut for the terminal pop-up action.

How can I disable that function or change the default value?

0 Likes

#2

Key bindings are unique based on the keys that they contain (and optional context items that indicate when they apply) not the command that they execute. As such your user defined keymap only augments bindings and doesn’t replace them. It is possible for example to have multiple key bindings bound to the same command if desired.

If you want Ctrl+` do something different than it is bound to by default, then you would need to add a binding for it in your user keymap and change the command that it executes as appropriate. You can effectively disable a key binding by using a command that doesn’t exist (generally you would use the command name noop for this, which stands for No Operation).

1 Like

#3

Thanks! It works perfectly.

0 Likes