diff --git a/cmd/micro/actions.go b/cmd/micro/actions.go index d5d52065..49dbf7a8 100644 --- a/cmd/micro/actions.go +++ b/cmd/micro/actions.go @@ -1551,6 +1551,25 @@ func (v *View) ToggleHelp(usePlugin bool) bool { return true } +// ToggleKeyMenu toggles the keymenu option and resizes all tabs +func (v *View) ToggleKeyMenu(usePlugin bool) bool { + if v.mainCursor() { + if usePlugin && !PreActionCall("ToggleBindings", v) { + return false + } + + globalSettings["keymenu"] = !globalSettings["keymenu"].(bool) + for _, tab := range tabs { + tab.Resize() + } + + if usePlugin { + return PostActionCall("ToggleBindings", v) + } + } + return true +} + // ShellMode opens a terminal to run a shell command func (v *View) ShellMode(usePlugin bool) bool { if v.mainCursor() { diff --git a/cmd/micro/bindings.go b/cmd/micro/bindings.go index b62be8b3..7f5dccdc 100644 --- a/cmd/micro/bindings.go +++ b/cmd/micro/bindings.go @@ -12,6 +12,7 @@ import ( var bindings map[Key][]func(*View, bool) bool var mouseBindings map[Key][]func(*View, bool, *tcell.EventMouse) bool var helpBinding string +var kmenuBinding string var mouseBindingActions = map[string]func(*View, bool, *tcell.EventMouse) bool{ "MousePress": (*View).MousePress, @@ -78,6 +79,7 @@ var bindingActions = map[string]func(*View, bool) bool{ "StartOfLine": (*View).StartOfLine, "EndOfLine": (*View).EndOfLine, "ToggleHelp": (*View).ToggleHelp, + "ToggleKeyMenu": (*View).ToggleKeyMenu, "ToggleRuler": (*View).ToggleRuler, "JumpLine": (*View).JumpLine, "ClearStatus": (*View).ClearStatus, @@ -397,9 +399,15 @@ func BindKey(k, v string) { if v == "ToggleHelp" { helpBinding = k } + if v == "ToggleKeyMenu" { + kmenuBinding = k + } if helpBinding == k && v != "ToggleHelp" { helpBinding = "" } + if kmenuBinding == k && v != "ToggleKeyMenu" { + kmenuBinding = "" + } actionNames := strings.Split(v, ",") if actionNames[0] == "UnbindKey" { @@ -490,6 +498,7 @@ func DefaultBindings() map[string]string { "CtrlPageUp": "PreviousTab", "CtrlPageDown": "NextTab", "CtrlG": "ToggleHelp", + "Alt-g": "ToggleKeyMenu", "CtrlR": "ToggleRuler", "CtrlL": "JumpLine", "Delete": "Delete", @@ -509,7 +518,6 @@ func DefaultBindings() map[string]string { // "Alt-n": "CursorDown", // Integration with file managers - "F1": "ToggleHelp", "F2": "Save", "F3": "Find", "F4": "Quit", diff --git a/cmd/micro/keymenu.go b/cmd/micro/keymenu.go new file mode 100644 index 00000000..737cc36f --- /dev/null +++ b/cmd/micro/keymenu.go @@ -0,0 +1,20 @@ +package main + +// DisplayKeyMenu displays the nano-style key menu at the bottom of the screen +func DisplayKeyMenu() { + w, h := screen.Size() + + bot := h - 3 + + display := []string{"^Q Quit, ^S Save, ^O Open, ^G Help, ^E Command Bar, ^K Cut Line", "^F Find, ^Z Undo, ^Y Redo, ^A Select All, ^D Duplicate Line, ^T New Tab"} + + for y := 0; y < len(display); y++ { + for x := 0; x < w; x++ { + if x < len(display[y]) { + screen.SetContent(x, bot+y, rune(display[y][x]), nil, defStyle) + } else { + screen.SetContent(x, bot+y, ' ', nil, defStyle) + } + } + } +} diff --git a/cmd/micro/micro.go b/cmd/micro/micro.go index dc7b1c0e..fb7fe927 100644 --- a/cmd/micro/micro.go +++ b/cmd/micro/micro.go @@ -225,6 +225,9 @@ func RedrawAll() { } DisplayTabs() messenger.Display() + if globalSettings["keymenu"].(bool) { + DisplayKeyMenu() + } screen.Show() } diff --git a/cmd/micro/runtime.go b/cmd/micro/runtime.go index 33e5bd58..f1c0798f 100644 --- a/cmd/micro/runtime.go +++ b/cmd/micro/runtime.go @@ -1010,7 +1010,7 @@ func runtimeHelpKeybindingsMd() (*asset, error) { return a, nil } -var _runtimeHelpOptionsMd = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x59\x5f\x6f\xdc\xb6\xb2\x7f\x8e\x3e\xc5\xc0\x29\x60\xbb\x58\x6f\x8a\xde\x3c\x14\xfb\x72\x91\x34\xf7\xa6\x05\xda\xa6\x68\x73\xef\x69\x71\x7a\x50\x51\xd2\x68\xc5\x9a\x22\x55\x92\x5a\x5b\x29\x7a\x3e\xfb\xc1\xcc\x90\x92\x76\xbd\x76\xf2\xb6\x2b\x51\xf3\xff\xcf\x6f\x86\xcf\x9f\x3f\x87\x77\x43\xd4\xce\x86\xa2\xf8\x5e\xd7\xde\x41\x88\xce\x63\x00\x65\x0c\xb8\x16\x62\x87\x30\x06\xf4\x50\x3b\xdb\xea\xfd\xe8\x15\x1d\x06\x6d\x41\xc7\x70\xf2\xb0\xd1\x1e\xeb\xe8\xfc\xb4\xcd\xb4\xc6\x80\x81\x49\x94\x9f\xfd\xf2\xe6\xed\xef\x5f\xbf\xfb\xe1\x7f\xbf\x7d\xfb\xfb\x37\xef\xbe\xff\x9f\x17\x3d\x1d\x28\x41\xc9\xfb\xc7\x08\xc1\xab\x00\x03\xfa\x82\xce\xfc\xf2\xe6\x2d\x84\x01\xeb\x0d\xe8\xf6\x21\xc1\x12\x74\x00\xeb\x22\x04\x8c\x1b\x28\xff\xfd\x62\x2b\x34\x33\x23\x1d\x48\x9a\x86\x18\x16\x0b\xc7\x23\x99\xbf\x41\x8f\xa0\x3c\xb2\x44\x4e\xac\x02\xb1\x53\x11\x26\x37\x42\xad\x2c\xd1\xde\x15\xc5\xe7\x50\xd6\xce\x38\x1f\xea\x0e\x7b\x2c\x77\x60\x9c\x6a\xb2\x1e\xf3\x73\x31\x64\x43\xa6\x2a\x00\xe0\xb3\x2b\xe1\xf8\x46\xfb\xeb\x17\xab\x63\xe1\x45\x29\xac\xca\x2d\x4b\x4a\x67\xdf\x77\x3a\x10\xaf\xa8\xed\x9e\x04\x2f\xf7\xc6\x55\xca\x80\xb3\x66\x2a\xb7\x45\xf1\xac\xc1\x56\x8d\x26\xc2\x41\x99\x11\x77\x50\xa6\xff\x65\xf1\xec\x07\x17\x51\x64\x26\x71\xf2\xb9\x35\x3f\xb8\x4a\x4f\x37\x10\x9c\x51\x5e\x7f\xc0\x66\x03\xca\x36\xcb\xdf\x9b\x58\x5f\x17\xcf\xc8\x12\x64\x50\xe3\x6a\x15\x45\x91\x59\x85\x0d\x54\x58\xab\x31\xb0\xad\x26\x36\x1a\xf6\x15\x36\x8d\x9c\x23\xde\xac\x0d\x54\xda\x2a\x36\xee\xb3\xf7\x27\xe6\x21\x7b\x56\x08\x01\x0d\xd6\x44\xbe\xf5\xae\xe7\xa8\xa3\x8f\x5b\x6d\x30\x64\x4a\xc5\xb3\x13\x6f\x1e\xdb\x6f\x1d\x2e\x12\x76\xb5\x23\x3d\xab\x69\xd6\xff\x4e\xc7\x0e\x62\xe7\x11\x8b\x67\xeb\x6f\x77\x05\x99\x1b\x7e\x4d\xee\xf5\xa8\x1a\xe8\x1d\x45\x41\xe5\xc6\x28\x2a\x5c\x86\x63\xf3\x25\xa1\x52\x08\x94\xd0\xa1\x19\x20\xba\x41\xd7\x4c\xeb\xaa\xe4\x07\xe9\xed\xf5\x76\x09\x97\xda\x99\xb1\xb7\xe5\x8e\xc2\x37\x92\x87\x97\x80\x85\xe8\xe0\x8b\x0d\x68\x92\xd4\x18\x68\x74\x18\x8c\x9a\x40\x81\x7c\x03\xc9\x9d\x14\xfd\xba\xd5\xd8\x10\x27\x79\xb5\x95\x60\x91\xe8\x6e\x47\x43\xc4\x29\x5a\xef\x94\x8d\xf9\xeb\xaf\xbe\x20\xfa\x15\x42\xa7\xf7\x9d\xd1\xfb\x8e\xcc\xcd\xb4\x94\x81\xd6\x79\xc0\x7b\xd5\x0f\x06\xcf\x45\xd6\x17\x25\x2b\x80\xae\xb5\x78\x67\xb4\xa5\x70\x17\xcf\xb2\xa4\x6a\x8c\xae\x57\x51\xd7\xca\x98\x09\x54\xd3\x80\x82\x74\x90\x78\x66\x57\x9e\xa3\xdc\x2a\x13\x50\xa8\xfb\x3e\x7a\xa5\x8d\xb6\xfb\xbb\xf0\x14\xfd\xe8\x75\x0f\xf9\x28\xdc\x75\x3a\x62\x18\x54\x4d\xd5\x2a\x02\x3a\xf3\x11\x36\x51\x55\x41\x7f\x20\x0d\x02\x46\xc9\xd7\xa8\x2a\xa0\x67\x24\x6c\xce\xc3\x33\x44\x5e\x0a\x01\x6d\x1b\xb4\xb1\xee\x94\x5f\xd3\x90\xa7\x52\xb9\xe8\x9d\xaa\x23\xfa\x33\x44\x20\x13\x69\x5d\xc5\x14\xd0\xaa\xca\xa4\x02\xc9\x16\x4b\x6e\xae\x5c\x8c\xae\xcf\xd5\x17\x1b\x1d\x9d\x87\xbb\x8e\xaa\x53\x8f\x21\xa8\x3d\x29\xec\x11\x06\xaf\x6d\xc4\x66\x3b\x97\x0c\x51\xe0\x93\x2a\x06\xeb\xf9\x39\x94\xe4\x9d\x38\x0d\x47\x46\xc9\xcf\x38\x36\xb8\xaa\x8d\xde\xa3\x8d\x50\x8d\x6d\x8b\x7e\xfb\xb0\x3e\x51\x89\x48\xcc\x24\xa3\x4e\xd8\x71\xb8\xb3\x43\x2b\x3c\xf1\x29\x45\x7f\x83\x03\xda\x86\x88\x39\x3b\x4b\xc0\x61\xdc\xa9\x03\x95\x62\xb4\x62\xba\xbd\x75\x1e\x6b\x15\x48\xdc\x01\x7d\xeb\x7c\x0f\xf4\xf7\x46\xdb\x80\x36\xe8\xa8\x0f\x54\x51\x94\xaf\x3b\x0c\xe7\xb4\x6e\x5b\x51\x3b\x4c\x36\xaa\xfb\x72\x07\x71\xf4\x36\x80\xfc\x25\xee\xce\x83\x6b\xdb\x27\x0c\x46\x41\x14\x9d\x84\x5d\xb9\xa3\xac\x83\x14\x83\xda\x86\x48\x05\x84\xfc\xa6\xaa\x27\xd9\x47\x55\xf5\xee\x80\x3d\xda\x58\xee\xc0\xaa\x83\xde\xab\x38\x13\xca\x61\x80\x7b\x6d\x2d\x5b\xa5\xe5\xf8\x08\xd4\xbc\xb8\x78\xa4\x92\x4b\x6c\xe0\x0a\xb7\xfb\x2d\x10\x39\x70\x07\xf4\xf0\x72\x45\xc6\xd9\x1a\xaf\x1f\xc4\x07\xf9\x09\x1a\x47\x47\xec\x14\x3b\x76\x62\x7b\xa2\x19\xb9\xd5\xd9\xed\x59\x6f\x2e\x7a\x90\x2b\x25\xfc\xcb\x1d\x45\xa8\x85\xda\xa3\xe2\xb0\xe0\x3a\x20\x61\x9d\xda\x04\x04\xd5\x1f\x67\x4b\x6a\xfe\xc4\x63\xf0\x78\xd0\x6e\x0c\xfc\xc5\x13\xe6\xaf\x47\x1f\x9c\x4f\x85\x68\xae\x67\x4b\x0a\xcd\xad\x4f\x0e\x8a\x1a\x54\xb3\x15\x34\x9a\xa2\x17\x6d\x6a\x87\xc4\xf5\x6a\xee\xd9\x74\xb0\xc1\x56\x5b\x6c\xa8\x71\x9c\xf6\x72\x8a\x45\xb2\xf8\x18\xb4\xdd\x5f\x3f\x21\x9f\x1f\x0d\x52\x6e\xe7\x12\xce\x42\xd9\xb1\xaf\xd0\x9f\x8d\x88\xf4\x59\x88\x2a\x8e\x21\xa9\x95\xbf\x65\x9b\xf1\x8b\x27\xca\x43\xa8\x3d\x52\x7a\x3c\x4e\x5a\x1d\x50\x8c\x51\xee\xc0\x63\x4f\x7d\x3a\x97\x93\x95\xa1\xee\x54\x00\xa3\x42\x84\xa8\x7b\x5c\x92\x90\x1e\x53\xfe\x11\x72\xb2\xdc\x77\x86\x31\x52\xa3\x8a\x4c\x80\x7d\x4e\xc6\xa1\x33\xcb\x57\x6a\xaf\xf4\x59\x99\xe6\xfc\x53\x07\x1c\x6d\xe3\x72\xd8\xc4\xe3\xf2\xe5\xec\x06\xe8\x35\xfd\xa6\xa3\x0d\xe0\x01\x2d\xa8\x36\xa2\x17\x30\x66\x5c\x40\x50\xcc\x8d\x84\x0a\x2e\x37\xbe\xf4\xc6\x36\xe0\x91\x85\x92\x43\x9b\x19\xc3\xdd\x22\x0e\x4c\x5c\xdb\xfd\x93\x22\xd6\xde\x19\xd3\x2b\xbf\xd7\xd4\xb4\x55\xef\x46\x1b\x97\x54\xe4\x26\xeb\x46\xd3\x80\xd1\xb7\xdc\x3f\x02\x32\x6e\x38\x08\xf7\x0a\x8d\xbb\x5b\x19\xf8\x0c\xab\xff\x5a\x33\x0a\x03\x62\x73\x86\x0f\x11\xe6\x03\x5c\x8d\x9d\xc5\xfc\x97\x2c\x12\xcf\x50\xfd\x32\x51\x75\x6d\xbc\xf3\x6a\xa0\xc2\xde\xb1\x9c\xa9\xad\x7a\x35\x64\xd2\x94\x2b\x5c\x47\x9c\x03\xe3\xec\x9e\x98\xb5\x3a\xe6\x2a\xfc\x78\x68\xcd\x36\x1a\x8c\x8e\x3f\x51\x06\x66\x47\x2a\x38\xa0\xe7\xda\x0e\xfc\x92\x3c\xc8\x35\x81\x40\x66\x12\x44\x47\x6a\x03\xe9\x69\x86\x09\x9e\xf3\xd8\xb5\xe4\xcd\x75\xcf\x61\x2a\xff\xfd\x54\x7c\xd3\x81\xd7\x9c\x13\x8b\x10\x9d\xf3\xfa\x83\xb3\xf1\xd3\xc5\x98\xfd\xc5\xd8\xea\x53\x99\x53\x01\xa4\x00\x3d\x46\x2d\xf4\x44\x52\x95\x1b\x26\xb9\xca\x4f\xf0\x15\x04\xac\x9d\x6d\xc2\x71\x07\xe4\xf2\x2c\xb8\x55\x99\x70\x16\xf7\x30\x3d\x0a\xaa\x3f\x47\x82\x88\x39\xe7\xf0\x5e\x0b\xb4\x25\xac\xaa\xc2\xad\xb6\x7b\x26\xf6\x9a\xc0\xb5\x67\x34\xc8\x67\xb9\x68\x49\x8a\xb5\xa8\xe2\xe8\x71\x81\xef\x44\xa7\x67\xd3\xab\xba\xd6\x5c\x9a\x17\x8e\x92\x39\x44\x92\x3a\xcb\x9d\xd7\x51\x70\x97\x8a\x5c\x17\xa4\x04\x54\xd8\x3a\x7f\x16\xe1\xcd\x61\x32\x98\x71\xaf\x6d\xdd\x29\x6b\xd1\x50\xd7\xac\xc9\x35\xda\x86\x19\xef\xe7\x77\x33\xe4\x96\x4f\xa0\x57\x56\xed\xa9\x5c\xb1\x59\xb9\xb1\x93\x38\x94\x0a\x72\x82\xda\xee\x16\x5e\x65\x02\x5c\x30\x74\x3f\x10\x18\x05\xa3\x03\x27\xd2\xa5\xc7\xc1\x05\x42\x51\xd3\x25\xfc\x11\x9c\x4d\xe3\xc5\x5d\xa7\xeb\x2e\xcb\x42\x64\x7b\x8c\xaa\x51\x51\x25\xf8\x4f\x82\xed\x35\x15\x1e\xe1\xb5\x85\x9f\x51\xfc\x5a\xfe\x28\xe2\x7d\x2f\xe2\x95\xe4\x59\x69\xad\x52\x94\x93\xc6\x0f\xa6\x03\x92\x9b\xe7\x0b\x02\x81\xbe\xe7\x2e\x78\xce\x72\x5d\x8c\x43\xd8\xbd\x78\xb1\xd7\xb1\x1b\xab\x6d\xed\x7a\x19\x7c\x6e\x04\x0c\xbe\x10\xf2\x37\x49\xe9\xb5\x91\x59\xd5\x73\x16\x5e\x8c\xa0\x31\x5c\x7e\x82\x9d\x49\x58\xae\xf7\x47\x76\x5e\x4c\x49\x2c\x82\x0e\x31\x90\xd2\x0a\x4a\x7a\xb3\x25\xeb\x96\xa9\x73\xac\xad\x1b\x16\xdb\x92\x0d\x14\xd7\x6c\x6d\xf7\x06\xb3\x6d\x1f\x07\xcc\x63\xc0\xc1\xeb\x5e\xf9\xa9\x84\x2b\xc6\x2e\x69\xd4\x71\x16\xbe\xd3\x76\xbc\xbf\xde\xa5\xd6\x4d\x2e\x45\x8a\x4a\x82\x71\x34\x5a\xad\x72\x32\x83\x90\x44\x0a\x6a\xa3\x87\xca\x29\xcf\x05\xa8\x76\xc3\x94\x26\x51\x5e\x85\x00\xe4\x31\xaf\x52\xf5\xed\xde\xbb\xd1\x36\x09\xf6\x32\x6e\x22\xda\xaa\x6d\xb1\x96\x20\xb1\xe4\x4b\xb3\x22\x29\x19\xf7\x75\xf4\xe6\xe6\x6b\x4e\x5c\xfe\xf9\xff\x4f\x01\x71\x6a\x4b\x0f\xe1\x94\x10\x5a\x9e\x6f\x56\x53\x0f\xc5\xba\xe2\x89\x9b\x4c\x3a\xb9\x71\x7b\x84\xf2\x1a\x8c\xe8\x7b\xb6\x8a\xe6\xaa\x3a\xd7\x0d\xc6\x8a\xa9\xec\x5a\xbc\x8f\x82\x2e\xe6\x42\x62\x27\x82\xb2\x54\xc5\x65\xff\x81\x6b\x9e\x31\x27\xbf\x70\x4e\xa5\xb4\x42\x68\xd0\x60\x1e\x46\x5e\x2f\x93\x37\x7d\xbe\x88\x7f\x22\x7d\xfa\x26\x61\xda\x24\x06\xe1\x10\x6c\x23\x60\x3f\xc4\xe9\x63\x00\x94\x54\x8c\x3a\x1a\x86\x4d\xe7\x63\x60\x72\xa3\x07\x31\x85\x32\x97\x01\xf8\xf8\x3c\x8c\xd0\xf8\x51\x4d\x39\x50\xc8\x42\x82\x76\x3e\xc6\xb8\x77\x23\x4f\x21\x99\x59\x74\x69\x9c\x03\x7e\x03\x61\x1c\x06\xe7\xe3\x16\xfe\x41\x34\x8f\x9e\xb1\xe6\x3a\xd0\xe1\x66\x03\x63\x18\x65\xb6\xa5\x69\x34\x49\xb9\x8c\x4a\x95\xc0\x9b\xe8\xa8\x3c\x63\x08\x89\x12\xf7\xfe\xb9\x80\xc9\x22\xe5\xcc\xfc\x9f\x23\x9b\x57\x2b\x47\x0c\x56\xb3\x0a\xbf\x14\xfd\xaf\x24\x50\x78\x8c\x08\xa1\x5b\xef\x06\x8e\x16\x3e\x0b\x9d\x8e\x22\x41\x24\x4b\x01\x25\xa3\xe0\x92\x0a\x14\xfd\x42\x3d\x67\xce\xf5\x63\xb6\x5d\x8d\xa4\x52\x1d\xcb\x34\x39\xae\x42\x99\x9b\xcf\xad\xb6\x4d\x46\x48\x20\x93\x63\x38\xcd\xf5\x3c\xbb\xf2\xfa\x01\xfe\xcf\xea\xfb\xa3\xe3\x24\x01\x41\x9f\x3f\xc6\x10\xa1\xfc\xcd\x96\x70\x65\xda\x6b\x81\xc5\x8a\xb2\x3c\x1c\x53\xa7\xb3\xe5\x6f\x9e\x0f\xd6\xde\xb4\xd7\x94\x6c\x08\xf1\xce\xc1\xe0\x42\xd0\xe4\x79\x56\x24\x24\xce\x73\x22\x66\x4e\xe5\x68\xf5\x7d\xc9\xf6\x28\x1b\x17\x4a\x21\xb0\x28\xfb\xc8\x7c\x4c\xba\xf3\x7e\x8c\x3e\x4c\x93\x01\x36\x33\x44\x9b\xe7\x06\xa8\xc6\x28\xd8\xe9\x08\x49\x9f\x44\xc5\x11\x60\xa5\xf6\xb1\xc7\x25\xf5\xb2\xae\x34\x0d\xb5\xf3\xc8\x13\xa2\xf2\xab\x89\x2e\xad\x73\xce\x39\x90\x15\x14\x17\xaa\x10\x1b\xed\xe3\xf4\x31\x0f\x2a\xb3\x77\x5e\xc7\x2e\x47\xa0\x2c\x8c\xdd\x72\x9e\x24\x51\x19\x47\x69\x8a\xff\x86\x37\x60\x20\xcd\xc9\xba\x9c\x62\x2b\x9e\x79\x82\x10\x92\xec\x61\xa6\xab\xa0\x72\xce\xa0\xb2\x94\xbe\x42\xa6\x94\x82\x26\xeb\x0c\x5e\x02\x45\x3f\x22\xaf\xa5\x83\x5b\x26\xd4\x31\x20\xb3\xeb\xd5\x2d\x4f\xcd\xbc\x94\x59\x56\x6f\xc4\x7a\x43\x0e\xc8\xb9\xa8\xad\xaa\xeb\xd1\xab\x88\x5b\xf8\xb6\x7d\x20\x5b\xdb\x6e\x88\xac\x5d\xc7\x6c\xa7\x42\xb7\x06\xbe\xc4\x2e\xa9\xcd\xd3\x54\x88\x04\x6b\xe9\x50\xc2\x18\xce\xeb\x3d\xe7\x20\x77\xdb\xab\x8c\x63\xd3\x38\x35\x63\x4f\xae\xa7\x4e\x35\xd8\x5c\x2f\x02\xcb\x8e\x33\x89\x98\x23\xc7\x55\x3c\x81\x9b\x49\x5e\x7b\x0c\x6e\xf4\x54\xa8\x6d\x44\x1b\xf4\x01\xb7\xa7\x5b\x26\x6e\xc6\x8c\xc5\xd0\x0d\xdc\xf2\x1d\x78\xe4\xb0\x25\x00\x9a\x60\x54\xa7\x0e\x1c\x3e\x89\x1d\xdb\x31\x7b\x51\xe2\xf7\x23\x05\x21\x8c\x75\x4f\xa3\x51\x5e\x7f\x8a\x4f\xc2\x38\xa0\xcf\x77\x13\x7d\xaf\xa8\x43\xbf\xa3\x52\x1b\x22\x84\x29\x44\xec\xc3\xbc\x66\xbd\x08\x63\xe3\x2e\xd8\x43\xce\xc2\xeb\x9f\xdf\x10\xf8\x4f\xbe\xba\x68\x9c\x0a\xdb\x0b\xd6\x8d\xcd\x20\xea\xa5\xb7\xf5\x18\xa2\xeb\xf5\x87\x94\x80\x59\x69\xbe\x4a\x60\x53\x07\xd1\x8e\x37\xcc\x61\x7c\x44\x13\x62\x5f\x16\xc5\xcd\xcd\x4d\x51\xbc\x49\xef\x12\xf2\x4a\xf7\x0c\xbb\x79\x9c\xe0\x01\xb6\xdc\xc1\xab\xa3\x32\x20\x63\x6d\xf9\xd7\xdf\x25\x94\x57\xd7\x25\x94\xff\xfc\x57\x09\xe5\xc5\x45\x09\xe5\xe5\x65\xb9\x85\x1f\xbd\x3b\xe8\x66\x59\x5e\xac\x48\x25\x4e\x4f\x60\x0f\x43\x2e\xf6\x0f\x78\xd2\xe3\x25\x9e\x38\xcc\xf2\x3c\x7e\x86\x61\x22\xf2\x71\x6e\x6d\x4c\x3a\x97\xbb\xd5\x8e\x7e\x73\x34\x40\x61\x84\xe0\xfa\xe5\x16\xa6\x52\x61\x29\x7a\x79\x3f\xb9\x85\x57\x02\x30\x7a\xd7\x33\x36\x5a\x28\x90\x17\xb8\x59\xa9\x4a\x0a\x32\x65\xae\xa0\x7e\xbe\xe9\x90\x0d\x19\x87\xee\x14\xbb\x79\x22\xf0\xb8\x57\xbe\x31\xd4\xce\x5c\x2b\xc8\x21\xad\x39\x03\x27\xf2\x83\x1a\x4a\x7c\x52\x2f\x97\x60\xab\x90\xc2\x9d\x3a\xc0\xe8\x8f\xd7\x1a\xae\x6d\x1f\xc5\x7f\xaf\xec\x94\x8f\x11\x0b\x52\x3f\xe1\xcf\xbc\xfd\xcd\x70\x85\x97\x21\xab\xcd\x3a\x14\xa7\x77\x23\xb3\xc0\x3c\xe9\x04\xb7\x21\x52\xc8\x60\x75\x23\x2a\x1d\x5f\xb6\x09\x58\x4f\xf4\x8b\x5c\x46\x66\x48\x29\x5a\x5f\x2e\x5d\x23\xaa\x5b\x3c\x47\x87\x33\x80\xa4\x27\xb0\x62\x1d\xa1\xa2\xa2\x57\x75\xa7\x2d\x6e\xf2\x4c\xc6\x68\x84\x93\xf7\x48\xc8\xa4\x0f\x7f\x03\xe9\x9b\x6d\x51\x3c\x87\xb7\xb2\xc5\x26\x97\x09\xae\xc8\xdf\x15\xc5\xaf\xcb\x95\x1c\x7d\x1c\x16\x9a\x80\x9a\x09\xc9\x0a\xdc\x4c\xd4\xcf\xf8\x6b\x33\x6d\xe1\x3b\xf9\x01\x3d\xaa\x7c\xb9\xb7\x92\xa7\xb8\x73\xf6\x32\x1e\x19\xfa\xf4\x26\xf1\xd8\xbe\xd2\xcf\xa5\x87\xa4\x0e\xce\xf5\x21\x21\x4b\x6d\x8b\x73\xfb\xf3\x9f\xd3\xea\x5c\xe5\xf4\x5f\x64\xd5\x61\x7d\x71\x27\xf7\x72\x73\x4a\x2c\xf7\x92\x85\xb6\x3c\xd9\x09\x45\x2a\xa0\xef\x97\x3b\x29\xb9\x96\x5c\xd5\xe9\xd5\x65\xc0\x26\x09\x8c\xab\xd5\xff\xea\xe4\xb2\xc8\xdf\xc2\x7b\x57\x10\xd3\x45\xc8\x64\xc4\x0d\x67\x56\x19\x30\xf2\x83\x72\x0d\x26\xe9\x69\xb9\x2d\x8a\x6f\xd3\x25\xd9\x89\xb1\xe6\xbd\x3e\x79\x8e\xb7\x1d\xc3\x28\x17\x60\x39\xd1\x13\x0f\x2a\x0c\x52\xee\x27\x81\x1e\xa4\xc2\x56\x6e\x68\xb5\x74\x60\xc1\xa5\x09\x03\x13\x0e\x3d\x59\x60\x53\x68\xd3\xa8\x69\x4c\x4a\x6e\xbc\xaf\x71\x88\xf0\xd6\xc9\x7f\xb6\x44\x31\x5f\x0a\xc1\xcb\xf3\xc7\x7f\x1a\xab\x49\x9e\xec\x8a\xa2\x2c\x4b\x52\xa4\xf8\x8b\xab\xfc\xc5\xe7\xdb\xbd\xbb\xd8\x81\xfc\xe3\x27\x6b\x11\x2e\x76\xc0\x97\x4f\xfc\xf6\xef\x4d\xfe\xc4\x57\x0f\x3f\xd1\x1f\xf0\x62\x07\x5f\x1e\x9d\x3c\x21\x45\xb8\x64\xf5\x46\xbe\x78\x59\xfc\x4d\x32\x15\xc5\xab\xb0\xba\xa3\x46\x90\x85\xd7\x9f\xa3\x8e\x08\xa8\xc2\x24\xeb\xc9\x87\x56\xce\x9b\xa1\xf3\x9e\xda\x16\xff\x09\x00\x00\xff\xff\x51\x19\x9b\x81\x1f\x20\x00\x00") +var _runtimeHelpOptionsMd = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x59\x5f\x6f\xdc\x36\x12\x7f\x8e\x3e\xc5\xc0\x29\x60\xbb\x58\x2b\x45\x2f\x0f\xc5\xbe\x1c\x92\xe6\x2e\x2d\xda\x34\x45\x9b\xde\xb5\xb8\x1e\x4a\x4a\x1a\x49\xac\x29\x52\x25\x29\xdb\x4a\xd1\xfb\xec\x87\x19\x92\x92\x76\xbd\x76\xf2\xb6\x2b\x51\xf3\xff\xcf\x6f\x86\x4f\x9f\x3e\x85\xb7\x63\x50\xd6\xf8\xa2\x78\xa3\x6a\x67\xc1\x07\xeb\xd0\x83\xd4\x1a\x6c\x0b\xa1\x47\x98\x3c\x3a\xa8\xad\x69\x55\x37\x39\x49\x87\x41\x19\x50\xc1\x1f\x3d\x6c\x94\xc3\x3a\x58\x37\x97\x99\xd6\xe4\xd1\x33\x09\xf1\xc9\xcf\xaf\x5e\xff\xf6\xe5\xdb\xef\xfe\xf9\xf5\xeb\xdf\xbe\x7a\xfb\xe6\x1f\xcf\x06\x3a\x20\x40\xc6\xf7\x0f\x11\x82\x17\x1e\x46\x74\x05\x9d\xf9\xf9\xd5\x6b\xf0\x23\xd6\x3b\x50\xed\x7d\x82\x02\x94\x07\x63\x03\x78\x0c\x3b\x10\xff\x7b\x56\x46\x9a\x99\x91\xf2\x24\x4d\x43\x0c\x8b\x95\xe3\x81\xcc\x5f\xa1\x43\x90\x0e\x59\x22\x1b\xad\x02\xa1\x97\x01\x66\x3b\x41\x2d\x0d\xd1\xde\x17\xc5\xa7\x20\x6a\xab\xad\xf3\x75\x8f\x03\x8a\x3d\x68\x2b\x9b\xac\xc7\xf2\x3c\x1a\xb2\x21\x53\x15\x00\xf0\xc9\x45\xe4\xf8\x4a\xb9\xcb\x67\x9b\x63\xfe\x99\x88\xac\x44\xc9\x92\xd2\xd9\x77\xbd\xf2\xc4\x2b\x28\xd3\x91\xe0\xa2\xd3\xb6\x92\x1a\xac\xd1\xb3\x28\x8b\xe2\x49\x83\xad\x9c\x74\x80\x1b\xa9\x27\xdc\x83\x48\xff\x45\xf1\xe4\x3b\x1b\x30\xca\x4c\xe2\xe4\x73\x5b\x7e\x70\x91\x9e\xee\xc0\x5b\x2d\x9d\x7a\x8f\xcd\x0e\xa4\x69\xd6\xbf\x57\xa1\xbe\x2c\x9e\x90\x25\xc8\xa0\xda\xd6\x32\x44\x45\x16\x15\x76\x50\x61\x2d\x27\xcf\xb6\x9a\xd9\x68\x38\x54\xd8\x34\xf1\x1c\xf1\x66\x6d\xa0\x52\x46\xb2\x71\x9f\xbc\x3b\x32\x0f\xd9\xb3\x42\xf0\xa8\xb1\x26\xf2\xad\xb3\x03\x47\x1d\x7d\xdc\x2a\x8d\x3e\x53\x2a\x9e\x1c\x79\xf3\xd0\x7e\xdb\x70\x89\x61\x57\x5b\xd2\xb3\x9a\x17\xfd\x6f\x55\xe8\x21\xf4\x0e\xb1\x78\xb2\xfd\x76\x5f\x90\xb9\xe1\x97\xe4\x5e\x87\xb2\x81\xc1\x52\x14\x54\x76\x0a\x51\x85\x73\x7f\x68\xbe\x24\x54\x0a\x01\x01\x3d\xea\x11\x82\x1d\x55\xcd\xb4\x2e\x04\x3f\x48\x6f\x2f\xcb\x35\x5c\x6a\xab\xa7\xc1\x88\x3d\x85\x6f\x20\x0f\xaf\x01\x0b\xc1\xc2\x67\x3b\x50\x24\xa9\xd6\xd0\x28\x3f\x6a\x39\x83\x84\xf8\x0d\x24\x77\x52\xf4\xab\x56\x61\x43\x9c\xe2\xab\x32\x06\x4b\x8c\xee\x76\xd2\x44\x9c\xa2\xf5\x56\x9a\x90\xbf\xfe\xe2\x33\xa2\x5f\x21\xf4\xaa\xeb\xb5\xea\x7a\x32\x37\xd3\x92\x1a\x5a\xeb\x00\xef\xe4\x30\x6a\x3c\x15\x59\x9f\x09\x56\x00\x6d\x6b\xf0\x56\x2b\x43\xe1\x1e\x3d\xcb\x92\xca\x29\xd8\x41\x06\x55\x4b\xad\x67\x90\x4d\x03\x12\xd2\x41\xe2\x99\x5d\x79\x8a\x72\x2b\xb5\xc7\x48\xdd\x0d\xc1\x49\xa5\x95\xe9\x6e\xfd\x63\xf4\x83\x53\x03\xe4\xa3\x70\xdb\xab\x80\x7e\x94\x35\x55\xab\x00\x68\xf5\x07\xd8\x04\x59\x79\xf5\x9e\x34\xf0\x18\x62\xbe\x06\x59\x01\x3d\x23\x61\x73\x1e\x9e\x20\xf2\x3c\x12\x50\xa6\x41\x13\xea\x5e\xba\x2d\x8d\xf8\x34\x56\x2e\x7a\x27\xeb\x80\xee\x04\x11\xc8\x44\x5a\x5b\x31\x05\x34\xb2\xd2\xa9\x40\xb2\xc5\x92\x9b\x2b\x1b\x82\x1d\x72\xf5\xc5\x46\x05\xeb\xe0\xb6\xa7\xea\x34\xa0\xf7\xb2\x23\x85\x1d\xc2\xe8\x94\x09\xd8\x94\x4b\xc9\x88\x0a\x7c\x54\xc5\x60\x3d\x3f\x05\x41\xde\x09\xf3\x78\x60\x94\xfc\x8c\x63\x83\xab\xda\xe4\x1c\x9a\x00\xd5\xd4\xb6\xe8\xca\xfb\xf5\x89\x4a\x44\x62\x16\x33\xea\x88\x1d\x87\x3b\x3b\xb4\xc2\x23\x9f\x52\xf4\x37\x38\xa2\x69\x88\x98\x35\x8b\x04\x1c\xc6\xbd\xbc\xa1\x52\x8c\x26\x9a\xae\x33\xd6\x61\x2d\x3d\x89\x3b\xa2\x6b\xad\x1b\x80\xfe\x5e\x29\xe3\xd1\x78\x15\xd4\x0d\x55\x14\xe9\xea\x1e\xfd\x29\xad\xdb\x36\xaa\xed\x67\x13\xe4\x9d\xd8\x43\x98\x9c\xf1\x10\xff\x12\x77\xeb\xc0\xb6\xed\x23\x06\xa3\x20\x0a\x36\x86\x9d\xd8\x53\xd6\x41\x8a\x41\x65\x7c\xa0\x02\x42\x7e\x93\xd5\xa3\xec\x83\xac\x06\x7b\x83\x03\x9a\x20\xf6\x60\xe4\x8d\xea\x64\x58\x08\xe5\x30\xc0\x4e\x19\xc3\x56\x69\x39\x3e\x3c\x35\x2f\x2e\x1e\xa9\xe4\x12\x1b\xb8\xc0\xb2\x2b\x81\xc8\x81\xbd\x41\x07\xcf\x37\x64\xac\xa9\xf1\xf2\x5e\x7c\x90\x9f\xa0\xb1\x74\xc4\xcc\xa1\x67\x27\xb6\x47\x9a\x91\x5b\xad\x29\x4f\x7a\x73\xd5\x83\x5c\x19\xc3\x5f\xec\x29\x42\x0d\xd4\x0e\x25\x87\x05\xd7\x81\x18\xd6\xa9\x4d\x80\x97\xc3\x61\xb6\xa4\xe6\x4f\x3c\x46\x87\x37\xca\x4e\x9e\xbf\x78\xc4\xfc\xf5\xe4\xbc\x75\xa9\x10\x2d\xf5\x6c\x4d\xa1\xa5\xf5\xc5\x83\x51\x0d\xaa\xd9\x12\x1a\x45\xd1\x8b\x26\xb5\x43\xe2\x7a\xb1\xf4\x6c\x3a\xd8\x60\xab\x0c\x36\xd4\x38\x8e\x7b\x39\xc5\x22\x59\x7c\xf2\xca\x74\x97\x8f\xc8\xe7\x26\x8d\x94\xdb\xb9\x84\xb3\x50\x66\x1a\x2a\x74\x27\x23\x22\x7d\xe6\x83\x0c\x93\x4f\x6a\xe5\x6f\xd9\x66\xfc\xe2\x91\xf2\xe0\x6b\x87\x94\x1e\x0f\x93\x96\x37\x18\x8d\x21\xf6\xe0\x70\xa0\x3e\x9d\xcb\xc9\xc6\x50\xb7\xd2\x83\x96\x3e\x40\x50\x03\xae\x49\x48\x8f\x29\xff\x08\x39\x19\xee\x3b\xe3\x14\xa8\x51\x05\x26\xc0\x3e\x27\xe3\xd0\x99\xf5\x2b\xd9\x49\x75\x52\xa6\x25\xff\xe4\x0d\x4e\xa6\xb1\x39\x6c\xc2\x61\xf9\xb2\x66\x07\xf4\x9a\x7e\xd3\xd1\x06\xf0\x06\x0d\xc8\x36\xa0\x8b\x60\x4c\x5b\x8f\x20\x99\x1b\x09\xe5\x6d\x6e\x7c\xe9\x8d\x69\xc0\x21\x0b\x15\x0f\xed\x16\x0c\x77\x8d\x38\x32\x71\x65\xba\x47\x45\xac\x9d\xd5\x7a\x90\xae\x53\xd4\xb4\xe5\x60\x27\x13\xd6\x54\xe4\x26\x6b\x27\xdd\x80\x56\xd7\xdc\x3f\x3c\x32\x6e\xb8\x89\xdc\x2b\xd4\xf6\x76\x63\xe0\x13\xac\xfe\xb6\x65\xe4\x47\xc4\xe6\x04\x1f\x22\xcc\x07\xb8\x1a\x5b\x83\xf9\x2f\x59\x24\x9c\xa0\xfa\x79\xa2\x6a\xdb\x70\xeb\xe4\x48\x85\xbd\x67\x39\x53\x5b\x75\x72\xcc\xa4\x29\x57\xb8\x8e\x58\x0b\xda\x9a\x8e\x98\xb5\x2a\xe4\x2a\xfc\x70\x68\x2d\x36\x1a\xb5\x0a\x3f\x50\x06\x66\x47\x4a\xb8\x41\xc7\xb5\x1d\xf8\x25\x79\x90\x6b\x02\x81\xcc\x24\x88\x0a\xd4\x06\xd2\xd3\x0c\x13\x1c\xe7\xb1\x6d\xc9\x9b\xdb\x9e\xc3\x54\xfe\xfe\x58\x7c\xd3\x81\x97\x9c\x13\xab\x10\xbd\x75\xea\xbd\x35\xe1\xe3\xc5\x58\xfc\xc5\xd8\xea\x63\x99\x53\x01\xa4\x00\x3d\x44\x2d\xf4\x24\xa6\x2a\x37\x4c\x72\x95\x9b\xe1\x0b\xf0\x58\x5b\xd3\xf8\xc3\x0e\xc8\xe5\x39\xe2\x56\xa9\xfd\x49\xdc\xc3\xf4\x28\xa8\xfe\x98\x08\x22\xe6\x9c\xc3\x3b\x15\xa1\x2d\x61\x55\xe9\xaf\x95\xe9\x98\xd8\x4b\x02\xd7\x8e\xd1\x20\x9f\xe5\xa2\x15\x53\xac\x45\x19\x26\x87\x2b\x7c\x27\x3a\x03\x9b\x5e\xd6\xb5\xe2\xd2\xbc\x72\x8c\x99\x43\x24\xa9\xb3\xdc\x3a\x15\x22\xee\x92\x81\xeb\x42\x2c\x01\x15\xb6\xd6\x9d\x44\x78\x4b\x98\x8c\x7a\xea\x94\xa9\x7b\x69\x0c\x6a\xea\x9a\x35\xb9\x46\x19\xbf\xe0\xfd\xfc\x6e\x81\xdc\xf1\x13\x18\xa4\x91\x1d\x95\x2b\x36\x2b\x37\x76\x12\x87\x52\x21\x9e\xa0\xb6\x5b\xc2\x8b\x4c\x80\x0b\x86\x1a\x46\x02\xa3\xa0\x95\xe7\x44\x3a\x77\x38\x5a\x4f\x28\x6a\x3e\x87\xdf\xbd\x35\x69\xbc\xb8\xed\x55\xdd\x67\x59\x88\xec\x80\x41\x36\x32\xc8\x04\xff\x49\xb0\x4e\x51\xe1\x89\xbc\x4a\xf8\x11\xa3\x5f\xc5\xf7\x51\xbc\x37\x51\x3c\x41\x9e\x8d\xad\x35\x16\xe5\xa4\xf1\xbd\xe9\x80\xe4\xe6\xf9\x82\x40\xa0\x1b\xb8\x0b\x9e\xb2\x5c\x1f\xc2\xe8\xf7\xcf\x9e\x75\x2a\xf4\x53\x55\xd6\x76\x88\x83\xcf\x55\x04\x83\xcf\x22\xf9\xab\xa4\xf4\xd6\xc8\xac\xea\x29\x0b\xaf\x46\x50\xe8\xcf\x3f\xc2\xce\x24\x2c\xd7\xfb\x03\x3b\xaf\xa6\x24\x16\x5e\xf9\xe0\x49\x69\x09\x82\xde\x94\x64\x5d\x91\x3a\xc7\xd6\xba\x7e\xb5\x2d\xd9\x40\x72\xcd\x56\xa6\xd3\x98\x6d\xfb\x30\x60\x9e\x3c\x8e\x4e\x0d\xd2\xcd\x02\x2e\x18\xbb\xa4\x51\xc7\x1a\xf8\x56\x99\xe9\xee\x72\x9f\x5a\x37\xb9\x14\x29\x2a\x09\xc6\xd1\x68\xb5\xc9\xc9\x0c\x42\x12\x29\xa8\xb5\x1a\x2b\x2b\x1d\x17\xa0\xda\x8e\x73\x9a\x44\x79\x15\x02\x90\xc7\xbc\x4a\xd6\xd7\x9d\xb3\x93\x69\x12\xec\x65\xdc\x44\xb4\x65\xdb\x62\x1d\x83\xc4\x90\x2f\xf5\x86\x64\xcc\xb8\x2f\x83\xd3\x57\x5f\x72\xe2\xf2\xcf\x7f\x3d\x06\xc4\xa9\x2d\xdd\x87\x53\x91\xd0\xfa\x7c\xb7\x99\x7a\x28\xd6\x25\x4f\xdc\x64\xd2\xd9\x4e\xe5\x01\xca\x6b\x30\xa0\x1b\xd8\x2a\x8a\xab\xea\x52\x37\x18\x2b\xa6\xb2\x6b\xf0\x2e\x44\x74\xb1\x14\x12\x33\x13\x94\xa5\x2a\x1e\xf7\x1f\xb8\xe5\x19\x72\xf2\x47\xce\xa9\x94\x56\x08\x0d\x6a\xcc\xc3\xc8\xcb\x75\xf2\xa6\xcf\x57\xf1\x8f\xa4\x4f\xdf\x24\x4c\x9b\xc4\x20\x1c\x82\x6d\x00\x1c\xc6\x30\x7f\x08\x80\x92\x8a\x41\x05\xcd\xb0\xe9\x74\x0c\xcc\x76\x72\x10\x4d\x21\xf5\xb9\x07\x3e\xbe\x0c\x23\x34\x7e\x54\x73\x0e\x14\xb2\x50\x44\x3b\x1f\x62\x3c\xd8\x89\xa7\x90\xcc\x2c\xd8\x34\xce\x01\xbf\x01\x3f\x8d\xa3\x75\xa1\x84\x7f\x13\xcd\x83\x67\xac\xb9\xf2\x74\xb8\xd9\xc1\xe4\xa7\x38\xdb\xd2\x34\x9a\xa4\x5c\x47\xa5\x2a\xc2\x9b\x60\xa9\x3c\xa3\xf7\x89\x12\xf7\xfe\xa5\x80\xc5\x45\xca\x89\xf9\x3f\x47\x36\xaf\x56\x0e\x18\x6c\x66\x15\x7e\x19\xf5\xbf\x88\x81\xc2\x63\x84\xf7\xfd\x76\x37\x70\xb0\xf0\x59\xe9\xf4\x14\x09\x51\xb2\x14\x50\x71\x14\x5c\x53\x81\xa2\x3f\x52\xcf\x99\x73\xf9\x90\x6d\x37\x23\x69\xac\x8e\x22\x4d\x8e\x9b\x50\xe6\xe6\x73\xad\x4c\x93\x11\x12\xc4\xc9\xd1\x1f\xe7\x7a\x9e\x5d\x79\xfd\x00\x3f\x19\x75\x77\x70\x9c\x24\x20\xe8\xf3\xfb\xe4\x03\x88\x5f\x8d\x80\x0b\xdd\x5e\x46\x58\x2c\x29\xcb\xfd\x21\x75\x3a\x2b\x7e\x75\x7c\xb0\x76\xba\xbd\xa4\x64\x43\x08\xb7\x16\x46\xeb\xbd\x22\xcf\xb3\x22\x3e\x71\x5e\x12\x31\x73\x12\x93\x51\x77\x82\xed\x21\x1a\xeb\x45\x24\xb0\x2a\xfb\xc0\x7c\x4c\xba\xf3\x7e\x8c\x3e\x4c\x93\x01\x36\x0b\x44\x5b\xe6\x06\xa8\xa6\x10\xb1\xd3\x01\x92\x3e\x8a\x8a\x03\xc0\x4a\xed\xa3\xc3\x35\xf5\xb2\xae\x34\x0d\xb5\xcb\xc8\xe3\x83\x74\x9b\x89\x2e\xad\x73\x4e\x39\x90\x15\x8c\x2e\x94\x3e\x34\xca\x85\xf9\x43\x1e\x94\xba\xb3\x4e\x85\x3e\x47\x60\x5c\x18\xdb\xf5\x3c\x49\x22\x33\x8e\x52\x14\xff\x0d\x6f\xc0\x20\x36\x27\x63\x73\x8a\x6d\x78\xe6\x09\x22\x92\x64\x0f\x33\x5d\x09\x95\xb5\x1a\xa5\xa1\xf4\x8d\x64\x44\x2c\x68\x71\x9d\xc1\x4b\xa0\xe0\x26\xe4\xb5\xb4\xb7\xeb\x84\x3a\x79\x64\x76\x83\xbc\xe6\xa9\x99\x97\x32\xeb\xea\x8d\x58\xef\xc8\x01\x39\x17\x95\x91\x75\x3d\x39\x19\xb0\x84\xaf\xdb\x7b\xb2\xb5\xed\x8e\xc8\x9a\x6d\xcc\xf6\xd2\xf7\x5b\xe0\x4b\xec\x92\xda\x3c\x4d\xf9\x40\xb0\x96\x0e\x25\x8c\x61\x9d\xea\x38\x07\xb9\xdb\x5e\x64\x1c\x9b\xc6\xa9\x05\x7b\x72\x3d\xb5\xb2\xc1\xe6\x72\x15\x38\xee\x38\x93\x88\x39\x72\x6c\xc5\x13\xb8\x9e\xe3\x6b\x87\xde\x4e\x8e\x0a\xb5\x09\x68\xbc\xba\xc1\xf2\x78\xcb\xc4\xcd\x98\xb1\x18\xda\x91\x5b\xbe\x05\x87\x1c\xb6\x04\x40\x13\x8c\xea\xe5\x0d\x87\x4f\x62\xc7\x76\xcc\x5e\x8c\xf1\xfb\x81\x82\xe0\xa7\x7a\xa0\xd1\x28\xaf\x3f\xa3\x4f\xfc\x34\xa2\xcb\x77\x13\xc3\x20\xa9\x43\xbf\xa5\x52\xeb\x03\xf8\xd9\x07\x1c\xfc\xb2\x66\x3d\xf3\x53\x63\xcf\xd8\x43\xd6\xc0\xcb\x1f\x5f\x11\xf8\x4f\xbe\x3a\x6b\xac\xf4\xe5\x19\xeb\xc6\x66\x88\xea\xa5\xb7\xf5\xe4\x83\x1d\xd4\xfb\x94\x80\x59\x69\xbe\x4a\x60\x53\xfb\xa8\x1d\x6f\x98\xfd\xf4\x80\x26\xc4\x3e\xb7\xf9\x79\x40\x33\x1d\x4d\xf9\x46\x1a\x7b\xe5\xc3\xac\x11\xae\x71\x06\x3a\xf1\xd8\xb4\x5f\xc2\xba\xe6\x7f\x67\xbb\x4e\xe3\x37\x38\xbf\xa1\x8f\x94\x87\x8a\xc0\x0a\x04\xbe\x48\x10\x2f\x74\xb8\xea\xc4\x76\x15\x4e\x5a\x64\xb3\xac\xe5\x44\x1d\x97\x93\x12\xde\xd9\xdc\xa5\xf8\xfc\x2e\xe3\xea\x6a\x5e\xc8\x52\xbe\xfc\x64\x2a\x65\x9a\x6f\x90\xd7\x8c\x0f\xb7\xcc\xab\xab\xab\xa2\x78\x95\x5e\x25\xd0\x99\xae\x58\xf6\xcb\x24\xc5\xb3\xbb\xd8\xc3\x8b\x83\x0a\x18\x27\x7a\xf1\xe7\x5f\x02\xc4\xc5\xa5\x00\xf1\x9f\xff\x0a\x10\x67\x67\x02\xc4\xf9\xb9\x28\xe1\x7b\x67\x6f\x54\xb3\xee\x6d\x36\xa4\x12\xa7\x47\x60\x97\xa6\xe8\x76\xf7\x78\xd2\xe3\x35\x95\x38\xc3\xf2\x2a\xe2\x04\xc3\x44\xe4\xc3\xdc\xda\x90\x74\x16\xfb\x8d\x4f\x76\x07\xb3\x23\x06\xf0\x76\x58\x2f\xa0\x2a\xe9\xd7\x7a\x9f\x57\xb3\x25\xbc\x88\xe1\x31\xd8\x81\x61\xe1\x4a\x81\x9c\xc0\x7d\x5a\x56\xb1\x17\x51\xd1\x8a\x03\x0f\x5f\xf2\xc4\xe5\x20\x67\xed\x1c\xfa\x65\x18\x72\xd8\x49\xd7\x68\xea\xe4\xb6\x8d\xa0\x29\x6d\x78\x3d\xd7\xb0\x7b\xed\x83\xf8\x6c\x03\x04\x2a\xa4\x4c\xa7\xe6\x37\xb9\xc3\x8d\x8e\x6d\xdb\x07\xa1\xef\x0b\x33\xe7\x63\xc4\x82\xd4\x4f\xc1\x98\x17\xdf\x19\xa9\xf1\x1e\x68\x73\xa9\x00\xc5\xf1\xb5\xd0\x22\x30\x0f\x79\xde\xee\x88\x14\x32\x4e\xdf\x45\x95\x0e\xef\x19\xe3\x9c\x92\xe8\x17\xb9\x82\x2e\x68\x3a\x6a\x7d\xbe\x36\xcc\x20\xaf\xf1\x14\x1d\x4e\x7e\x92\x9e\x70\x9a\xb1\x04\x08\x8b\x41\xd6\xbd\x32\xb8\xa4\x0d\x03\x31\xce\xb1\x03\x21\x93\x3e\xfc\x0d\xa4\x6f\xca\xa2\x78\x0a\xaf\xe3\x02\x9f\x5c\x16\x21\x55\xfe\xae\x28\x7e\x59\x6f\x23\xe9\x63\xbf\xd2\x04\x54\x4c\x28\x6e\xff\xf5\x4c\xad\x9c\xbf\xd6\x73\x09\xdf\xc6\x1f\x30\xa0\xcc\xf7\x9a\x1b\x79\x8a\x5b\x6b\xce\xc3\x81\xa1\x8f\x2f\x51\x0f\xed\x2b\x52\x29\x91\x61\xb9\xb7\xe2\xd2\x98\x40\xb5\x32\xc5\xa9\xab\x83\x1f\xd3\xad\x81\xcc\xe9\xbf\xca\xaa\xfc\xf6\xce\x32\x5e\x49\x2e\x29\xb1\x5e\xc9\x16\xca\xf0\x50\x1b\x29\x52\xef\x78\xb7\x5e\xc7\xc5\x1b\xd9\x4d\x8b\xda\xdc\x83\xec\x92\xc0\xb8\xb9\xf5\xd8\x9c\x5c\xef\x30\xa8\xf6\x15\xc4\x74\x15\x32\x19\x71\xc7\x99\x25\x3c\x06\x7e\x20\xb6\x38\x9a\x9e\x52\x0d\xfc\x3a\xdd\x0f\x1e\x19\x6b\xb9\xd2\x20\xcf\xf1\xa2\x67\x9c\xe2\xdd\x5f\x4e\xf4\xc4\x83\x0a\x43\xec\x74\x73\x44\x5d\xa4\x42\x19\x2f\xa7\x55\x04\x1f\x11\x92\x27\xf8\x4f\x10\xfc\x68\x77\x4f\xa1\x4d\x53\xb6\xd6\x29\xb9\xf1\xae\xc6\x31\xc0\x6b\x1b\xff\xb3\x25\x8a\xe5\x3e\x0c\x9e\x9f\x3e\xfe\xc3\x54\xcd\xf1\xc9\xbe\x28\x84\x10\xa4\x48\xf1\x27\x17\xf9\xb3\x4f\xcb\xce\x9e\xed\x21\xfe\xe3\x27\x5b\x11\xce\xf6\xc0\xf7\x6e\xfc\xf6\xaf\x5d\xfe\xc4\x55\xf7\x3f\x51\xef\xf1\x6c\x0f\x9f\x1f\x9c\x3c\x22\x45\x90\x6c\xf3\x26\x7e\xf1\xbc\xf8\x8b\x64\x2a\x8a\x17\x7e\x73\x3d\x8f\x10\x77\x7d\x7f\x4c\x2a\x20\xa0\xf4\x73\xdc\xcc\xde\xb7\x72\x5e\x8a\x9d\xf6\x54\x59\xfc\x3f\x00\x00\xff\xff\x10\x80\x08\x68\x1a\x21\x00\x00") func runtimeHelpOptionsMdBytes() ([]byte, error) { return bindataRead( diff --git a/cmd/micro/settings.go b/cmd/micro/settings.go index 0b0149d8..e785d628 100644 --- a/cmd/micro/settings.go +++ b/cmd/micro/settings.go @@ -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() } diff --git a/cmd/micro/statusline.go b/cmd/micro/statusline.go index c1788955..763f53c5 100644 --- a/cmd/micro/statusline.go +++ b/cmd/micro/statusline.go @@ -39,12 +39,24 @@ func (sline *Statusline) Display() { file += " " + sline.view.Buf.Settings["fileformat"].(string) rightText := "" - if len(helpBinding) > 0 { - rightText = helpBinding + " for help " - if sline.view.Type == vtHelp { - rightText = helpBinding + " to close help " + if len(kmenuBinding) > 0 { + if globalSettings["keymenu"].(bool) { + rightText += kmenuBinding + ": hide bindings" + } else { + rightText += kmenuBinding + ": show bindings" } } + if len(helpBinding) > 0 { + if len(kmenuBinding) > 0 { + rightText += ", " + } + if sline.view.Type == vtHelp { + rightText += helpBinding + ": close help" + } else { + rightText += helpBinding + ": open help" + } + } + rightText += " " statusLineStyle := defStyle.Reverse(true) if style, ok := colorscheme["statusline"]; ok { diff --git a/cmd/micro/tab.go b/cmd/micro/tab.go index f750205e..6917dfeb 100644 --- a/cmd/micro/tab.go +++ b/cmd/micro/tab.go @@ -36,6 +36,9 @@ func NewTabFromView(v *View) *Tab { if globalSettings["infobar"].(bool) { t.tree.height-- } + if globalSettings["keymenu"].(bool) { + t.tree.height -= 2 + } t.Resize() @@ -62,6 +65,9 @@ func (t *Tab) Resize() { if globalSettings["infobar"].(bool) { t.tree.height-- } + if globalSettings["keymenu"].(bool) { + t.tree.height -= 2 + } t.tree.ResizeSplits() diff --git a/runtime/help/options.md b/runtime/help/options.md index d3e4ef93..c92e82d8 100644 --- a/runtime/help/options.md +++ b/runtime/help/options.md @@ -182,6 +182,11 @@ Here are the options that you can set: default value: `sudo` +* `keymenu`: display the nano-style key menu at the bottom of the screen. Note that ToggleKeyMenu is bound to + `Alt-g` by default and this is displayed in the statusline. To disable this, simply by `Alt-g` to `UnbindKey`. + + default value: `off` + --- Default plugin options: