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

Add a terminal link handler for links that look like git commits #1002

Closed
Tyriar opened this issue Apr 16, 2020 · 2 comments
Closed

Add a terminal link handler for links that look like git commits #1002

Tyriar opened this issue Apr 16, 2020 · 2 comments
Assignees
Labels
feature New feature or request

Comments

@Tyriar
Copy link

Tyriar commented Apr 16, 2020

After setting terminal.integrated.experimentalLinkProvider, that enables "word links" which would include git commits like this:

image

image

Example usage of API to intercept and handle link clicks:

registerTerminalLinkHandler({
  handleLink(term, link) => {
    if (looksLikeACommit(link)) {
      // Handle
      return true;
    }
    return false;
  }
});
@eamodio
Copy link
Member

eamodio commented Dec 2, 2020

Added in GitLens 11

@eamodio eamodio closed this as completed Dec 2, 2020
@eamodio eamodio removed this from the Soon™ milestone Dec 2, 2020
@github-actions
Copy link

github-actions bot commented Jan 2, 2021

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants