From 27de02523edf7fd3a8f497c85f9190503bbe14ba Mon Sep 17 00:00:00 2001 From: Vitaly Antonenko Date: Mon, 29 Aug 2022 12:24:31 +0300 Subject: [PATCH] Update Status view --- viddy.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/viddy.go b/viddy.go index 42fe9ba..bdd37c3 100644 --- a/viddy.go +++ b/viddy.go @@ -368,7 +368,7 @@ func (v *Viddy) renderSnapshot(id int64) error { } func (v *Viddy) UpdateStatusView() { - v.statusView.SetText(fmt.Sprintf("Suspend %s Diff %s Bell %s", + v.statusView.SetText(fmt.Sprintf("(S)uspend %s (D)iff %s (B)ell %s (H)elp [blue]?", convertToOnOrOff(v.isSuspend), convertToOnOrOff(v.isShowDiff), convertToOnOrOff(v.isRingBell))) @@ -593,7 +593,7 @@ func (v *Viddy) Run() error { if v.isDebug { v.ShowLogView(!v.showLogView) } - case '?': + case '?', 'h': v.ShowHelpView(!v.showHelpView) case '/': if v.query != "" { @@ -714,7 +714,7 @@ var helpTemplate = `Press ESC or Q to go back Toggle ring terminal bell : [yellow]b[-:-:-] Toggle diff : [yellow]d[-:-:-] Toggle header display : [yellow]t[-:-:-] - Toggle help view : [yellow]?[-:-:-] + Toggle help view : [yellow]h[-:-:-], [yellow]?[-:-:-] [::u]Pager[-:-:-]