timbrel / GitSavvy

Full git and GitHub integration with Sublime Text
MIT License
1.9k stars 135 forks source link

Add keybind to tag a commit from the log view #1871

Closed p3lim closed 3 months ago

p3lim commented 3 months ago

If I wanted to tag a specific commit (e.g. before HEAD) I have to leave the context of ST/GitSavvy and do it in a terminal.

It would be nice if the log/graph view had a keybind of t (or something) to prompt for a tag name and message (like the "git: quick tag" menu option, could even re-use it for this) for the commit under the cursor.

p3lim commented 3 months ago

Same goes for removing an existing tag from a commit.

kaste commented 3 months ago

This is in the graph:

image

and it indeed calls the "quick tag" command with the commit under the cursor. Quick Tag is a strange name, don't know why it isn't explicit here "git: create tag at HEAD".

p3lim commented 3 months ago

Ah I wasn't aware of that contextual menu, thanks.

Looking at gs_tag_create it doesn't seem like I could add a binding for this myself, but the menu will suffice. I would however request that the menu entries are a little more verbose, like you mentioned: