Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] substitute/exchange operator provides 2 motion calls. #86

Open
singlexyz opened this issue Feb 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@singlexyz
Copy link

singlexyz commented Feb 2, 2024

For example, if the cursor is on props and press gs<motion1><motion2>, motion1 will replace motion2.

({ props }) -- press gsiwa{ on props

becomes:

(props)

This may seem useless on its own, but when combined with plugins like flash.nvim remote mode, operation can be performed even when the cursor is not on that text.

For example, exchange import and Homepage even cursor is not on them.

Screen.Recording.2024-02-02.at.09.45.42.mov

substitute<motion1><motion2> and exchange<motion1><motion2> will make it faster like this.

@singlexyz singlexyz changed the title [Feature Request] substitute motion1 to motion2. [Feature Request] substitute/exchange operator provides 2 motion calls. Feb 2, 2024
@gbprod
Copy link
Owner

gbprod commented Feb 2, 2024

That's a great idea!
I'll try to do something soon.

@gbprod gbprod added the enhancement New feature or request label May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants