Skip to content
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

Enhancement: Overlay tree on target #16

Closed
vermiculus opened this issue May 8, 2015 · 5 comments
Closed

Enhancement: Overlay tree on target #16

vermiculus opened this issue May 8, 2015 · 5 comments

Comments

@vermiculus
Copy link
Contributor

Instead of prefixing the tree to the target point, it would be nice if the tree could be overlaid on its target as to not disrupt positioning. Your eyes is looking in one spot for the target point; if there are multiple matches on the same (longer) line, the target point can visually move.

The only question to think about would be

What should happen if two overlays would intersect?

The thing that makes Avy great, in my opinion, is the ability to see the whole path of the tree from the get-go (so you can position your hands -- unconsciously, of course). If two overlays were to intersect with each other (think avy-goto-char with an input of SPC), then that advantage would be lost. A possible solution is to customize the value per function (as an alist).

@abo-abo
Copy link
Owner

abo-abo commented May 8, 2015

I don't get it. The tree can be several chars wide, while the target can be only one char wide.

@vermiculus
Copy link
Contributor Author

Yeah, I know. Example, searching for s:

blah blah blah this is a word that starts with s

Instead of this:

blah blah blah thia*s is*s a word that d*startf*s with g*s

the ability to do this

blah blah blah thia* is* a word that d*tartf* with g*

The *s aren't really there -- it's just a way for me to denote where the overlay is.

@abo-abo
Copy link
Owner

abo-abo commented May 8, 2015

Just set avy-goto-char-style and avy-goto-word-style to 'at. Done.

@tsdh
Copy link
Contributor

tsdh commented May 8, 2015

Duplicate of #5.

@vermiculus
Copy link
Contributor Author

My apologies :) 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants