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: Replacement Preview #160

Open
Opisek opened this issue Jan 17, 2024 · 2 comments
Open

Feature: Replacement Preview #160

Opisek opened this issue Jan 17, 2024 · 2 comments

Comments

@Opisek
Copy link
Contributor

Opisek commented Jan 17, 2024

VsCodeVim has a neat feature of previewing replacement commands.

While writing :%s/foo, it will highlight all occurrences of foo (1 per line).
When proceeding with :%s/foo/bar it will keep the highlight on the previously marked words, but they will now be visibly changed to bar.
Similarly, adding the finishing :%s/foo/bar/g, it will apply that preview to multiple occurrences per line.

I think that's a great way of knowing if the regex you're trying to replace works as intended.

Would that be a feature that would also fit CodeMirror Vim?

@nightwing
Copy link
Collaborator

Yes, this sounds like a useful feature.

@Opisek
Copy link
Contributor Author

Opisek commented Jan 18, 2024

Great, will look into it when I have some time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants