abo-abo / avy

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

[Feature Request] Shorter overlays closer to point #233

Closed nverno closed 6 years ago

nverno commented 6 years ago

This is a similar to #232, but related to sequence length. When calling avy-goto-word-1 it would be nice if the closest candidates had the shortest sequences. For example, in the following text with the cursor at |

aonsectetur adipisicing alit, aed ao aiusmod aempor ancididunt at aabore at aolore aagna aliqua. at animad ainim aeniam, auis aostrud axercitation | allamco

calling avy-goto-word-1 a results in the following options, where notably the shortest key sequences are farthest from the cursor;.

abo-abo commented 6 years ago

Fixed in #242. Please test.

nverno commented 6 years ago

Awesome work! Seems to work just as expected, much appreciated.