arl / gitmux

:computer: Git in your tmux status bar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] trim-from-left branch name

elad-eyal opened this issue · comments

if branch_max_len > 0

and the branch name is too long

it should truncate by removing the start and leaving the end of the branh name

because may of my branches start with authorname/ so it's not useful to see just the start.

We could do that in a backward compatible way by:

  • adding an additonal parameter
  • or by interpreting negative max_branch_len as trim from the end and positive as trim from the start

@eladeyal-intel the feature is present from version v0.7.6
latest -> https://github.com/arl/gitmux/releases/latest

thanks!!! @arl