-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1 Letter tag shortcuts #378
Comments
Hi @rog1039, thanks for your question. By default, AceJump does prefer to use single-character tags tags, however they may be unavailable to assign for several reasons. It may be the case an off-screen word is preventing a single-character tag from being assigned, or in some circumstances it may be impossible to assign a single-character tag without a collision. Since AceJump is also used for search, we must ensure tags do not elide text elsewhere in the file during tag assignment. In order to increase the likelihood that single-character tags are assigned, you can deselect the option |
Hi @breandan, Thanks for the explanation. I have turned off I included a video that shows the behavior in more detail. In this example I am typing 'Prop' into the search. After initially typing So I guess I have two questions:
And as I type this, I feel like I am being very nitpicky on this topic. This extension is already amazing to use day-to-day so if this is more trouble that it's worth please feel free to close this issue. Thanks! |
Hi @rog1039, thanks for recording the screencast and sharing your experience. I can see what you mean, and understand your curiosity, as the tagging mechanics are not always intuitive. Since AceJump generates tags dynamically based on the editor contents, their length, characters, and even placement can sometimes be unpredictable. I will try to explain. AceJump initially assigns two-character tags to all matching strings in the editor. After assignment, if AceJump determines a tag can be shortened to a single-character tag it will do so immediately. If you continue typing and AceJump later determines that a two-character tag starts with a unique character (i.e. a character which occurs in the first position of exactly one tag in the session), it will be shortened immediately. Otherwise, a tag, once assigned, never changes as you continue typing.
Yes, if you look carefully at the first character of all two-character tags at
Yes, this is exactly what should be occurring. After activation, AceJump waits to receive
Not at all! I am glad you brought this to our attention. Please let me know if you have any further suggestions or I can provide any other details about the tag assignment algorithm. |
Is your feature request related to a problem? Please describe.
I am wondering if it is possible for AceJump to exhaust all 1-character tag shortcuts before making 2-letter tag shortcuts. In an example, There are only 22 highlighted tag locations yet some of them are multiple letters such as FF and FT. I would have thought a-z would be exhausted before adding 2-letter tags.
Describe the solution you'd like
I would prefer to use up all 1 letter tag options first.
I couldn't find an existing issue on this so thought I would bring it up. Is there some way to configure acejump so that this behavior is the default?
Thanks,
Paul
The text was updated successfully, but these errors were encountered: