mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user