# Your keymap # # Atom keymaps work similarly to style sheets. Just as style sheets use # selectors to apply styles to elements, Atom keymaps use selectors to associate # keystrokes with events in specific contexts. Unlike style sheets however, # each selector can only be declared once. # # You can create a new keybinding in this file by typing "key" and then hitting # tab. # # Here's an example taken from Atom's built-in keymap: # # 'atom-text-editor': # 'enter': 'editor:newline' # # 'atom-workspace': # 'ctrl-shift-p': 'core:move-up' # 'ctrl-p': 'core:move-down' # # You can find more information about keymaps in these guides: # * https://atom.io/docs/latest/using-atom-basic-customization#customizing-key-bindings # * https://atom.io/docs/latest/behind-atom-keymaps-in-depth # # This file uses CoffeeScript Object Notation (CSON). # If you are unfamiliar with CSON, you can read more about it in the # Atom Flight Manual: # https://atom.io/docs/latest/using-atom-basic-customization#cson 'atom-workspace atom-text-editor:not([mini])': # 'ctrl-d': 'editor:duplicate-lines' 'ctrl-d': 'duplicate-line-or-selection:duplicate' 'ctrl-shift-d': 'editor:delete-line' 'alt-up': 'editor:move-line-up' 'alt-down': 'editor:move-line-down' 'ctrl-shift-down': 'editor:toggle-soft-wrap' 'alt-shift-d': 'find-and-replace:select-next' # Was ctrl-d (conflicting natively with editor:duplicate-lines!) 'ctrl-q': 'toggle-quotes:toggle' 'ctrl-shift-r': 'tern:references' 'alt-shift-r': 'tern:rename' 'ctrl-alt-z': 'tern:marker-checkpoint-back' # Mmmm, doesn't work 'ctrl-alt-d': 'tern:definition' 'alt-o': 'tern:documentation' 'atom-workspace atom-text-editor': 'ctrl-backspace': 'editor:delete-to-previous-word-boundary' 'ctrl-delete': 'editor:delete-to-next-word-boundary' # https://github.com/atom/atom/issues/4026 'ctrl-k ctrl-s': 'window:save-all'