atom-keymap
atom-keymap copied to clipboard
Add something like disableKeymaps: true to package.json schema.
Currently, keymaps can be disabled per package by adding the package-name
to packagesWithKeymapsDisabled
in ATOM_HOME/config.cson
(which propagates to the corresponding checkbox in settings view).
Ideally, package authors would be able to include default keybindings under keymaps/
, but easily have them disabled by default with [something like] disableKeymaps: true
in package.json.
Or alternatively, perhaps Atom should just disable them by default internally, without adding anything to the schema?
Existing solutions to this aren't ideal; as far as I can tell there are currently 2 options…
- Don't include bindings in
keymaps/
and instead just suggest them in the README. - Run an
install:
/postinstall:
script from package.json to manually addpackage-name
topackagesWithKeymapsDisabled
which is a bunch of extra code for such a small thing. (This can't be done from the main package code, since it would disable the package keymaps on every load… rendering the checkbox useless.)
See also #82.