Implement Leap Key Navigation #25470
Replies: 12 comments 2 replies
-
|
This is an interesting idea. I don't see how it's different from using cmd-f though (or Seems similar to #4930 and #5289 (it's a different execution of the same concept) |
Beta Was this translation helpful? Give feedback.
-
|
Plus one for this. I prefer leap over hop and easymotion personally, as it is very natural; using the word prefix itself instead of random characters. With it, you trigger the command somehow and then press the two letters of the word you want the cursor to go, and all locations that match on screen get an indication. since you're looking at where you want to go, you press the key that marks the location, and your cursor jumps. Since only places with the two characters appear, the visual clutter is minimal. Please see the readme at https://github.com/ggandor/leap.nvim Other editors have this idea too, and bring new concepts to it. For instance, helix recently added This category of plugin speaks to the need for quickly moving the cursor visually without touching the mouse or changing modes. |
Beta Was this translation helpful? Give feedback.
-
|
Currently, leap.nvim and oil.nvim are the two things I miss the most, in that order. I like |
Beta Was this translation helpful? Give feedback.
-
You can think of it like a poor-man's eye tracker because it serves the same functional purpose. If you are looking at a location in a vim buffer, you can get the cursor to that location by pressing no more than 2-3 keys (not including the start key). So you look at something, press 's', start typing what you are looking at, if there's ambiguity it'll temporarily put a "flag" character in the buffer you should type to disambiguate which site you are looking at. It feels like your editor is reading your mind. Completely replaces the need for touching the trackpad which is helpful for me because trackpad clicking gives me carpal tunnel. |
Beta Was this translation helpful? Give feedback.
-
|
Here's a quick demo: demo.movI'm pressing 's' to activate leap. |
Beta Was this translation helpful? Give feedback.
-
|
Is this possible to add via an extension? Would prefer core ideally but I'd be happy to look into writing a plugin |
Beta Was this translation helpful? Give feedback.
-
|
This is one of those things that Zed could really shine at, since it is not limited to the character grid like a terminal editor. Target annotations could avoid replacing characters at the target. Another noteworthy thing for this feature is that it works cross-tab. In vim, I set up |
Beta Was this translation helpful? Give feedback.
-
|
This feature request might seem like a stretch and could appear arbitrary to implement since it's just one of many Vim plugins. However, consider that Zed is uniquely positioned to implement this seamlessly (implementation in vscode-neovim is decent, but limited). I agree and concur |
Beta Was this translation helpful? Give feedback.
-
|
Coming from neovim and giving zed a real chance, this is something I really miss. For one, in the actual editing buffer, but also between different buffers/panels/whatever It's just a very efficient way to move without making use of a mouse. |
Beta Was this translation helpful? Give feedback.
-
|
Just to add to these, I think something like flit.nvim should be considered in addition to leap.nvim if this ever gets implemented. flit.nvim builds on leap.nvim but I use its( I have just tried zed yet again and I love the smoothness and the feel. That said, oil.nvim, flit.nvim and leap.nvim are three plugins I have come to rely on heavily and I think people might appreciate their approaches. |
Beta Was this translation helpful? Give feedback.
-
|
Helix editor has this feature integrated natively via And yes, it is a killer feature. I'm currently using flash over leap which I think it's a bit better but yeah. same thing. Really hope this get's implemented somehow. |
Beta Was this translation helpful? Give feedback.
-
|
So, what's the status on this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Check for existing issues
Describe the feature
Jef Raskin's design for the Canon Cat employed a quasi-mode for rapid navigation as illustrated in this YouTube Video.
This feature has also been requested in the helloSystem project repro.
Also, BitSavers has a copy of the Cat's Technical Documentation that may be of interest on this topic among others.
Finally, there was an attempted reimplementation in Python by Aza Raskin, Jef's son.
If applicable, add mockups / screenshots to help present your vision of the feature
No response
Beta Was this translation helpful? Give feedback.
All reactions