JumpTo is a plugin for Sublime Text to move the cursor to any position in the current line. It's very similar to some movement commands in Vim. This is especially useful when editing multiple similar lines at the same time with multiple selections.
Watch this video to see a real world example on how I use it to refactor some code.
- Install Package Control.
- In the Command Palette, select Package Control: Install Package.
- Create keymaps for the commands
Example.sublime-keymapfor a suggestion).
The package does not define key bindings by default, so you must add them on your own.
With the bindings shown in
you can use it like follows:
Press ctrl+e (or select on Goto -> Jump to) and enter a search string. The cursor will jump to the start of the first occurrence of this search string.
Press ctrl+shift+e (or select on Selection -> Expand Selection to …) to select all characters from the current cursor position to the first occurrence of the search string.
extend: Extend the current selection until the search result.
create_new: Whether the current caret(s) should stay and a new caret should be created at the target position.
whole_match: Whether the command should result in a selection from the matched text instead of a single caret at the start of the match.