Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

A user-defined keymap override should disable other keymaps for that command #38

Closed
jbrowning opened this issue Jun 24, 2014 · 2 comments

Comments

@jbrowning
Copy link

Use case: two commands share the same keybinding so I want to define my own keymap for one of the commands to resolve the conflict. Right now doing so results in two keymaps for the command: the custom one that I have defined as well as the one that conflicts.

@nathansobo
Copy link
Contributor

Have you tried binding each keystroke sequence explicitly to resolve the conflict?

# say these bindings conflict
'ctrl-x': 'a'
'ctrl-x': 'b'

# define new bindings for what you want
'ctrl-x': 'a' # this should be the most specific since it comes later in the cascade
'ctrl-y': 'b' # this is your new binding

Does this work for you?

@jbrowning
Copy link
Author

That does the trick, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants