mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
Improve name handling
This commit is contained in:
@ -38,6 +38,12 @@ func GetWorktreeDisplayString(isCurrent bool, isPathMissing bool, worktree *mode
|
||||
if icons.IsIconEnabled() {
|
||||
res = append(res, textStyle.Sprint(icon))
|
||||
}
|
||||
res = append(res, textStyle.Sprint(worktree.Name()))
|
||||
|
||||
name := worktree.Name()
|
||||
if worktree.Main() {
|
||||
// TODO: i18n
|
||||
name += " (main worktree)"
|
||||
}
|
||||
res = append(res, textStyle.Sprint(name))
|
||||
return res
|
||||
}
|
||||
|
Reference in New Issue
Block a user