Skip to content

Feature: Replacement Preview #160

Open

Description

@Opisek

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?

Activity

  1. nightwing commented on Jan 17, 2024

    @nightwing
    Collaborator

    Yes, this sounds like a useful feature.

  2. Opisek commented on Jan 18, 2024

    @Opisek
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions