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] Substitution preview #6

Closed
0xC0FFEE opened this issue Mar 3, 2019 · 5 comments
Closed

[Feature Request] Substitution preview #6

0xC0FFEE opened this issue Mar 3, 2019 · 5 comments

Comments

@0xC0FFEE
Copy link

0xC0FFEE commented Mar 3, 2019

Neovim has a feature called inccommand, which previews of (among others) the result of the :substitute command.

Would it be possible to support the same for the :SubversiveSubstitute* commands?

@svermeulen
Copy link
Owner

That's pretty neat, I didn't know about that command. I can think of a way to do this, yes

svermeulen pushed a commit that referenced this issue Mar 3, 2019
…sue #6).  Also added g:subversivePromptWithActualCommand setting for people that always want this behaviour
@svermeulen
Copy link
Owner

Ok should work now. Should use the actual substitute command instead of just a prompt for replacement text when inccommand is set, so that the preview occurs

@0xC0FFEE
Copy link
Author

0xC0FFEE commented Mar 3, 2019

Awesome! I'll give it a spin tomorrow, but this looks really promising already 👍

@0xC0FFEE
Copy link
Author

0xC0FFEE commented Mar 4, 2019

Works like a charm! Thank you for implementing this so quickly.

This really makes the plugin usable for me, as I'm so used to the substitution preview by now. It's highly addictive ;-).

@svermeulen
Copy link
Owner

Ok great good to know

No problem - Thanks for pointing out that neovim feature, I somehow missed that. I can see why it's addictive

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