Skip to content

Instantly share code, notes, and snippets.

@Koriit
Last active July 11, 2017 15:59
Show Gist options
  • Save Koriit/4167a44ba887b7ce0563763c27950053 to your computer and use it in GitHub Desktop.
Save Koriit/4167a44ba887b7ce0563763c27950053 to your computer and use it in GitHub Desktop.
# 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:
# * http://flight-manual.atom.io/using-atom/sections/basic-customization/#_customizing_keybindings
# * http://flight-manual.atom.io/behind-atom/sections/keymaps-in-depth/
#
# If you're having trouble with your keybindings not working, try the
# Keybinding Resolver: `Cmd+.` on macOS and `Ctrl+.` on other platforms. See the
# Debugging Guide for more information:
# * http://flight-manual.atom.io/hacking-atom/sections/debugging/#check-the-keybindings
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
# replace ctrl-d with ctrl-shift-d
".platform-win32 atom-text-editor, .platform-linux atom-text-editor":
"ctrl-shift-D": "find-and-replace:select-next"
# new ctrl-d
"atom-workspace atom-text-editor:not([mini])":
"ctrl-d": "editor:duplicate-lines"
# new alt-1; overridden one does not matter
".platform-win32, .platform-linux":
"alt-1": "tree-view:toggle"
# New editor split shortcuts; overridden ones do not matter
"body":
"ctrl-shift-O": "pane:split-down-and-copy-active-item"
"ctrl-shift-E": "pane:split-right-and-copy-active-item"
"ctrl-alt-p": "window:focus-next-pane"
"shift-alt-up": "editor:add-selection-above"
"shift-alt-down": "editor:add-selection-below"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment