Currently, if I right click on a branch in the Locations sidebar, there is an option to copy the branch name. It would be nice to have an entry like this in the Command Palette to copy a branch name to the clipboard for adding into tickets, build servers, etc.
Sublime Merge: add copy branch to Command Palette
I have the same need and use the copy branch name feature all the time. I ended up adding a shortcut key using the following to my keymap file
{
“keys”: [“ctrl+c”],
“command”: “copy_to_clipboard”,
“args”: { “text”: “$head” }
}
1 Like