move-cursor-improved

Improve and correct Atom's cursor movement

susisu

1,475

12

0.3.4

MIT

GitHub

move-cursor-improved

Improve and correct Atom's cursor movement.

Features

Correct cursor's up/down movement

Without this package:

screenshot

With this package:

screenshot

Atom's default cursor up/down movement is based on characters' code units, but it looks very strange if you use "wide" characters like East Asian ones. This package corrects it to make cursor movement visually intuitive.

Commands

The package also provides some commands, which are (visually intuitive) alternatives to the commands provided by multi-cursor.

Name Description Windows macOS Linux
Add Previous Line Create a cursor in the previous (up) line for each cursor. alt + up alt + up ctrl + shift + up
Add Next Line Create a cursor in the next (down) line for each cursor. alt + down alt + down ctrl + shift + down
Move Last Cursor Up Move the most recently added cursor up. ctrl + shift + alt + up ctrl + alt + up ctrl + shift + alt + up
Move Last Cursor Down Move the most recently added cursor down. ctrl + shift + alt + down ctrl + alt + down ctrl + shift + alt + down
Move Last Cursor Left Move the most recently added cursor left. ctrl + shift + alt + left ctrl + alt + left ctrl + shift + alt + left
Move Last Cursor Right Move the most recently added cursor right. ctrl + shift + alt + right ctrl + alt + right ctrl + shift + alt + right

You may want to customize keymaps by yourself:

'atom-text-editor:not(.mini)':
  'alt-up'        : 'move-cursor-improved:add-previous-line'
  'alt-down'      : 'move-cursor-improved:add-next-line'
  'ctrl-alt-down' : 'move-cursor-improved:move-last-cursor-down'
  'ctrl-alt-up'   : 'move-cursor-improved:move-last-cursor-up'
  'ctrl-alt-left' : 'move-cursor-improved:move-last-cursor-left'
  'ctrl-alt-right': 'move-cursor-improved:move-last-cursor-right'