How do i unbind a key? #311
Replies: 1 comment
|
Keybindings are configured in your config.yml (global config is typically If you mean “disable a built-in default binding”: there isn’t a dedicated “unbind” flag—dash supports overriding bindings and adding custom ones. A practical workaround is to override the same key with a harmless no-op command. Example (override keybindings:
universal:
- key: x
name: noop
command: "true"On Windows, if keybindings:
universal:
- key: x
name: noop
command: "cmd /c exit 0"That effectively “unbinds” the key by replacing the action with a no-op. |
0 replies
Answer selected by
dlvhdr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Keybindings are configured in your config.yml (global config is typically
$HOME/.config/gh-dash/config.ymlon macOS/Linux or%USERPROFILE%\.config\gh-dash\config.ymlon Windows). So if you can just delete the key you want to unbind in the YAML.If you mean “disable a built-in default binding”: there isn’t a dedicated “unbind” flag—dash supports overriding bindings and adding custom ones. A practical workaround is to override the same key with a harmless no-op command.
Example (override
xto do nothing):On Windows, if
trueisn’t available in your shell, use: