Skip to content

Apply gitlens.advanced.abbreviateShaOnCopy to gitlens.copyRemoteFileUrlToClipboard #2160

@strazto

Description

@strazto

The option gitlens.advanced.abbreviateShaOnCopy allows one to truncate commit ids when copying them.

Usually when I use gitlens.copyRemoteFileUrlToClipboard, I'm making a link to either share, or for my own reference in an issue comment, or sometimes (during development) a comment in the source.

In the case of github, (at least) the standard 7 character truncated SHA is sufficient for this link to work.
I'd like for my copy command to truncate to that length.

Supported providers:

✔️ GitHub
✔️ Gitlab

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomershelp wantedWant community input and/or pull request
    No fields configured for Enhancement.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions