atom-keymap icon indicating copy to clipboard operation
atom-keymap copied to clipboard

Add something like disableKeymaps: true to package.json schema.

Open danielbayley opened this issue 9 years ago • 0 comments

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…

  1. Don't include bindings in keymaps/ and instead just suggest them in the README.
  2. Run an install:/postinstall: script from package.json to manually add package-name to packagesWithKeymapsDisabled 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.

danielbayley avatar Feb 07 '16 15:02 danielbayley