-
Notifications
You must be signed in to change notification settings - Fork 43
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
Prefer 3-character matches, use labels as fallback #105
Comments
This would be great, already thought about it lots of times, but it only works if "autojumping" is disabled. (A pair can be followed by any character, so there would be no available "safe" label characters at all.) So yeah, the idea is perfectly valid, but this would result in an ugly inconsistency, using a very different algorithm depending on user settings. Also, we can say goodbye to the invariant that a match is always 2 characters. Displaying the 3rd char as a "label" would be confusing I guess, and wouldn't help much, I'd highlight all the 3 characters with |
The possibilities are: Unique Match (autojump), multiple match (contextual label until Unique Match, if you press CTRL, you cycle to the next match). On the last case, can't we bind a meta key like CTRL to cycle between those ? I get the consistency argument, the described behaviour makes jumping to an unique text more natural, but you can't count with it 100%, incurring on additional key strokes when there are a bunch of equal text. We already have to react to the label in order to jump, so maybe it averages for the better? It depends on the text and actual testing would make it more clear which behaviour feels better. |
the labels are predefined and consistent, not contextual. Consider this situation
If I leap and type "ru", I'll get this
but it seems natural and better for the hints to be "d" and "r", and fallback to the predefined ones in order to disambiguate between equal targets.
Is there a way to achieve this behaviour?
The text was updated successfully, but these errors were encountered: