/multi-cursor

:tada:

Primary LanguageCoffeeScriptMIT LicenseMIT

Multi-cursor package

An atom package to easily create more cursors with keystrokes.

Multi-cursor demo

OSX Keymaps:

  • Creating cursors
    • ctrl + up = Create cursor above
    • ctrl + down = Create cursor under
  • Moving the last cursor that has been created
    • ctrl + alt + up = Move the last-created cursor up
    • ctrl + alt + down = Move the last-created cursor down
    • ctrl + alt + left = Move the last-created cursor left
    • ctrl + alt + right = Move the last-created cursor right

Linux Keymaps:

  • Creating cursors
    • alt + shift + up = Create cursor above
    • alt + shift + down = Create cursor under
  • Moving the last cursor that has been created
    • ctrl + shift + alt + up = Move the last-created cursor up
    • ctrl + shift + alt + down = Move the last-created cursor down
    • ctrl + shift + alt + left = Move the last-created cursor left
    • ctrl + shift + alt + right = Move the last-created cursor right

Windows Keymaps:

  • Creating cursors
    • ctrl + alt + up = Create cursor above
    • ctrl + alt + down = Create cursor under
  • Moving the last cursor that has been created
    • ctrl + shift + alt + up = Move the last-created cursor up
    • ctrl + shift + alt + down = Move the last-created cursor down
    • ctrl + shift + alt + left = Move the last-created cursor left
    • ctrl + shift + alt + right = Move the last-created cursor right

Those may be overriden for your favorite keystroke in your keymap.cson with:

atom-text-editor:not(mini)':
  # you may have to unset the keybinding if it's alredy in use.

  # Expand current cursor
  'ctrl-down': 'multi-cursor:expandDown'
  'ctrl-up':   'multi-cursor:expandUp'

  # Move the last cursor.
  'ctrl-alt-down':  'multi-cursor:move-last-cursor-down'
  'ctrl-alt-right': 'multi-cursor:move-last-cursor-right'
  'ctrl-alt-left':  'multi-cursor:move-last-cursor-left'
  'ctrl-alt-up':    'multi-cursor:move-last-cursor-up'

Bugs, feature requests and comments are more than welcome in the issues 🎉