-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Reverse the order of key-labels for avy-goto-*-above #342
Comments
I think this works:
Does this seem ok? If so, shall I put in a PR with this change? |
MicahElliott
added a commit
to MicahElliott/avy
that referenced
this issue
Mar 2, 2022
Let's say I have a window showing many (200) lines. Point is somewhere in the middle or bottom of the screen. I want to jump up say 5 lines. Avy was optimized to jump most easily way up to the top of the window rather than 5 lines up. To go upward, I almost always ended up typing two prompt chars. With the "above" cases for this commit, the order is now reversed, going up 5 lines will always just require typing a single char to jump. I feel that this should be the default behavior for the "above" commands. Isn't it most common to do shorter jumps
@MicahElliott your modfification of avy-tree is interesting , but actually |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Let's say I have a window showing many (200) lines. Point is somewhere in the middle or bottom of the screen. I want to jump up say 5 lines. Avy presently is optimized to jump most easily way up to the top of the window rather than 5 lines up. To go upward, I almost always end up typing two prompt chars.
If for the "above" case, the order was reversed, going up 5 lines would always just require typing a single char to jump. I feel that this should be the default behavior for the "above" commands. Isn't it most common to do shorter jumps?
I suppose a workaround is to just rewrite the little
avy-goto-word-1-above
and have the jumpable range limited to ~30 lines up from point rather than(window-start)
. I just didn't see an obvious way to to reverse the labeling.I also see that if I
nreverse
thelst
inavy-tree
fn that it works as I like (for above). So I'm not sure if it's better to write my own hacked up version ofavy-tree
, or figure out if I should learn to write anorder-fn
foravy-orders-alist
, and if that's what it's designed for. But I don't see a way inside ofavy-tree
to determine if the caller was an "above" or "below" fn.Thanks for any tips (and for the amazing tool).
The text was updated successfully, but these errors were encountered: