-
Notifications
You must be signed in to change notification settings - Fork 405
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
🚀 Support custom hyperlink hash formats #613
Comments
Hi @HarrisonMc555, thanks! Currently what delta does is look in the git repo config for |
Looking into it more, I see that if the |
@dandavison I agree with your conclusions. Parsing common formats (GitHub, GitLab, Bitbucket?) still seems like a nice default, but providing a If you're open to it I'm willing to look into creating a pull request! I'm more than willing to take any pointers for getting started, though 😃 |
Ah, I should have held off :) I actually already made the change (#614) but if you are interested in helping with some code contributions for delta that would be fantastic and I can always suggest tickets of different levels of effort (feel free to chat here or you can email me at [email protected]). Also understand if it was more this particular feature that was providing sufficient motivation :) |
* Refactor: hyperlinks utility * Add hyperlinks-commit-link-format option Fixes #613
OK, this has been added, thanks for the suggestion and sorry for stealing your PR! So for example, on master, I am able to do
and the commit is formatted as a hyperlink to https://invent.kde.org/utilities/konsole/-/commit/1cda384ec34e70ce052f8d177a8afcb665964663. |
No worries! That was a quick turnaround 😃 thanks for the new feature! |
|
First of all, thanks for the great tool!
I think it's super cool that delta supports terminal hyperlinks. There's a lot of great support and documentation for file links, including a
--hyperlinks-file-link-format
flag that lets you customize how the file links are created.There is also support for creating links for Git hashes. However, it appears that this is hard-coded to support GitHub repositories and nothing else.
Would you be open to adding a
--hyperlinks-hash-link-format
(or something like that)? I imagine it would be similar and simply have a{hash}
placeholder.If we wanted to go further, we could support the
{hash}
placeholder in the file link, which would allow users to open file links in their browser (or something) if they wanted. Just a thought 😃The text was updated successfully, but these errors were encountered: