Add nano-style key menu option

Use the `keymenu` option (default `off`) to enable. ToggleKeyMenu is
also bound to `Alt-g` and this info is now displayed in the status line.

Closes #829
This commit is contained in:
Zachary Yedidia
2017-10-02 23:44:11 -04:00
parent b3559df543
commit 8b8fffb98d
9 changed files with 81 additions and 7 deletions

View File

@@ -204,6 +204,7 @@ func DefaultGlobalSettings() map[string]interface{} {
"ignorecase": false,
"indentchar": " ",
"infobar": true,
"keymenu": false,
"mouse": true,
"rmtrailingws": false,
"ruler": true,
@@ -312,7 +313,7 @@ func SetOption(option, value string) error {
}
}
if option == "infobar" {
if option == "infobar" || option == "keymenu" {
for _, tab := range tabs {
tab.Resize()
}