-
Notifications
You must be signed in to change notification settings - Fork 91
Experimenting with jump modes and multi-caret mode #350
Description
I experimented with a major change to how jump modes work. Perhaps a video is best, so I uploaded a recording (or zip download if the video isn't available anymore). I will give context to the video below.
Basically, it moves "jump mode selection" after typing the tag, allowing you to press a single key to select the jump mode:
Here I typed my AceJump shortcut Alt+J, then "sp" as the query, followed by the tag. I added a hint tooltip with currently implemented modes:
- Jump to Tag is the old style of jump:
is|Sprint - Jump to Query jumps to the last character of the query:
isS|print - Jump past Query jumps right after the last character of the query:
isSp|rint - Select Word is target mode:
[isSprintToggled]but holding Shift selects only a "camel hump":is[Sprint]Toggled - The rest should be self-explanatory, but Shift has some potentially interesting properties
This way of jumping also allowed me to create a neat multi-caret mode. In the video I activate it with Alt+Shift+J, and then it works as follows:
- Type the initial query if you want
- As soon as you start typing a tag, the query is saved
- Every time you finish typing a tag, you get the option to select a jump mode which adds a caret or selection
- Repeat the saved query and type either another tag, or cancel using Escape or Enter
If you're interested, the current version is in https://github.com/chylex/AceJump/tree/experimental-jump-modes branch. If not, feel free to close the issue.
