fork-dev / Tracker

Bug and issue tracker for Fork for Mac
506 stars 12 forks source link

[Feature Request] Copy branch name with `Cmd+C`/`Ctrl+C` #2053

Open pedrofialho opened 8 months ago

pedrofialho commented 8 months ago

It would be great if we could copy the name of the selected branch in the branch list on the sidebar when focused, in the same way we can copy a commit SHA with Cmd+C/Ctrl+C in the commit list.

image image

One gotcha I noticed is that branches lose their focus on the first click because it auto-reveals the branch tip in the commit list, so you have to click again on it to select it properly. If that's not handled, a user trying this feature could inadvertently copy the commit SHA thinking the branch name was focused. If that's something that can be changed then it should be a straightforward enhancement.

richellis commented 4 months ago

Alternatively, perhaps Cmd+Opt+C or Cmd-Ctrl-C could work to copy the current branch name, regardless of what is selected in the UI?

Or please at least add Copy Branch Name to the Edit menu so I can use macOS Settings to add a custom app shortcut. Custom shortcuts are only available for menu bar items; currently Copy Branch Name is only available in the branch's right-click context menu.