You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd love to be able to exchange things in vim mode, similar to how evil-exchange works.
Presumably, this is also how vim-exchange works, although I've only used the Emacs version. The bindings appear to be different (I think I prefer the evil bindings), but that can be reassigned by the user, so it's not particularly important, I think.
In essence, it allows you to (using evil bindings), gx a motion or object to store it in an exchange register. The next time you gx something outside of your original selection, those to selections change place. gX clears the register.
E.g., with | as a caret:
This is an ex|ample.
This is a line.
gxiw puts example into the exchange register.
This is an example.
This is a li|ne.
gxiw swaps line and example because example was in the register:
This is an line.
This is a example.
The motions / selections don't have to be the same. It'd be helpful if the selection in the exchange register remained highlighted in some way until the exchange has taken place.
Check for existing issues
Describe the feature
I'd love to be able to exchange things in vim mode, similar to how evil-exchange works.
Presumably, this is also how vim-exchange works, although I've only used the Emacs version. The bindings appear to be different (I think I prefer the evil bindings), but that can be reassigned by the user, so it's not particularly important, I think.
In essence, it allows you to (using evil bindings),
gx
a motion or object to store it in an exchange register. The next time yougx
something outside of your original selection, those to selections change place.gX
clears the register.E.g., with
|
as a caret:gxiw
putsexample
into the exchange register.gxiw
swapsline
andexample
becauseexample
was in the register:The motions / selections don't have to be the same. It'd be helpful if the selection in the exchange register remained highlighted in some way until the exchange has taken place.
Zed Version and System Specs
Zed: v0.167.1 (Zed)
OS: macOS 14.6.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: