fix: minor change
This commit is contained in:
parent
3d728e4dc5
commit
a28d2060b3
1 changed files with 4 additions and 4 deletions
|
@ -171,11 +171,11 @@ func (c *Cli) GroupsBox() string {
|
||||||
func (c *Cli) HelpBox() {
|
func (c *Cli) HelpBox() {
|
||||||
p := widgets.NewParagraph()
|
p := widgets.NewParagraph()
|
||||||
p.SetRect(25, 0, 80, 20)
|
p.SetRect(25, 0, 80, 20)
|
||||||
p.Title = "Short keys"
|
p.Title = "Short cuts"
|
||||||
p.Text = `[<escape>](fg:yellow) clear current search
|
p.Text = `[<escape>](fg:yellow) clear current search
|
||||||
[<enter> ](fg:yellow) select entry or group
|
[<enter> ](fg:yellow) select entry or group
|
||||||
[<up> ](fg:yellow) move cursor to up
|
[<up> ](fg:yellow) move cursor up
|
||||||
[<down> ](fg:yellow) move cursor to down
|
[<down> ](fg:yellow) move cursor down
|
||||||
[h ](fg:yellow) print this help message
|
[h ](fg:yellow) print this help message
|
||||||
[q ](fg:yellow) quit
|
[q ](fg:yellow) quit
|
||||||
[g ](fg:yellow) filter the entries by group
|
[g ](fg:yellow) filter the entries by group
|
||||||
|
@ -336,7 +336,7 @@ func (c *Cli) ListEntries(ch chan<- bool) {
|
||||||
l.Rows = append(l.Rows, entry.Name)
|
l.Rows = append(l.Rows, entry.Name)
|
||||||
}
|
}
|
||||||
ui.Clear()
|
ui.Clear()
|
||||||
c.NotificationBox("pess h to view short keys", false)
|
c.NotificationBox("press h to view short cuts", false)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(entries) > 0 && index >= 0 && index < len(entries) {
|
if len(entries) > 0 && index >= 0 && index < len(entries) {
|
||||||
|
|
Loading…
Reference in a new issue