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

Feature Request: Command to show commit as plain text #19

Closed
Arnesfield opened this issue Nov 24, 2024 · 1 comment
Closed

Feature Request: Command to show commit as plain text #19

Arnesfield opened this issue Nov 24, 2024 · 1 comment

Comments

@Arnesfield
Copy link

Currently, there is an existing command betterGitLineBlame.showCommit that shows a markdown preview of the commit info to the side. I'd like to request another command that more or less does the same thing but as plain text (even the same markdown source text would be fine).

My main use case is being able to copy contents of the commit info (i.e. the commit hash or message) without having to use the mouse to select the contents from either the hover popup or the markdown preview.

I've made a workaround for this via a keybinding which shows the preview for the commit info then shows the markdown source for it:

{
  "key": "alt+a",
  "command": "runCommands",
  "when": "editorTextFocus",
  "args": {
    "commands": [
      "betterGitLineBlame.showCommit",
      "markdown.showSource",
      "workbench.action.openPreviousRecentlyUsedEditor"
      // then close the markdown preview manually
    ]
  }
}

Hopefully it gets planned as a feature as it would be nice to have as a command so it's always consistent.

@Arnesfield Arnesfield changed the title Feature Request: Command to show source commit as plain text Feature Request: Command to show commit as plain text Nov 24, 2024
@mk12 mk12 closed this as completed in 321082a Nov 25, 2024
@mk12
Copy link
Owner

mk12 commented Nov 25, 2024

Published in 0.2.12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants