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

Expose components of ${commands} for use in detailsMarkdownFormat ? #3365

Open
ian-h-chamberlain opened this issue Jun 25, 2024 · 0 comments
Labels
feature New feature or request triage Needs to be looked at

Comments

@ian-h-chamberlain
Copy link
Contributor

Hi, I recently learned about gitlens.hovers.detailsMarkdownFormat, which is awesome! Having the power to customize those hovers is great, but it is of course still limited to the format tokens described in https://github.com/gitkraken/vscode-gitlens/wiki/Custom-Formatting#commit-tokens

I wanted to ask if it would be possible to expose the components used to create the ${commands} token as individual tokens of their own — Personally I tend to use only 2 or 3 of them, and it would be nice to declutter the hover with only the buttons I need.

Looking at https://github.com/gitkraken/vscode-gitlens/blob/main/src/git/formatters/commitFormatter.ts#L357 I would guess the different pieces could be exposed as helpers, and ${command} implemented in terms of those pieces. Is this feasible / would you accept a PR to do something like this and empower users to build a custom "commands toolbar" using those pieces?

@ian-h-chamberlain ian-h-chamberlain added feature New feature or request triage Needs to be looked at labels Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request triage Needs to be looked at
Projects
None yet
Development

No branches or pull requests

1 participant