From 92c9eb614f93aa14fe241f7c3343832ca7f1e73a Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Tue, 1 Jul 2025 09:47:38 +0200 Subject: [PATCH] Show stash title in main view for selected stash entry --- pkg/gui/controllers/stash_controller.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/gui/controllers/stash_controller.go b/pkg/gui/controllers/stash_controller.go index 786d5c675..c6ec419dc 100644 --- a/pkg/gui/controllers/stash_controller.go +++ b/pkg/gui/controllers/stash_controller.go @@ -3,6 +3,7 @@ package controllers import ( "github.com/jesseduffield/lazygit/pkg/commands/models" "github.com/jesseduffield/lazygit/pkg/gui/context" + "github.com/jesseduffield/lazygit/pkg/gui/style" "github.com/jesseduffield/lazygit/pkg/gui/types" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -82,8 +83,10 @@ func (self *StashController) GetOnRenderToMain() func() { if stashEntry == nil { task = types.NewRenderStringTask(self.c.Tr.NoStashEntries) } else { - task = types.NewRunPtyTask( + prefix := style.FgYellow.Sprintf("%s\n\n", stashEntry.Description()) + task = types.NewRunPtyTaskWithPrefix( self.c.Git().Stash.ShowStashEntryCmdObj(stashEntry.Index).GetCmd(), + prefix, ) }