summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJoel Baranick <joel.baranick@ensighten.com>2022-09-02 20:08:36 -0700
committerJesse Duffield <jessedduffield@gmail.com>2023-07-30 18:35:21 +1000
commit54708233ac595067937f09851fa58a0a326ca71f (patch)
tree5fe56384c63fa7bab11e9d60e78a94a2304aca4d /pkg/gui
parentc679fd1924e9669a30d038fbdd164d948393c301 (diff)
Improve worktree panel
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/controllers/worktrees_controller.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/pkg/gui/controllers/worktrees_controller.go b/pkg/gui/controllers/worktrees_controller.go
index c54ab9db0..bff498277 100644
--- a/pkg/gui/controllers/worktrees_controller.go
+++ b/pkg/gui/controllers/worktrees_controller.go
@@ -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{