1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Improve worktree panel

This commit is contained in:
Joel Baranick
2022-09-02 20:08:36 -07:00
committed by Jesse Duffield
parent c679fd1924
commit 54708233ac
3 changed files with 16 additions and 13 deletions

View File

@ -59,7 +59,15 @@ func (self *WorktreesController) GetOnRenderToMain() func() error {
if worktree.Missing() {
missing = style.FgRed.Sprint(" (missing)")
}
task = types.NewRenderStringTask(fmt.Sprintf("%s\nPath: %s%s", style.FgGreen.Sprint(worktree.Name()), worktree.Path, missing))
task = types.NewRenderStringTask(
fmt.Sprintf(
"Name: %s\nBranch: %s\nPath: %s%s\n",
style.FgGreen.Sprint(worktree.Name()),
style.FgYellow.Sprint(worktree.Branch),
style.FgCyan.Sprint(worktree.Path),
missing,
),
)
}
return self.c.RenderToMainViews(types.RefreshMainOpts{