Skip to content

Instantly share code, notes, and snippets.

@stramel
Created December 20, 2016 20:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stramel/02cc98f6506f94bdd6a104a1a234227d to your computer and use it in GitHub Desktop.
Save stramel/02cc98f6506f94bdd6a104a1a234227d to your computer and use it in GitHub Desktop.
Atom Keybindings
'body':
'ctrl-shift-s': 'window:save-all'
'.workspace .editor':
'ctrl-d': 'editor:duplicate-lines'
'ctrl-shift-D': 'editor:delete-line'
'.editor':
'alt-shift-right': 'editor:select-to-end-of-line'
'alt-right': 'editor:move-to-end-of-line'
'alt-shift-left': 'editor:select-to-first-character-of-line'
'alt-left': 'editor:move-to-first-character-of-line'
@admwx7
Copy link

admwx7 commented Dec 20, 2016

So for MAC you can swap cmd and ctrl logic which gets you closer to windows, then use:

'body':
  'cmd-shift-s': 'window:save-all'
  'ctrl-cmd-r': 'window:reload'

'.workspace .editor':
  'cmd-d': 'editor:duplicate-lines'
  'cmd-shift-D': 'editor:delete-line'

'.editor':
  'alt-shift-right': 'editor:select-to-end-of-line'
  'alt-right': 'editor:move-to-end-of-line'
  'alt-shift-left': 'editor:select-to-first-character-of-line'
  'alt-left': 'editor:move-to-first-character-of-line'

'atom-text-editor':
  'cmd-right': 'editor:move-to-next-subword-boundary'
  'cmd-left': 'editor:move-to-previous-subword-boundary'
  'cmd-shift-left': 'editor:select-to-previous-subword-boundary'
  'cmd-shift-right': 'editor:select-to-next-subword-boundary'
  'cmd-down': 'editor:move-line-down'
  'cmd-up': 'editor:move-line-up'

Which gets your mapping very nearly the same for windows and MAC in atom. Or at least for all of the commands I use often enough that I can think of them off the top of my head, we'll find out over time if there are any missing ones...Just have to deal with ctrl+tab and alt+tab keys being swapped for mac vs win, and the fact that alt is out of place...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment