mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-10-23 17:48:30 +03:00
Show "Log (x of y)" in the title bar when there is more than one branch log command
This commit is contained in:
@@ -181,10 +181,14 @@ func (self *StatusController) showAllBranchLogs() {
|
||||
cmdObj := self.c.Git().Branch.AllBranchesLogCmdObj()
|
||||
task := types.NewRunPtyTask(cmdObj.GetCmd())
|
||||
|
||||
title := self.c.Tr.LogTitle
|
||||
if i, n := self.c.Git().Branch.GetAllBranchesLogIdxAndCount(); n > 1 {
|
||||
title = fmt.Sprintf(self.c.Tr.LogXOfYTitle, i+1, n)
|
||||
}
|
||||
self.c.RenderToMainViews(types.RefreshMainOpts{
|
||||
Pair: self.c.MainViewPairs().Normal,
|
||||
Main: &types.ViewUpdateOpts{
|
||||
Title: self.c.Tr.LogTitle,
|
||||
Title: title,
|
||||
Task: task,
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user