ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Contextual​Move

by davidson16807 ALL

Ctrl+IJKL to move. Other keys toggle move behavior. You can move by characters, words, search results, and more.

Details

Installs

  • Total 211
  • Win 123
  • Mac 53
  • Linux 35
Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6
Windows 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

Sublime Contexual Move Keys

Ctrl+IJKL to move. Other keys toggle move behavior. You can move across characters, words, search results, tabs, and more.

The Gist

  • Ctrl+IJKL are contextual arrow keys. By default, they move the cursor one character at a time.
  • Ctrl+Shift+IJKL will extend the selection.
  • Ctrl+Alt+IJKL will delete.
  • Alt+JL will undo/redo.
  • If you open the command palette or an autocomplete dropdown, they'll move through the options just like regular arrow keys.
  • If you open the search panel, they'll move between search results.
  • You can press other keys to modify move behavior, shown below.
Hotkey Move Behavior Mneumonic
Ctrl+. Move one character at a time . denotes characters in regex
Ctrl+_ Move by subwords _ delimits subwords in C-like languages
Ctrl+, Move by words , delimits words in natural language (Ctrl+spacebar is already taken)
Ctrl+; Move to the beginning/end of the line/document. Subsequent keypresses to Ctrl+IJKL will return to default behavior ; delimits lines in C-like languages (Ctrl+enter is already taken)
Ctrl+tab Move between tabs Resembles existing shortcut
Ctrl++ Scroll + looks like the cursor you get when you click the middle mouse button
Ctrl+pipe Add cursors to adjacent lines. Press escape to return to a single selection and retrn to default behavior The “pipe” character looks like a cursor
Ctrl+^ Move text around Same shortcut used in TextMate
Ctrl+[ fold/unfold Resembles existing shortcut
Ctrl+] indent/unindent and transpose by line Resembles existing shortcut
Ctrl+f2 move through bookmarks Resembles existing shortcut
Ctrl+f6 move through spelling errors Resembles existing shortcut
Ctrl+[1-5] perform the action N number of times, where N is the button you pressed Similar shortcut used in Vim

FAQ

Why?

Plenty of reasons:

  • Provide vim-like navigation without the steep learning curve

  • Vastly expand a user's hotkey repertoire without taxing memory

  • Eliminate the need to leave the home row when navigating through text

  • Create an economy of hotkeys, freeing up keyboard real estate so users can create their own hotkeys

Why not Ctrl+WASD?

Because Ctrl+S and Ctrl+A are some of the most widely adopted hotkeys of all time and I don't plan to remap their behavior.

Why not Ctrl+HJKL?

Because this is not vim. The vast majority of users are already familiar with the “inverse T” style of navigation, thanks largely to WASD and the regular arrow keys.

Why not use Vim?

See above. This is a plugin for mortals.

Why not just extend behavior to the regular arrow keys?

Because moving your hand interrupts your workflow. I want to keep both hands on the home row for as long as I can.

You changed my favorite hotkey!

That wasn't a question, but yes, as with any plugin, you can remap the keys as you see fit.