multi-cursor

Atom package to expand your current cursor.

joseramonc

193,697

334

3.0.0

MIT

GitHub

Multi-cursor package

An atom package to easily create more cursors with keystrokes.

Multi-cursor demo

OSX Keymaps:

Linux Keymaps:

Windows Keymaps:

Custom Keymaps:

The default keymaps may be overriden for your favorite keystroke in your keymap.cson with:

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

  # Expand last cursor
  'ctrl-down': 'multi-cursor:expand-down'
  'ctrl-up':   'multi-cursor:expand-up'

  # Expand all Cursors
  'ctrl-cmd-down': 'multi-cursor:expand-all-down'
  'ctrl-cmd-up':   'multi-cursor:expand-all-up'

  # 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'

# Create one cursor for each selected line.
# Note: Mac keybindings ship with Atom out-the-box, for windows and linux you may wish to add the following,
# compare https://github.com/atom/atom/issues/6427
'.platform-win32 atom-text-editor:not([mini])':
    'ctrl-shift-l': 'editor:split-selections-into-lines'
'.platform-linux atom-text-editor:not([mini])':
    'ctrl-shift-l': 'editor:split-selections-into-lines'

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


1: The command for creating one cursor for each selected line is provided by Atom out-of-the-box under the name "Editor: Split Selections into Lines".