Skip to content

[Feature Request] Default to group on g:subversivePromptWithActualCommand #24

Open
@luiz00martins

Description

@luiz00martins

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions