abo-abo / avy

Jump to things in Emacs tree-style
1.71k stars 109 forks source link

Add new customizable variable: avy-restart-on-fail #283

Closed federicotdn closed 4 years ago

federicotdn commented 4 years ago

This PR adds a new variable called avy-restart-on-fail, which makes the candidate selection restart if no candidates were selected. I believe this is useful for users that make typos when trying to make a selection (like me). In these cases, it is faster to redisplay all candidates than to type again the word/chars we want to jump to and then type the chars corresponding to the candidate again.

Edit: note: this was tested with avy-style 'words.

abo-abo commented 4 years ago

Thanks for the idea. I've decided to turn this on by default for avy-style 'words. Please test.

federicotdn commented 4 years ago

Will do, thanks!