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] Default to group on g:subversivePromptWithActualCommand #24

Open
luiz00martins opened this issue May 10, 2022 · 0 comments

Comments

@luiz00martins
Copy link

With g:subversivePromptWithActualCommand set, substituting my_text leaves you with :'[,']s/\V\Cmy_text/|/gI (| being the cursor):

My suggestion, is to instead use :'[,']s/\V\C\(my_text\)/|/gI, automatically capturing my_text in a group.

This would allow users to more quickly complete with the current text with \1, for example:

:'[,']s/\V\C\(my_text\)/\1_is_amesome/gI
:'[,']s/\V\C\(my_text\)/this_is_\1/gI
:'[,']s/\V\C\(my_text\)/this_is_\1_and_now_way_longer/gI

Which will result in

my_text_is_amesome
this_is_my_text
this_is_my_text_and_now_way_longer
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

1 participant