Add option to hide listBinds when pressing keys (#1815)

* add drawbinds option

* rename drawbinds to showbinds and change its place in docs

* minor changes in wording of showbinds option

* fix missing newlines

---------

Co-authored-by: yarik <dazzywi@github.com>
This commit is contained in:
yarikandyarik authored and GitHub committed 2024-10-22 23:45:48 +11:00
1 parent 440c258287
commit 6cd51210e3
6 files changed
+24 -4

No files matched your search

+3 -1
View File
@@ -1359,7 +1359,9 @@ func (ui *ui) readNormalEvent(ev tcell.Event, nav *nav) expr {
ui.menuBuf = nil
return expr
}
ui.menuBuf = listBinds(binds)
if gOpts.showbinds {
ui.menuBuf = listBinds(binds)
}
return draw
}
case *tcell.EventMouse: