7 ms·
Reminds me of Avy on emacs. https://karthinks.com/software/avy-can-do-anything/ https://karthinks.com/software/avy-can-do-anything/
by jerry1979 4y ago
Reminds me of Avy on emacs.
https://karthinks.com/software/avy-can-do-anything/ https://karthinks.com/software/avy-can-do-anything/
- agumonkey 4y agodidn't read through the whole readme but it seems leap is avy + substructure jump. and if not, then we should make something like that :)
- dannyobrien 4y agoI was going to ask -- does anyone know a port to evil/emacs?
- deleted 4y ago[deleted]
- wging 4y agoBy "substructure jump" do you mean jumping to a character inside a word? Avy can do that! Compare avy-goto-char and avy-goto-word-1 (or avy-goto-word-0). I have a prefix arg setup working with avy that I stole from ace-jump-mode to jump to either words (avy-goto-word-1), subwords (avy-goto-subword-1, jump to the 'K' in ThisKindOfText, but not the 'x'), or arbitrary characters (avy-goto-char). If you don't already have muscle memory for ace-jump-mode, which is IIRC why I did it that way, you can just bind the different things to separate combinations, like the avy readme suggests: https://github.com/abo-abo/avy/blob/master/README.md https://github.com/abo-abo/avy/blob/master/README.md
- agumonkey 4y agoI meant larger file jumps, say you start typing a prefix, avy applies overlays on matches, but you man quickly want to focus on a paragraph and not deal with the whole set of matches.
- nesarkvechnep 4y agoYou can always narrow to a region and use avy on it.
- agumonkey 4y agoNot ergonomic enough, since you don't really know yet which region you want to be in. In my view, a hydra like structural navigation while having 'avy' on would be better
- wging 4y agoI think I see why this would be useful for things other than navigation - e.g. using avy to drive replacement or multi-selection, "select all X within this paragraph"-type things. But for navigation by word, for example, I tend to type only 1-2 characters to narrow down the selection, even for a character that is common on-screen. So I don't quite see how it would be faster to do what you're saying. I'm probably still missing something, but I don't know what.