Skip to content

Experimenting with jump modes and multi-caret mode #350

@chylex

Description

@chylex

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:

obrazek

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:

  1. Type the initial query if you want
  2. As soon as you start typing a tag, the query is saved
  3. Every time you finish typing a tag, you get the option to select a jump mode which adds a caret or selection
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions