Open Arnesfield opened 3 days ago
This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!
For the inline git blame annotations (from https://github.com/microsoft/vscode/issues/205424#issuecomment-2504143954), hovering over them shows more details about the commit as well as some actions to copy the commit hash (or ID) and the commit subject (first line of the commit message).
My suggestion is to add commands to perform these copy methods, and that way these methods can also be added as keybindings.
Some command suggestions:
As reference, the GitLens extension also has similar commands available:
gitlens.copyShaToClipboard
- Copies the commit hash to clipboard.0000000000000000000000000000000000000000
gitlens.copyMessageToClipboard
- Copies the entire commit message to clipboard.Also, note that users can insert multiple cursors and that will show multiple inline annotations at once. With the GitLens extension and from my testing, it seems like it copies the commit info from the active cursor/line before any additional cursors are inserted. Not sure what's ideal copy result for multiple cursors, as copying the info from the last cursor instead of the first also kinda makes sense to me.
I think adding these copy commands will be useful. Even though it's already possible to click and copy from the hover popup, being able to copy without needing to use the mouse or tabbing through the hover popup seems like a better experience.
I'm excited for this inline git blame annotations feature and I hope it gets included in the stable release soon, thanks for the work!