vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

First name for inline blame?

Open ipkpjersi opened this issue 2 years ago • 2 comments

Hi,

I took a look and it seems like as far as I can tell, there's no duplicate issue for this and basically there's no way to be able to display only the author's first name for inline blame? This would be a really awesome feature for me to only display the author's first name in the inline blame.

Cheers.

ipkpjersi avatar Oct 22 '23 02:10 ipkpjersi

Hey, would you like the inline blame display to be Optional. This may indeed be a nice improvement.

Best.

Sweetdevil144 avatar Jun 24 '24 12:06 Sweetdevil144

Yeah, I think having it be optional would be nice - you could pick either full name or first name.

ipkpjersi avatar Jun 24 '24 13:06 ipkpjersi

Added 2 new formatting tokens ${authorFirst} and ${authorLast} that can be used in inline blame, commit hovers, etc

For example, they can be used in the following settings: gitlens.currentLine.format -- inline blame gitlens.hovers.detailsMarkdownFormat -- blame hovers gitlens.blame.format -- file blame gitlens.views.formats.commits.* -- commits in views gitlens.statusBar.format -- status bar blame gitlens.statusBar.tooltipFormat -- status bar hover

Can you please verify this fix in tomorrow's (v2024.09.25xx) pre-release edition of GitLens? Thank you so much!

You can switch to the pre-release edition of GitLens, by clicking on the "Switch to Pre-Release version of this extension" from the Extensions view.

image

eamodio avatar Sep 25 '24 05:09 eamodio

I have tested it just now and can confirm it works. Thanks!

ipkpjersi avatar Sep 25 '24 13:09 ipkpjersi

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[bot] avatar Nov 14 '24 05:11 github-actions[bot]