abo-abo / avy

Jump to things in Emacs tree-style
1.74k stars 111 forks source link

way to search relative to cursor #195

Closed ghost closed 7 years ago

ghost commented 7 years ago

I'm wondering if there is a way to start a search based on the cursor. Right now regardless of where the cursor is.

The nice thing about that feature is that: 1) it only takes one character to move to words closest to the cursor 2) it allows you to use avy with macros.

Example of search with vim-easy motion with cursor on line with '(setq avy-keys (number-sequence a? ?z))' screenshot 2017-04-30 22 31 52

Example of regular avy search when mouse is at same location. screenshot 2017-04-30 22 33 27

abo-abo commented 7 years ago

It's possible to implement. But I don't see it as priority: both approaches have their advantages and disadvantages.

PRs welcome.

ghost commented 7 years ago

Ok. Thank you.