Closed ivribalko closed 5 months ago
Hi @ivribalko,
Thanks for reaching out!
You might be looking for the head
variable.
This variable will resolve to the current branch name if a branch is checked out. If a commit is checked out instead, this variable will resolve to the commit hash.
Kind regards, - Dylan from Sublime HQ
yup, that works! thank you!
Problem description
this opens 'create branch' menu without any prefix:
but this works and adds current commit as prefix:
Preferred solution
$branch
should give current branch name to the commandAlternatives
more involved custom command? I know there's 'right click -> create branch...' from branch folder but it doesn't do it for me and 'right click -> copy $branch' on a branch is almost good but also not quite
Screenshots