How to change command-palette scroll key bindings in atom -
i'm new atom user , want override atom command palette (shift-ctrl-p) scrolling key bindings more vi friendly ctrl-n
, ctrl-p
instead of annoying arrow keys (which force me take hands off home row).
just clear, don't want change key binding brings command palette, key bindings use scroll through list once it's up:
i can find binding override command palette toggle:
as can see in following config file, was able override autocomplete
scrolling, , hope same command palette. i've tried 'command-palette:up'
,'command-palette:down'
, 'command-palette:move-up'
etc. no avail.
here's keymap.cson.
# atom flight manual: # https://atom.io/docs/latest/using-atom-basic-customization#cson #vt add 'body atom-text-editor.autocomplete-active': 'ctrl-p': 'autocomplete-plus:move-up' 'ctrl-n': 'autocomplete-plus:move-down' 'alt-p': 'autocomplete-plus:page-up' 'alt-n': 'autocomplete-plus:page-down' 'home': 'autocomplete-plus:move-to-top' 'end': 'autocomplete-plus:move-to-bottom' # vim-plus ex mode 2016-04-18 'atom-text-editor.vim-mode-plus.normal-mode': ':': 'vim-mode-plus-ex-mode:open' '!': 'vim-mode-plus-ex-mode:toggle-setting' # add cmd palette key bindings --> these not work. 'body .native-key-bindings': 'ctrl-p': 'command-palette:up' 'ctrl-n': 'command-palette:down' #vt end
i've been impressed key binding support in atom far. i'd surprised if couldn't handle but, alas, think might case.
does know of way this?
atom 1.7.2, linux
i able single line scroll work, not page scroll work following in keymap.cson
:
'atom-workspace': # these work 'ctrl-p' : 'core:move-up' 'ctrl-n' : 'core:move-down' # these don't work 'alt-p' : 'core:page-up' 'alt-n' : 'core:page-down'
it nice have page scroll well, should able narrow down list down typing in text, don't foresee needing page-up, page-down often.
now i'm happy.
Comments
Post a Comment