Skip to content

copy_hash does not copy the commit hash to the default " register #604

Description

@jecaro

I've tried to copy a hash from :DiffviewFileHistory, using the key y. Then I wanted to use it in a new command :DiffviewOpen <yanked-hash>^!. So I pasted it in the command line using <CTRL-R-0> but I was surprised not to see the copied hash but something completely different.

It is because the hash is copied to the + register. Then one must use <CTRL-R-+> instead.

This is going against neovim defaults. Any good reason for not using the default unnamed register " for this?

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions