Open jbranchaud opened 10 years ago
I think last package loaded wins.
Interesting, and what about keymap.cson
in ~/.atom
? Does that trump all? Also, you can assign keybindings in init.coffee
. Ahhh.
I also found this http://discuss.atom.io/t/keymap-style-guide/4432
@tombell thanks for the link, that is really helpful. We will have to note some of that in the docs somewhere, perhaps in best practices.
I am thinking about throwing together a package that checks all the keybindings of enabled packages and keymap.cson
and alerts you when there are conflicts so that you can figure out if certain functionality is being clobbered. Perhaps a status bar indicator that can be clicked to pull up a view of conflicting keybindings.
With regard to my last comment, it looks like I completely missed the keybinding resolver package that ships with Atom. Open it with Cmd-.
and then try out different keybindings to see what they resolve to and what commands are being clobbered (source).
I am wondering how Atom handles a situation when two packages try to define the same keybinding for different functionality? I am going to look into this myself, but figured I would put this issue up for anyone who already has some insights.
Also, this may be worth a write up somewhere in the site depending on what we find and how that info might be utilized when creating a new package.