Skip to content

Instantly share code, notes, and snippets.

@icetee
Last active December 7, 2017 00:33
Show Gist options
  • Save icetee/f0323ac085c880426129 to your computer and use it in GitHub Desktop.
Save icetee/f0323ac085c880426129 to your computer and use it in GitHub Desktop.
icetee-atom-keymap
# 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/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 here:
# https://github.com/bevry/cson#what-is-cson
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor':
'ctrl-b': 'find-and-replace:select-next'
'ctrl-d': 'editor:duplicate-lines'
'ctrl-shift-up': 'editor:move-line-up'
'ctrl-shift-down': 'editor:move-line-down'
#Disable default keymap
'.platform-win32 atom-workspace atom-text-editor:not([mini])':
#'ctrl-m': 'uglify' #require uglify package
#'ctrl-m': 'cssnano:process' #require uglify package
'ctrl-up': 'unset!'
'ctrl-down': 'unset!'
'ctrl-backspace': 'unset!'
'.platform-win32 atom-workspace, .platform-linux atom-workspace':
'ctrl-shift-o': 'remote-ftp:toggle'
'.platform-darwin atom-text-editor':
'cmd-b': 'find-and-replace:select-next'
'cmd-d': 'editor:duplicate-lines'
'cmd-shift-up': 'editor:move-line-up'
'cmd-shift-down': 'editor:move-line-down'
'.platform-darwin atom-workspace atom-text-editor:not([mini])':
'cmd-up': 'unset!'
'cmd-down': 'unset!'
'cmd-backspace': 'unset!'
'cmd-shift-o': 'remote-ftp:toggle' #require remove-ftp package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment