Skip to content

Instantly share code, notes, and snippets.

@torufurukawa
Created November 18, 2016 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torufurukawa/e8bbd409ad16ab57a899e3be9a64cc0e to your computer and use it in GitHub Desktop.
Save torufurukawa/e8bbd409ad16ab57a899e3be9a64cc0e to your computer and use it in GitHub Desktop.
Atom keymap settings
# 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).
# Atom Flight Manual:
# http://flight-manual.atom.io/using-atom/sections/basic-customization/#_cson
'atom-workspace atom-text-editor':
'ctrl-a': 'editor:move-to-beginning-of-line'
'ctrl-h': 'core:backspace'
'ctrl-n': 'core:move-down'
'ctrl-p': 'core:move-up'
'ctrl-b': 'core:move-left'
'ctrl-f': 'core:move-right'
'ctrl-k': 'editor:cut-to-end-of-line'
'ctrl-m': 'editor:newline'
'ctrl-k ctrl-l': 'unset!'
'ctrl-k ctrl-u': 'unset!'
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor':
'ctrl-e': 'editor:move-to-end-of-line'
'ctrl-d': 'core:delete'
'ctrl-k ctrl-d': 'unset!'
'atom-workspace atom-text-editor:not([mini])':
'ctrl-k ctrl-0': 'unset!'
'ctrl-k ctrl-1': 'unset!'
'ctrl-k ctrl-2': 'unset!'
'ctrl-k ctrl-3': 'unset!'
'ctrl-k ctrl-4': 'unset!'
'ctrl-k ctrl-5': 'unset!'
'ctrl-k ctrl-6': 'unset!'
'ctrl-k ctrl-7': 'unset!'
'ctrl-k ctrl-8': 'unset!'
'ctrl-k ctrl-9': 'unset!'
'body':
'shift-cmd-c': 'core:copy'
'shift-cmd-v': 'core:paste'
'shift-cmd-x': 'core:cut'
'shift-cmd-a': 'core:select-all'
'shift-cmd-z': 'core:undo'
'ctrl-k ctrl-alt-w': 'unset!'
'ctrl-k ctrl-down': 'unset!'
'ctrl-k ctrl-down': 'unset!'
'ctrl-k ctrl-left': 'unset!'
'ctrl-k ctrl-n': 'unset!'
'ctrl-k ctrl-p': 'unset!'
'ctrl-k ctrl-right': 'unset!'
'ctrl-k ctrl-up': 'unset!'
'ctrl-k ctrl-w': 'unset!'
'ctrl-k down': 'unset!'
'ctrl-k left': 'unset!'
'ctrl-k right': 'unset!'
'ctrl-k up': 'unset!'
'.platform-win32, .platform-linux':
'ctrl-k ctrl-b': 'unset!'
'.platform-win32 .tree-view, .platform-linux .tree-view':
'ctrl-k h': 'unset!'
'ctrl-k j': 'unset!'
'ctrl-k k': 'unset!'
'ctrl-k l': 'unset!'
'ctrl-k left': 'unset!'
'ctrl-k down': 'unset!'
'ctrl-k right': 'unset!'
'ctrl-k up': 'unset!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment