zed icon indicating copy to clipboard operation
zed copied to clipboard

easymotion vim

Open jjhiggz opened this issue 1 year ago • 7 comments

Check for existing issues

  • [X] Completed

Describe the feature

In VSCode's vim emulation you have an easymotion mode that allows you to type in

<leader><leader>motion

Then instead of doing that motion regularly, it will pull up easymotion which works like this

If applicable, add mockups / screenshots to help present your vision of the feature

https://www.loom.com/share/65f7ff4745df4f85bc1cd3ca51afdf83

jjhiggz avatar Mar 15 '23 22:03 jjhiggz

keen for this outside of vim mode too

EdAyers avatar Mar 16 '23 08:03 EdAyers

Related: zed-industries/zed#5289

clo4 avatar Mar 18 '23 22:03 clo4

A must need!

akasuv avatar Apr 07 '24 02:04 akasuv

Related: Helix editor just added something similar based upon Amp's "jump mode" in https://github.com/helix-editor/helix/pull/8875. I tend to agree with the reasoning behind this implementation...

While testing that PR we made the following observations:

  • character based jumps (which require a character before tying a label) don't really hold their water, you can use f for simple cases and / (which we want to improve further) for complex cases. Compared to a jumpmode these commands work with multicursors.
  • word base jumps can be useful for quickly repositioning the primary cursor.
  • a simple implementation like in AMP without dimming, color changes and complex letter assignment based on distance, ... was not only a lot simpler to implement but also more predictable/less disruptive

baldwindavid avatar Apr 07 '24 22:04 baldwindavid

Please consider the vim leap, other seem to mention it as well, https://github.com/zed-industries/zed/issues/4934#issuecomment-2059780379

lucasvfventura avatar Apr 27 '24 17:04 lucasvfventura

hop.nvim is another good reference.

akasuv avatar Apr 29 '24 02:04 akasuv

Personally if I see this one implemented I'm making the tool my main editor

Aur0nd avatar May 04 '24 00:05 Aur0nd

I tried all the popular jump plugins and settled on pounce.nvim.

In contrast with label-based options, it allows to type a target word and do the jump. I find it more natural as I don't need to read into random chars but immediately start typing as I already know the word.

alex35mil avatar May 30 '24 17:05 alex35mil

I tried all the popular jump plugins and settled on pounce.nvim.

In contrast with label-based options, it allows to type a target word and do the jump. I find it more natural as I don't need to read into random chars but immediately start typing as I already know the word.

How did you manage to install this plugin into Zed?

scripness avatar Jul 03 '24 12:07 scripness