Skip to content

Instantly share code, notes, and snippets.

@konstantinzolotarev
Last active November 9, 2016 14:00
Show Gist options
  • Save konstantinzolotarev/ec16688e05a5f039478f98b7bab935ee to your computer and use it in GitHub Desktop.
Save konstantinzolotarev/ec16688e05a5f039478f98b7bab935ee 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.
#
# 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/customizing-atom#customizing-key-bindings
# * https://atom.io/docs/latest/advanced/keymaps
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
'.platform-darwin atom-text-editor':
'cmd-r': 'unset!'
'cmd-d': 'unset!'
'cmd-e': 'unset!'
'cmd-delete': 'unset!'
'cmd-backspace': 'unset!'
'ctrl-r': 'build:trigger'
"atom-workspace atom-text-editor:not([mini])":
"cmd-]": "unset!"
"cmd-[": "unset!"
'atom-text-editor:not([mini])':
'cmd-d': 'editor:duplicate-lines'
'cmd-e': 'editor:delete-line'
'cmd-backspace': 'editor:delete-line'
'cmd-delete': 'editor:delete-line'
'alt-cmd-l': 'atom-beautify:beautify-editor'
'atom-workspace':
'alt-cmd-n': 'advanced-open-file:toggle'
'body':
'cmd-[': 'window:focus-pane-on-left'
'cmd-]': 'window:focus-pane-on-right'
'cmd-alt left': 'window:focus-pane-on-left'
'cmd-alt right': 'window:focus-pane-on-right'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment