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

key binding(s) to change target action? #170

Open
glucas opened this issue Sep 14, 2016 · 1 comment
Open

key binding(s) to change target action? #170

glucas opened this issue Sep 14, 2016 · 1 comment

Comments

@glucas
Copy link

glucas commented Sep 14, 2016

It might be useful to have a key map for additional behavior when an avy command is waiting for input?

For example: Let's say I bind M-m to avy-goto-word-1. I might:

  1. Hit M-m, but at the char prompt decide I want to search the current line only, so I hit M-l to switch to avy-goto-char-in-line.
  2. Hit M-m and at the prompt enter a character to see the matches. But before I choose one, I hit M-l which changes the search scope to the current line and shows me the matches for the char I already entered.

Obviously a prefix key or hydra could be used to bind multiple avy search commands behind some initial key, but it could be useful to be able to change the scope in this way within an "avy session" where the search characters already entered are automatically re-applied to some other avy command.

@glucas
Copy link
Author

glucas commented Sep 14, 2016

I suppose this is similar to the avy-dispatch-alist support, where a non-matching key can change the resulting avy action. The difference is that the non-matching key would instead start a new avy search, with the same input (if any).

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

1 participant