abo-abo / avy

Jump to things in Emacs tree-style
1.72k stars 110 forks source link

Suggestion: Destination Keys Relative to Cursor Instead of Top of Screen #228

Closed BigBeautifulBro closed 6 years ago

BigBeautifulBro commented 6 years ago

Could the destination keys be configured to be assigned relative to the cursor instead of relative to the top of the screen? This will increase the speed and ergonomics of jumping in common situations.

I personally more often want to jump relative to my current cursor instead of the top of the buffer. If I knew in advance what key I need to press to go to the 1st, 2nd, and other ordered destinations before or after the cursor when starting an avy-jump, I wouldn't even have to look at the screen for avy to tell me what destination key I need to press. Thus, this ability would increase the speed of navigation for the common situation of jumping relative to the cursor.

One way this goal could be accomplished is to enable customizing the first 10 or so destination keys before and after the cursor. With this customization, you could then assign the keys "abcdefghij" to the forward destination keys and the keys "1234567890" to the before destination keys. With this customization, I could just simply hit the key "c" and jump to the 3rd destination after the cursor without even having to wait for avy to tell me what key to press.

BigBeautifulBro commented 6 years ago

Actually nevermind. I see this issue has been discussed before and closed. If I find the time I will look into a PR.