An equivalent of Atom's Jumpy package, for Sublime Text.
Open the Command Palette:
- on PC:
shift+control+P
- on Mac:
shift+command+P
Select Package Control: Install Package
.
Select Jumpy
.
git clone "https://github.com/jgburet/jumpy-sublime.git" \
"~/Library/Application Support/Sublime Text 3/Packages/Jumpy" # <-- MacOS destination
Jumpy does not come with predefined bindings so you'll need to define yours.
Go to Preferences > Key Bindings
. Complete the file with this line:
[
{ "keys": ["shift+enter"], "command": "jumpy" }
]
You can customize how labels look like by editing your color scheme:
#jumpy .label {
<your css>
}
Right now, labels are displayed using phantoms
. When displayed, they shift your text. It's annoying.
I'd prefer to edit the buffer
but this complexifies A LOT how the package works, having to orchestrate more commands.
Also, there's that to deal with sublimehq/sublime_text#817 (comment).
Keep current cursors and add new one on selected label.