From c0293b5d0e568d64a98f4ce1e869e7ac9c0a62bb Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Sun, 4 Aug 2019 14:22:24 -0700 Subject: [PATCH] Add autosave option --- cmd/micro/micro.go | 4 ++++ internal/action/actions.go | 22 ++++++++++++++-------- internal/action/command.go | 6 ++++++ internal/buffer/save.go | 3 +++ internal/config/autosave.go | 30 ++++++++++++++++++++++++++++++ internal/config/globals.go | 1 - internal/config/runtime.go | 2 +- internal/config/settings.go | 3 ++- runtime/help/options.md | 31 +++++++++++++------------------ 9 files changed, 73 insertions(+), 29 deletions(-) create mode 100644 internal/config/autosave.go diff --git a/cmd/micro/micro.go b/cmd/micro/micro.go index 394512a0..bd1918b7 100644 --- a/cmd/micro/micro.go +++ b/cmd/micro/micro.go @@ -233,6 +233,10 @@ func main() { case f := <-shell.Jobs: // If a new job has finished while running in the background we should execute the callback f.Function(f.Output, f.Args...) + case <-config.Autosave: + for _, b := range buffer.OpenBuffers { + b.Save() + } case event = <-events: case <-screen.DrawChan: } diff --git a/internal/action/actions.go b/internal/action/actions.go index 3c8e018a..8b6c76d2 100644 --- a/internal/action/actions.go +++ b/internal/action/actions.go @@ -1162,14 +1162,20 @@ func (h *BufPane) Quit() bool { } } if h.Buf.Modified() { - InfoBar.YNPrompt("Save changes to "+h.Buf.GetName()+" before closing? (y,n,esc)", func(yes, canceled bool) { - if !canceled && !yes { - quit() - } else if !canceled && yes { - h.Save() - quit() - } - }) + if config.GlobalSettings["autosave"].(float64) > 0 { + // autosave on means we automatically save when quitting + h.Save() + quit() + } else { + InfoBar.YNPrompt("Save changes to "+h.Buf.GetName()+" before closing? (y,n,esc)", func(yes, canceled bool) { + if !canceled && !yes { + quit() + } else if !canceled && yes { + h.Save() + quit() + } + }) + } } else { quit() } diff --git a/internal/action/command.go b/internal/action/command.go index c4fe0db8..a062a23d 100644 --- a/internal/action/command.go +++ b/internal/action/command.go @@ -404,6 +404,12 @@ func SetGlobalOptionNative(option string, nativeValue interface{}) error { } else { screen.Screen.EnableMouse() } + } else if option == "autosave" { + if nativeValue.(float64) > 0 { + config.StartAutoSave() + } else { + config.StopAutoSave() + } } else { for _, pl := range config.Plugins { if option == pl.Name { diff --git a/internal/buffer/save.go b/internal/buffer/save.go index 0ed64a7e..fde6cf96 100644 --- a/internal/buffer/save.go +++ b/internal/buffer/save.go @@ -57,6 +57,9 @@ func (b *Buffer) Save() error { // SaveAs saves the buffer to a specified path (filename), creating the file if it does not exist func (b *Buffer) SaveAs(filename string) error { var err error + if b.Type.Readonly { + return errors.New("Cannot save readonly buffer") + } if b.Type.Scratch { return errors.New("Cannot save scratch buffer") } diff --git a/internal/config/autosave.go b/internal/config/autosave.go new file mode 100644 index 00000000..2c5bf815 --- /dev/null +++ b/internal/config/autosave.go @@ -0,0 +1,30 @@ +package config + +import ( + "log" + "time" +) + +var Autosave chan bool + +func init() { + Autosave = make(chan bool) +} + +func StartAutoSave() { + go func() { + for { + autotime := time.Duration(GlobalSettings["autosave"].(float64)) + if autotime < 1 { + break + } + time.Sleep(autotime * time.Second) + log.Println("Autosave") + Autosave <- true + } + }() +} + +func StopAutoSave() { + GlobalSettings["autosave"] = float64(0) +} diff --git a/internal/config/globals.go b/internal/config/globals.go index cd5bd3cd..b1dacd2c 100644 --- a/internal/config/globals.go +++ b/internal/config/globals.go @@ -2,7 +2,6 @@ package config const ( DoubleClickThreshold = 400 // How many milliseconds to wait before a second click is not a double click - AutosaveTime = 8 // Number of seconds to wait before autosaving ) var Bindings map[string]string diff --git a/internal/config/runtime.go b/internal/config/runtime.go index b29800e2..f34df581 100644 --- a/internal/config/runtime.go +++ b/internal/config/runtime.go @@ -972,7 +972,7 @@ func runtimeHelpKeybindingsMd() (*asset, error) { return a, nil } -var _runtimeHelpOptionsMd = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x7a\xdf\x8f\xe4\xb6\x91\xff\xf3\xe8\xaf\x28\x8c\x17\x98\x19\xa3\xa7\xc7\x48\xfc\x60\xf4\x8b\xb1\xf6\x7e\xbf\x6b\x23\x67\x6f\x90\xdd\xdc\x39\x48\x82\x88\x92\x4a\x2d\x66\x28\x52\x47\x52\xdd\xab\x35\x7c\x7f\xfb\xa1\xaa\x48\x49\xdd\xdb\x33\x93\x03\xee\xfc\xe0\x9d\x96\xc8\xfa\xc5\xaa\x4f\xfd\xa0\xbe\x80\x77\x43\xd4\xce\x86\xa2\xf8\x49\xd7\xde\x41\x88\xce\x63\x00\x65\x0c\xb8\x16\x62\x87\x30\x06\xf4\x50\x3b\xdb\xea\xfd\xe8\x15\x2d\x06\x6d\x41\xc7\x70\xf6\xb0\xd1\x1e\xeb\xe8\xfc\xb4\xcd\xb4\xc6\x80\x81\x49\x94\xaf\x7e\x79\xf3\xf6\x1f\xdf\xbf\xfb\xf9\xff\xff\xf8\xf6\x1f\x3f\xbc\xfb\xe9\xff\x3d\xf4\xb4\xa0\x04\x25\xef\x9f\x22\x04\xaf\x03\x0c\xe8\x0b\x5a\xf3\xcb\x9b\xb7\x10\x06\xac\x37\xa0\xdb\xcf\x09\x96\xa0\x03\x58\x17\x21\x60\xdc\x40\xf9\x5f\x0f\x5b\xa1\x99\x19\xe9\x40\xd2\x34\xc4\xb0\x58\x38\x9e\xc8\xfc\x03\x7a\x04\xe5\x91\x25\x72\x62\x15\x88\x9d\x8a\x30\xb9\x11\x6a\x65\x89\xf6\xae\x28\xbe\x84\x52\x8d\xd1\x69\xdb\xa0\x8d\xe5\x0e\x8e\x1d\x5a\xa8\x3d\xaa\xa8\xed\x1e\x14\x58\x3c\x82\xd1\x96\x0d\xc7\xb4\x82\xea\x11\x64\xb9\x28\x98\xb4\x2e\x00\x60\xf0\x78\xd0\x6e\x0c\xbc\x63\x5b\x14\x57\x0d\xb6\x6a\x34\x11\x0e\xca\x8c\xb8\x83\x32\xfa\x11\xcb\x99\x69\x50\x07\x2c\x77\xc0\x4a\xc1\x51\x1b\x03\xf4\x84\xa9\x55\x63\xdb\xa2\x07\x3c\xa0\x9f\xe0\x1b\x08\x58\x3b\xdb\x04\xa0\x5d\xbd\x8a\xba\x56\xc6\x4c\x5b\xe0\x83\x21\xc6\xca\x84\x44\xe1\x64\x85\xd0\x53\xb6\x81\xff\x1c\x75\x14\xdd\x48\x7d\xfc\x48\xbf\x74\xec\xdc\x18\x41\x85\x47\x6d\xf7\x5b\xf8\x0e\x89\x52\xad\x3c\xb6\xa3\x91\xb5\x63\x20\x23\xc4\x4e\x07\x68\x51\xc5\xd1\xe3\x06\x2a\xac\x15\xd9\x82\xe8\xf4\x7a\xdf\x45\x50\x75\xad\xd9\x1c\x0b\x47\x68\xb5\xc1\x0d\xd1\x73\x07\xf4\x47\xaf\xd9\x9a\x47\x32\xff\x51\xec\xe5\x11\x2a\x6c\x9d\xbf\x68\xa6\x56\x99\x90\xec\x54\xa9\x80\x56\xf5\x64\x27\x6d\xd9\x34\xda\xb6\xae\x52\x7e\x03\xa1\x73\x47\x70\xd6\x4c\x62\xb1\xb4\x30\x3b\x3a\x49\x00\x15\x12\x5f\x6c\x74\xc4\x86\xa4\xf1\x8a\x58\x93\x1f\x08\xad\x76\x34\x06\x06\x15\xbb\x6d\x41\xaf\xe1\x19\x41\x6a\x67\x9c\xaf\x9d\x19\x7b\x4b\xb2\xb4\x62\x96\xc5\x4f\x21\x3a\xf8\x6a\x03\x6c\x58\x63\xa0\xd1\x61\x30\x6a\x02\x05\xb2\x07\x54\x24\x8e\x05\xb0\xdb\xeb\x56\x63\x93\xde\x6c\xe1\x43\xa2\x34\x06\x36\xbd\x6e\xd9\xb8\x47\x65\x63\xde\xfc\xcd\x57\x44\xbe\x42\xe8\xf4\xbe\x33\x64\x75\xd6\x87\x49\x29\x03\xad\xf3\x80\x1f\x55\x3f\x98\x8b\xe6\xfc\x6a\xa5\x41\xa8\x3b\x64\x6b\x1a\xa7\x9a\x1c\xaf\xf3\x73\x01\x8c\x86\x4c\x4d\xf6\x78\x75\x2b\x91\xf5\x46\xfb\xbb\x87\xd5\xb2\xf0\x50\x4a\x48\x95\x5b\x76\xde\x8d\xa8\x10\x30\xf2\x39\xeb\x00\xe5\xde\xb8\x4a\x19\x3e\x9e\xf2\x92\x4c\xe9\x77\x59\x14\x57\x3f\xbb\x88\x12\x9a\x24\x4d\x5e\xb8\x66\x07\xb7\xe9\xe9\x06\x82\x33\xca\xeb\x4f\xd8\x6c\xd8\xaf\xe7\x9f\xf7\xb1\xbe\x2b\xae\x28\xe0\xe9\x3c\x8c\xab\x55\x14\x3d\x66\x0d\x16\xd7\x8d\x1d\x4e\x8c\x0d\xd8\x57\xd8\x34\xb2\x8e\x78\x4b\x24\x56\xda\x2a\xc6\x90\xab\x0f\x67\xd6\x21\xd8\xa8\x10\x02\x1a\xac\x89\x7c\xeb\x5d\xcf\xe0\x9a\x1d\x2e\x64\x4a\xc5\xd5\x19\x68\x9d\x9a\x6f\x8d\x8a\x82\xae\xb5\x23\x3d\xab\x69\xd6\x9f\xc2\x13\x62\xe7\x11\x8b\xab\xf5\xde\x5d\x51\x5c\xfd\x25\x41\x98\x47\xd5\x40\xef\x08\xe9\x2a\x0a\x65\xe6\x74\x13\x4e\x6d\x97\x24\x4a\xc7\x5f\x42\x87\x66\x80\xe8\x06\x5d\x17\x57\xb7\x25\xff\x4a\xaf\xee\xb6\xe2\x27\xa3\x0f\xce\x13\x84\x95\xbb\xc5\xe1\x98\x08\x23\xe1\x7c\x54\xb2\x90\x8e\x5b\xb2\x88\x82\x46\x13\x6c\xa1\x4d\xc7\x47\x3e\x74\x3b\xbb\x18\x2d\x6c\xb0\xd5\x16\x1b\x52\xf4\xdc\xf5\xc8\xe7\xe9\x50\x18\x74\xee\x9e\x47\x4f\xb4\xb5\x6b\xb4\xdd\x97\x3b\x26\x93\x7f\x52\x90\xb8\x01\xad\xb8\x06\x21\x91\x1c\x0a\xd9\x72\x0b\xef\xc7\x61\x70\x9e\xce\x2d\xaf\x0f\x8c\x9d\x9e\xf4\x0a\xf4\x5c\x45\xe8\x62\x1c\xc2\xee\xe1\xe1\x78\x3c\x6e\x8f\xbf\xdf\x3a\xbf\x7f\xf8\xf0\xa7\x87\xbc\xe1\xe1\x09\x9c\x18\x63\x7b\xff\x4d\x12\xcd\xb5\x16\x8f\xc9\x7a\x2b\x68\x3f\x05\x66\xd5\x34\x92\x5c\xc4\xa2\x6e\xf6\xa0\x17\xe0\xb0\x55\x21\x36\xda\xc7\x89\x35\x67\x83\x46\xf4\xbd\xb6\xa4\x25\x9d\xcb\xa3\xb6\x0d\x41\xa0\x32\x7b\xe7\x75\xec\xfa\x24\x83\x64\x6f\xb7\xac\x07\xdd\xb2\xf6\x39\xd5\xe8\x00\xbd\x6b\x04\x98\x9c\xa7\x28\xda\xc2\x7f\x50\x12\x58\xf1\x94\xa3\xde\x24\x92\xff\x1c\x43\x14\xba\x8a\x28\x55\xce\x19\x54\x16\xca\x4c\xa6\x14\x4f\x11\x60\x20\xde\x72\x80\x94\x30\x83\x5b\x12\x27\x57\x24\xbd\x7a\x24\x3a\x96\xb1\x7a\x4b\xe4\x32\x28\x12\xf7\x0d\x54\x63\xcc\xd1\xa7\xad\xaa\x6b\xaa\x2e\x70\x0b\x3f\xb6\x9f\x89\xd7\xb6\x1b\x22\x6b\x57\xb6\x27\x72\x9d\x0a\x5d\x76\x5a\x76\xd0\xa4\xb6\xda\x2b\x6d\x43\x04\x25\x2b\x52\xf2\x70\x5e\xef\xb5\x25\x64\xa5\x2c\x72\xcb\xf5\x00\x36\x92\x14\x05\xc5\xf3\x7e\x4a\x67\x04\xa5\xd8\xdc\x2d\x40\x2e\x21\x99\xa4\x64\xd9\x5d\xc5\x85\x81\x99\xe4\x9d\xc7\xe0\x46\x5f\x33\x21\x6d\x23\xda\xa0\x0f\x98\xf6\x0b\xb2\x8a\xa9\xcd\xc4\xd8\x3e\xa0\x1b\x0c\xc2\xb1\x73\x14\xf2\xe4\x3f\x94\xa6\x53\xd0\x77\xea\xa0\xed\x9e\xcf\x32\x73\x9c\x0f\x32\x44\x15\xc7\xf0\x7c\x2c\x91\x8a\xad\xf3\xbd\x8a\x2f\xf9\x14\xfb\x2a\x5a\x8e\x9c\xb5\x6b\x13\xa6\x92\x98\xc9\x32\xec\xc6\xf0\xe7\x9f\x7f\xfc\xe5\x74\x07\x89\xcc\x3e\x53\xfe\xcd\x96\x70\x6b\xda\x3b\x32\xa8\x47\x15\xa0\x71\xe1\xb3\xb5\x44\xaa\xfc\x9b\xe7\xb5\xb5\x37\x2d\xdb\x17\x21\x1e\x1d\x0c\x2e\x04\x5d\x19\x14\x6d\x42\x62\xbe\xd8\x8e\x38\x95\xa3\xd5\x1f\x4b\x46\x82\xb2\x71\xa1\x4c\x4e\x25\x51\x26\xfa\x8a\xf4\x15\x9e\xc5\x26\xa9\xcf\xf0\x4e\x7b\x53\x1e\xa7\xa0\x10\x1c\x15\x93\x92\xb0\xe2\x05\xf1\x84\xf3\xe7\x59\xdc\x8d\xa6\x01\xa3\x1f\x39\xca\xeb\x4e\xd9\x3d\x2e\x50\x9a\xd5\x25\x70\xe4\x70\xcc\x20\x18\xa2\xf2\xab\x0a\xf4\x29\x64\x60\x1d\xe7\x53\x8c\xd3\x40\xa0\x13\x30\x86\x19\x4f\xe8\x59\x3e\x9c\x33\xdf\xdf\x9e\x67\x6d\xb6\x38\xa5\xce\xa7\xf3\x36\xeb\x7a\xd9\x6c\x14\xe4\x0d\x0e\xa2\x52\xb6\x16\xc7\x0f\x29\xd5\xa9\x03\x16\x57\x04\xce\x2c\xae\xde\x5b\xe7\xb1\x56\x81\x04\x1e\xd0\xd3\x81\x00\xfd\xbc\xd7\x36\x50\x38\x44\x7d\xa0\x44\xab\x7c\xdd\xe1\x45\x07\x5e\x81\xa2\x54\xe3\x75\xa7\xfc\x5a\xfb\x75\x8d\x4e\xef\x54\x1d\xd1\x5f\xa2\x04\x99\x0a\xd7\x95\xe5\x0e\xd0\xaa\xca\xa4\x66\x87\x8f\x29\xe5\xbb\xca\xc5\xe8\xfa\x8c\x11\x84\x54\xce\x8b\x0b\x43\x8f\x21\xa8\x3d\xce\x8e\x3b\x78\x0a\xeb\xe6\xb3\x90\x7e\xb1\x2e\x5a\xe2\xf2\x11\x71\xf8\xbc\x35\x91\x92\x7c\x79\xbe\x81\x63\xa7\x23\x86\x41\xd5\x48\x0c\x14\xd7\x33\x74\xe0\x93\x1b\x85\x3d\x97\xe1\x22\xc1\x2a\xb2\x75\xbb\xf4\x03\xbd\x3b\xcc\x49\xc8\xe2\xc7\x28\x5a\xcf\x0d\x82\x9d\x80\x4e\xc5\x4b\x6b\x09\xc0\xeb\x56\x6c\x63\xae\xeb\x85\x79\xe8\xd8\xe7\x2b\xaa\xe5\x0c\xb2\x15\xbe\x5b\xea\x1a\xda\xbb\x88\x4f\xd4\x4e\x15\x48\x7b\xa4\xc2\x4e\xf6\x67\x90\xc5\x36\x02\xf6\x43\x9c\x5e\xf0\x86\x47\x9c\x7a\xb4\x63\xb9\x9b\x6b\x70\x56\x4b\x59\x77\x1f\xe2\x64\x10\x1e\x71\x02\x5a\x71\xf9\x58\x43\xed\x11\xed\x16\xa8\x2a\x15\x5d\x55\x84\x0f\x6e\xbf\x37\xf8\x07\x9c\x7e\xa2\x7d\x3a\x40\xe5\x46\xdb\x70\x4e\x7b\x6d\xe2\xfd\xbe\x5c\x57\x6e\x04\x1b\xb9\x39\x58\xe0\x43\xdb\x6c\xb9\x05\x41\xb6\xf0\xc1\xd1\x12\x72\x37\xde\xb2\x81\xa0\xfb\xc1\x4c\x44\x2e\x53\x26\x26\x7f\xb6\x95\xb6\xcd\x1f\xf0\xb2\xcf\xac\x94\xef\x55\xac\xbb\xca\xab\xfa\xb4\x76\xe3\xc7\xe4\x38\xfc\x4a\x00\xf3\xe6\xf6\xee\x66\x03\x37\xbf\xfe\x46\xff\xff\xeb\xdf\x6f\x5e\xec\x80\x16\xda\x74\x16\xd9\x21\x67\xd2\x0a\x6a\xe3\xc2\xcc\x64\x93\xfd\x60\x5e\xc0\x7f\xcc\xe9\x93\xd6\xa4\x32\xd8\x4c\x30\xda\x06\xfd\xaa\xa8\xdc\x40\x86\xac\x1c\xb9\xd9\x3f\x89\xf7\xb7\x92\x1a\x7b\x15\x23\x7a\xf6\x48\xdd\x9e\xe8\x4e\xa6\xa7\x48\x7a\x59\x27\x37\x32\x04\x1d\x3b\x94\xce\xd0\xa5\xe8\x07\x7e\x03\x41\x6a\xc6\x54\x0a\x9d\x3c\x4b\xc7\x4b\x8b\x1b\x6e\x75\xc7\x30\x32\x10\x92\x94\x12\x66\xca\x2c\x58\xc9\x47\xec\x28\x47\x63\x08\x89\x12\x1e\xd0\x46\x4a\xb2\xba\xee\x72\x79\x23\xe9\x23\xe9\x34\xf7\x81\x94\x3b\xdc\x30\x49\xc7\x71\xc2\x80\xaa\x17\x6a\x03\x5c\x2b\x2f\x25\x2f\xdf\xea\x96\x5b\x6f\x08\xa1\xa3\xd3\x26\x7a\xa9\x43\x3c\xe9\x83\x16\x3a\x1d\xc5\xaf\x08\x97\x2d\xcd\x99\xa0\x36\x7a\xa8\x9c\xf2\x92\x0e\xfb\x3c\x71\x68\x1c\x72\xeb\xfb\x42\xa1\x3e\x98\x71\xaf\x2d\xa5\x3d\x8b\x26\x94\x3b\x6a\xc7\x22\x55\x5c\x73\xdb\x94\xdf\xcd\xcd\x8b\x6c\x81\x5e\x59\xb5\xa7\x02\x8b\xe7\x22\x9c\x08\xb8\xb8\xa0\x72\x88\x57\x50\x67\xb3\x85\xd7\x99\x00\xd7\x99\x12\x3c\x8a\xeb\x79\xb2\xc8\x8d\xc7\xc1\x05\xc2\xe9\xe9\x06\xfe\x19\x9c\xcd\x0d\x01\x59\x9c\xc7\x1d\x22\x0e\xf4\x18\x55\xa3\xa2\x4a\x35\x15\x09\xb6\xd7\x07\xb4\x89\xd7\x16\xde\xa3\xd8\xab\xfc\xa3\x88\xf7\x93\x88\x57\x42\xc0\x9a\xa1\xd5\xb5\x39\xbe\x93\xd2\x27\xad\x16\xcb\xcd\xa5\x1f\xa5\x19\x2a\x3e\xb4\xb3\x97\x4c\x97\xfb\x8f\xbd\x8e\xdd\x58\x6d\x6b\xd7\x4b\xff\x78\x2f\xe9\xe6\x41\x68\xdf\x27\xa5\xd7\x46\x66\x55\x2f\x59\x78\x31\x82\xc6\x70\xf3\x9c\x9d\x49\x03\x31\xf5\x05\x3b\x2f\xa6\x24\x16\x41\x87\x18\xb8\xd1\x80\x92\xde\x6c\xc9\xba\xa5\xe4\xfb\x73\xeb\x86\xc5\xbc\x44\x56\x01\xa1\x84\xc1\x6c\xdb\xa7\x53\xb2\xef\xa3\x57\xda\x68\xbb\x3f\x86\xe7\xba\xa9\xe8\x75\x0f\x79\xe9\x2a\x9f\x04\x82\x78\x74\xe6\x05\xd0\xf4\xa3\x41\xbf\xca\x17\x9c\x73\xec\xd8\x57\xe8\x5f\xa8\x9d\xa9\xc7\x14\xc0\x2a\x77\xe0\xb1\x47\xda\x93\x4a\x82\x55\x87\xcc\xf9\x4b\x85\x08\x51\xf7\xb8\xd4\x45\xf4\x98\x2a\x22\x29\x35\xb9\x6c\x18\x23\xe8\x98\xe6\x63\x73\x7a\xe6\x96\x76\xde\xc5\x1d\xcb\x0b\x1a\x91\x5c\x9d\x0e\x74\x58\x6b\xc1\x6a\xd7\xf7\x14\xc5\xe9\x15\x54\x18\x8f\x88\x76\x06\x6e\x7a\xe7\xf1\x9e\xf8\xa5\x96\x82\x4d\xfe\x44\xd3\x7b\x6a\x86\xd1\x36\x2e\xe7\x84\x78\xde\xc7\x6c\x08\xe0\x1d\x87\xa8\x3a\x50\x03\x4e\xa1\xa5\x5a\x82\x75\x1e\xc7\x1a\x17\xf2\xd4\x90\x7d\xd0\x65\xf0\x4b\x6f\x58\x2e\xe9\xec\x65\xb4\x38\x4f\x71\xa9\x4a\x62\xe2\xda\xee\x5f\x32\x4a\xed\x9d\x31\x52\xe2\x2d\xe3\x39\x79\x0a\x95\xf2\x2f\x26\x0b\x59\xda\x2b\xbf\xd7\xb6\xdc\x81\xea\xdd\x68\x63\x6e\x8c\xc2\x85\x72\x3f\x20\x37\x69\x69\x06\x5b\xa1\x71\xc7\x9c\xff\xc4\x33\x2e\x49\xfc\xfb\x35\xb3\x30\x20\x36\x17\x78\x11\x71\x11\x9c\x22\xca\x59\xcc\x3f\x39\xa5\x5c\x22\xfb\xbb\x44\xb6\x57\x3e\x0e\x2a\x44\xee\x14\x52\x86\xe6\xb8\x52\x4d\x03\x06\x55\x73\x1a\x42\x72\xa0\xb4\x81\x53\xf8\x68\xa2\xa6\x56\x94\xa5\xf8\x76\xee\xd3\x25\x26\x63\xa4\xfa\x8c\x64\x1b\x3c\x06\xf4\x07\x3c\xe9\x3a\xd6\x05\xb9\xc1\x03\x9a\x53\xda\x8a\x0b\xa4\xd1\xca\x32\x6c\xa0\x32\xae\x7e\x7c\x21\xfe\x5c\x1b\x8f\x5e\x0d\xe7\xba\xd0\xb3\x6c\x29\xaa\xdf\xf8\x22\xc0\x39\x30\x4e\x86\x44\xad\x8e\x73\x3f\x27\xf5\xde\x0b\xae\x33\x18\x1d\xa5\x4e\xcc\x3e\xae\xa0\x73\x5e\x7f\x22\x84\x33\xc0\xef\xc9\xbd\xd3\xa4\x60\x2e\x7e\x74\xa4\x9c\x9e\xe7\x07\xec\x01\x39\x4d\x64\xb3\xf0\xde\x6f\x9f\x57\x93\x96\x78\xaa\xe4\x16\xee\x07\xaa\xc7\xeb\x7f\x9d\xb7\x24\x75\x1e\x82\x73\x49\x98\xca\xdd\xff\x89\x14\x5c\xb7\x4a\xf6\x32\xe5\x0e\x52\x13\x1d\xa2\xa7\xe3\xe3\xc9\x9e\xe6\xc3\xcd\xed\x26\x95\x6a\xf7\xd4\xf1\xcb\x30\x62\x50\x3e\xb3\xe5\x20\x5f\x95\xc1\xef\xd3\x20\x5b\xea\x41\x7d\xc0\xb0\xea\x22\x06\xa3\x6a\x2e\xa0\x83\x6e\x10\xca\x57\xb7\x77\xe5\xbc\x83\x4b\x91\x65\x93\xb6\xb5\x19\x1b\x3e\x3c\x6d\xe4\xde\x60\xb3\x1a\x48\x6d\xa0\xe4\xc1\xdc\x86\xa7\xa1\xf4\x8f\x1b\x22\xfd\x43\xd5\xf5\x32\x21\xe0\xa7\x32\x39\xe0\x17\x6b\x0e\x51\x3d\x22\xa0\xe6\x62\x51\xd9\x0c\x72\x8e\x7f\x28\xa9\x04\x18\xd7\x8e\xca\x33\xa2\x13\x95\x96\xa2\x23\x8d\x61\xd9\xac\xf3\x98\x69\xde\x4d\xbf\xa8\x2f\x99\xfb\x0a\x6e\x93\xea\x54\x25\x5c\xc2\xa5\x57\xb7\x59\xc5\x3b\x78\x75\x9b\x55\xbc\xbb\x7d\x75\x4b\x2a\xde\x6d\x5e\xdd\xd6\xce\xdc\xd1\x3b\x37\xc4\x5d\x1e\x05\xdc\x31\xad\xf3\xff\x96\x35\x72\xa6\x79\x57\x1e\x7b\xde\xfd\x5f\x3b\xc0\x53\x2a\x92\xf9\x77\x27\xcd\xd7\xdd\x4e\xee\x7d\xe8\x8d\xb6\xfb\xb0\x81\x93\x55\x3f\xa0\x19\xee\x76\x17\x95\x8c\xbc\x80\x6b\xb2\xb5\x3a\x69\x52\xbb\xee\x15\xe5\xc5\x33\xad\xff\xd3\x98\xb1\x8a\x96\xb1\xee\x09\xb9\xf3\x75\x8f\x8c\x13\xc2\x38\xa0\xcf\x97\xb0\x9c\x8c\xb7\xf0\x8e\x1a\x8b\x10\x21\x4c\x21\x62\x1f\xe6\xde\xf1\x3a\x8c\x8d\xbb\x86\x6a\xe4\x2e\xd9\x59\xf8\xee\xfd\x1b\x0a\xea\xd4\x28\x5c\x37\x4e\x85\xed\xf5\xc9\x84\x21\xbd\xaa\xc7\x10\x5d\xaf\x3f\xa5\x19\x56\x1e\x25\xf2\x9d\x29\xc1\x07\x5b\x9f\xc7\x86\x72\xcd\x10\xc6\x4b\xba\x10\xfb\xa4\xcb\x64\xa3\xfa\x58\xee\x20\x8e\xde\x06\x90\x9f\x20\x9e\xeb\xda\xf6\x79\x43\x44\x55\xf5\xee\x80\xbd\x0c\x31\xac\x3a\xe8\xbd\x8a\x08\x4b\x81\xc6\xf6\xc5\xbd\xb6\x96\x07\x47\x39\xc5\xa9\x90\x66\x00\x72\x57\x13\x55\xc5\x9d\xde\x2d\x6e\xf7\x5b\x99\x58\x70\x83\xf3\xf5\x8a\x92\xb3\x35\xde\x9d\xce\x5c\x58\x71\x6e\x56\x94\x9d\x22\xf7\xa1\x32\x69\x23\xb9\x42\x74\xb2\x39\x4d\xb6\x5f\xc8\x02\xb4\x43\x7f\x3a\x19\xb1\x45\x55\x01\x3d\xe3\x2e\x3d\xdd\x89\x5d\x20\xf2\xf5\x42\x60\x66\xb9\xe3\xb9\x69\x12\x7e\xd5\xc5\xb1\xa2\xcf\xcb\x81\xbe\x8f\x3a\x1a\xf6\x5b\xbe\x50\x09\x73\x03\x2b\xa3\x7b\xaa\x45\xfc\xdc\xdb\xdd\x04\xe0\xe5\x73\x33\x1a\x30\x42\x35\x2d\xcd\x1c\xa7\x14\xa9\x44\x5f\x30\xc1\x18\x70\xf0\xba\x57\x7e\x2a\xe1\x36\x3b\x55\x3b\x1a\x72\x86\x2f\xad\xfe\x78\xf7\xa4\x44\x67\xf3\xe2\x84\x01\x89\xd8\xaa\xcb\xcc\x9d\xae\x5c\xb2\xf1\xb5\x7d\x82\xce\x4a\xd5\x8f\x7b\x4f\x00\x99\x8e\x38\xf7\xa0\xa0\xda\x16\xeb\x98\x13\xab\x25\x58\x5a\x37\xae\x32\x33\xfb\x3e\x7a\x73\xff\x3d\x07\x04\xff\xf9\xef\xcf\xb8\xed\xfd\xfd\x7d\x51\xbc\x49\xef\x52\xa3\x94\x3e\x22\x58\xbe\x19\xe0\xda\x94\x6a\xb3\x93\x5e\x44\x2a\xd6\xf2\xd7\xdf\x4a\x28\x6f\xef\x4a\x28\xff\xfa\xf7\x12\xca\xeb\xeb\x12\xca\x9b\x9b\x72\x0b\x7f\xf4\xee\xa0\x9b\xf9\x0a\x8c\x5d\x71\xa1\x96\x98\x3d\x3f\xb0\x8f\x49\x94\x72\xb7\x1a\x3b\x6d\x4e\xbe\x23\xc0\x08\xc1\xf5\xcb\x97\x0f\x95\x0a\xcb\x08\x3b\x27\x83\x2d\xbc\x9e\x8d\xd6\xbb\x9e\xa7\x89\xe7\xc7\xa4\x2a\x99\x16\xf5\xea\x11\xa5\x77\xe6\xbb\xb5\x61\x1e\x23\x0d\x53\xec\x9c\xdc\xb8\x4d\xaa\x37\xf9\x02\x20\x80\xc7\xbd\xf2\x8d\xc1\xc0\x6d\x22\x3b\x64\x1a\x35\x07\xbe\xb8\xf9\xbc\x5c\x5e\x4f\xc2\xa0\xc2\x4e\x1d\xb4\x4c\x2e\x08\x76\x4e\x9a\x8a\x17\x41\xc7\x68\x1b\xb9\xa7\x7b\x7d\x72\x38\xf4\x78\xbe\xc5\x91\x76\x2a\xf7\x24\x9f\x9d\xcc\x4c\x84\xfd\xf4\xc9\x56\x35\xf1\x7c\x6d\xa7\x2c\x1c\x29\x46\x07\x90\xdc\x36\xcf\x89\x73\xec\x71\x03\xb4\xba\xf1\x83\xe2\xfc\xaa\x78\x36\x13\x4f\x2c\x82\xdb\x10\x29\x64\x1f\xdf\x88\x21\x4f\x3f\xb1\x91\x66\x32\xd1\x2f\x72\xc1\x37\xcf\x80\xc5\xd6\x37\x8b\x9d\xb9\x86\xb9\x40\x87\x73\x01\x49\x1f\x1d\x28\xeb\x28\x7a\x8b\x5e\xd5\x9d\xb6\x38\x0f\x26\x39\x36\x39\x93\x9d\x08\x99\xf4\xe1\x3d\x90\xf6\x6c\x8b\xa2\xf8\xe2\x0b\x78\x2b\x13\x6f\x72\x10\x99\x28\xe5\x9d\x45\xf1\x97\xe5\x53\x1c\xda\x1e\x16\xaa\xb9\xc4\x92\x71\xb9\x99\x08\x45\x78\xb7\x99\xb6\xf0\x6f\xf2\x07\xf4\xa8\xf2\x47\x3d\x14\x49\xf9\x22\xe3\xe8\xec\x4d\x3c\x31\xf5\xf9\x17\x44\xa7\x16\x2e\xd3\xc4\x56\xc5\xf9\xeb\x0d\x42\xb6\x22\x01\x65\x3a\xc6\xf3\xbb\x93\xf7\x89\xdb\x52\x04\xce\xb2\xea\xb0\xfe\x92\x81\x3f\x54\x28\xe6\xb0\x5c\xd5\x7d\xda\xf2\x8c\x46\x28\x86\x6d\x51\x7c\x58\xee\xe9\xe5\x33\x8d\x55\x13\xbd\xba\x38\xd8\x24\x81\x71\x75\xed\xb3\x5a\xc9\x76\x2a\x68\x21\xcf\x97\x89\xe9\x22\x64\x32\xe2\x86\xa3\xbb\x0c\x18\xf9\x41\xb9\x4e\x40\xf4\xb4\xdc\x16\xc5\x8f\xe9\xc3\x81\x33\x63\xcd\x57\x3a\x74\x72\xfc\xe1\xd1\x30\xca\x17\x30\x19\x6c\x12\x0f\x8a\x23\xa9\x7e\x26\xfe\x0a\x87\x4f\xb4\x50\xac\x09\x57\xcc\x2b\x20\xe2\xcf\xb5\xb4\xdc\x00\xcb\x98\x32\x4d\x45\x3b\x15\xce\x53\x75\x2a\x30\xc9\x74\x82\x34\xf8\xb1\xc6\x21\xc2\x5b\x57\xf0\x6f\x31\xcf\x9c\xad\xe1\xeb\xcb\xcb\xff\x34\x56\x93\x3c\xd9\x15\x45\x59\x96\xa4\x5d\xf1\x6b\x71\x75\xdd\xc6\xdd\xde\x5d\xef\xe0\xd7\xe2\xea\xea\x7a\xcd\xfa\x7a\x07\x9c\x0a\x8b\xab\xdf\x36\xb2\xce\x8f\xd5\xb4\x5e\xa9\x3f\xe1\xf5\x0e\x7e\x97\x16\x9c\xed\x25\xa4\xc8\x8f\x65\xe1\xd7\xc5\x6f\xc4\xb9\x28\xde\x79\x8a\x2f\x6d\x94\x37\xd3\x6c\x5b\x99\x97\x73\x50\x92\xc9\xce\xc5\xfc\x72\xfb\x2f\x49\xf9\xe5\xd6\x57\xff\x0b\x22\xfe\x77\x00\x00\x00\xff\xff\xe0\xf7\xe9\xe1\x5b\x28\x00\x00" +var _runtimeHelpOptionsMd = "\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\xb4\x5a\x5f\x8f\xe4\xb6\x91\x7f\x1e\x7d\x8a\xc2\x64\x81\x99\x36\x7a\x7a\x8d\xc4\x0f\x41\xbf\x18\x6b\xef\xdd\xda\xc8\xd9\x7b\x88\x37\x77\x0e\x92\x20\xa2\xa4\x52\x8b\x19\x8a\xd4\x91\x54\xf7\x6a\x0d\xdf\x67\x3f\x54\x15\x29\xa9\x7b\x7b\x66\x72\xc0\x9d\x1f\xbc\xd3\x12\x59\xac\xbf\xbf\xfa\x43\xfd\x06\xde\x0f\x51\x3b\x1b\x8a\xe2\x07\x5d\x7b\x07\x21\x3a\x8f\x01\x94\x31\xe0\x5a\x88\x1d\xc2\x18\xd0\x43\xed\x6c\xab\x0f\xa3\x57\xb4\x18\xb4\x05\x1d\xc3\xc5\xc3\x46\x7b\xac\xa3\xf3\xd3\x2e\xd3\x1a\x03\x06\x26\x51\xbe\xfa\xf9\xed\xbb\xbf\x7f\xfb\xfe\xc7\x7f\xfd\xfe\xdd\xdf\xbf\x7b\xff\xc3\xbf\xbc\xee\x69\x41\x09\x4a\xde\x3f\x45\x08\xde\x04\x18\xd0\x17\xb4\xe6\xe7\xb7\xef\x20\x0c\x58\x6f\x41\xb7\x9f\x13\x2c\x41\x07\xb0\x2e\x42\xc0\xb8\x85\xf2\xbf\x5f\xef\x84\x66\x3e\x48\x07\xe2\xa6\xa1\x03\x8b\xe5\xc4\x33\x9e\xbf\x43\x8f\xa0\x3c\x32\x47\x4e\xb4\x02\xb1\x53\x11\x26\x37\x42\xad\x2c\xd1\xde\x17\xc5\x17\x50\xaa\x31\x3a\x6d\x1b\xb4\xb1\xdc\xc3\xa9\x43\x0b\xb5\x47\x15\xb5\x3d\x80\x02\x8b\x27\x30\xda\xb2\xe2\x98\x56\x50\x3d\x82\x2c\x17\x01\x93\xd4\x05\x00\x0c\x1e\x8f\xda\x8d\x81\x77\xec\x8a\xe2\xa6\xc1\x56\x8d\x26\xc2\x51\x99\x11\xf7\x50\x46\x3f\x62\x39\x1f\x1a\xd4\x11\xcb\x3d\xb0\x50\x70\xd2\xc6\x00\x3d\x61\x6a\xd5\xd8\xb6\xe8\x01\x8f\xe8\x27\x28\x6d\x09\x01\x6b\x67\x9b\x00\xb4\xaf\x57\x51\xd7\xca\x98\x89\xce\xbc\x3f\x75\x24\x2a\xad\xd1\xc2\x09\x1f\x96\xed\x2d\xa2\x6f\x76\x20\x46\x54\x26\xa4\xa3\x3e\x23\xc4\x67\x2b\xdb\xc0\x7f\x8d\x3a\x8a\x1e\x48\x55\xf8\x91\x7e\xe9\xd8\xb9\x31\x82\x0a\x8f\xda\x1e\x76\xf0\x0d\x42\xad\x3c\xb6\xa3\x91\x85\x63\x20\x6d\xc5\x4e\x07\xa2\xd4\xa2\x8a\xa3\xc7\x2d\x54\x58\x2b\xd2\x1b\xd1\xe9\xf5\xa1\x8b\xa0\xea\x5a\xb3\xea\x8c\x99\xd2\x89\xd0\x6a\x83\x5b\x70\x47\xf4\x27\xaf\x59\xed\xa7\x4e\x45\x22\x74\x12\xdd\x7a\x84\x0a\x5b\xe7\x71\x07\xdf\xb7\x4f\x89\x48\xd2\x97\x5f\x96\xf4\xc4\xae\x54\x4a\x64\xc8\x93\xb2\xbe\xaf\x59\xe5\x4b\x31\x49\xa5\x02\x5a\xd5\x93\x49\xb4\x65\xca\xda\xb6\xae\x52\x7e\x0b\xa1\x73\x27\x70\xd6\x4c\x62\x9c\xb4\x30\x33\x40\x02\x40\x85\xc4\x39\x36\x3a\x62\x43\x87\x7a\x45\x9c\x93\xcb\x09\xad\x76\x34\x06\x06\x15\xbb\x5d\x41\xaf\xe1\x92\x89\x56\x99\x90\x7c\xa3\x76\xc6\xf9\xda\x99\xb1\xb7\xc4\x4b\xcb\x8a\x5d\x85\x04\x44\x07\x5f\x6e\x81\xed\x62\x0c\x34\x3a\x0c\x46\x4d\xa0\x40\xf6\x80\x8a\x74\x62\x01\x1c\x61\xba\xd5\xd8\xa4\x37\x3b\xf8\x90\x28\x8d\x81\x8d\xa7\x5b\xb6\xcd\x49\xd9\x98\x37\xff\xfe\x4b\x22\x5f\x21\x74\xfa\xd0\x19\x32\x1a\xcb\xc3\xa4\x94\x81\xd6\x79\xc0\x8f\xaa\x1f\xcc\x73\xaa\x64\x09\x42\xdd\x21\x6b\xd3\x38\xd5\x64\x68\x98\x9f\x0b\x36\x35\xa4\x6a\xd2\xc7\xab\x7b\x09\xe2\xb7\xda\x6f\x5e\xaf\x96\x85\xd7\xa5\xd8\xb7\xdc\xb1\x51\xb7\x22\x42\xc0\xc8\x9e\x42\x46\x3f\x18\x57\x29\xc3\xe6\x29\xaf\xf1\x94\x7e\x97\x45\x71\xf3\xa3\x8b\x28\x28\x40\xdc\xe4\x85\xeb\xe3\xe0\x3e\x3d\xdd\x42\x70\x46\x79\xfd\x09\x9b\x2d\x87\xc5\xfc\xf3\x21\xd6\x9b\xe2\x86\xb0\x85\xec\x61\x5c\xad\xa2\xc8\x31\x4b\xb0\x78\x7e\xec\x70\x62\x18\xc2\xbe\xc2\xa6\x91\x75\x74\xb6\x78\x68\xa5\xad\x62\xb8\xba\xf9\x70\xa1\x1d\x42\xa8\x0a\x21\xa0\xc1\x9a\xc8\xb7\xde\xf5\x8c\xe3\xd9\xe1\x42\xa6\x54\xdc\x5c\xe0\xe3\xb9\xfa\xd6\x00\x2c\x18\x50\x3b\x92\xb3\x9a\x66\xf9\x29\xba\x21\x76\x1e\xb1\xb8\x59\xef\xdd\x17\xc5\xcd\x9f\x13\x5a\x7a\x54\x0d\xf4\x8e\x40\xb5\x22\x24\xe0\x93\xee\xc2\xb9\xee\x12\x47\xc9\xfc\x25\x74\x68\x06\x88\x6e\xd0\x75\x71\x73\x5f\xf2\xaf\xf4\x6a\xb3\x13\x3f\x19\x7d\x70\x9e\xd0\xb2\xdc\x2f\x0e\xc7\x44\x18\x74\x67\x53\xc9\x42\x32\xb7\x24\x2c\x05\x8d\x26\x84\x44\x9b\xcc\xc7\x50\x38\xbb\x18\x2d\x6c\xb0\xd5\x16\x1b\x12\xf4\xd2\xf5\xc8\xe7\xc9\x28\x0c\x5b\x9b\xe7\x81\x1a\x6d\xed\x1a\x6d\x0f\xe5\x9e\xc9\xe4\x9f\x14\x24\x6e\x40\x2b\xae\x41\x40\x26\x46\x21\x5d\xee\xe0\xa7\x71\x18\x9c\x27\xbb\xe5\xf5\x0c\x8c\x74\xa6\xd1\x81\x9e\xab\x08\x5d\x8c\x43\xd8\xbf\x7e\x7d\x3a\x9d\x76\xa7\xdf\xed\x9c\x3f\xbc\xfe\xf0\xc7\xd7\x79\xc3\xeb\x27\x70\x62\x8c\xed\xc3\xef\x13\x6b\xae\xb5\x78\x4a\xda\x5b\x65\x91\x33\x68\x07\xd5\x34\x92\xc7\x44\xa3\x6e\xf6\xa0\x6b\x72\xaf\x50\xa8\x55\x21\x36\xda\xc7\x89\x25\x67\x85\x46\xf4\xbd\xb6\x24\x25\xd9\xe5\x51\xdb\x86\x20\x50\x99\x83\xf3\x3a\x76\x7d\xe2\x41\x0a\x05\xb7\xac\x07\xdd\xb2\xf4\x39\xab\xe9\x00\xbd\x6b\x04\x98\x9c\xa7\x28\xda\xc1\x7f\x12\x6c\xaf\xce\x14\x53\x6f\x13\xc9\x7f\x8c\x21\x0a\x5d\x45\x94\x2a\xe7\x0c\x2a\x0b\x65\x26\x53\x8a\xa7\x08\x30\xd0\xd9\x62\x40\xca\xcd\xc1\x2d\x39\x9a\x8b\x9f\x5e\x3d\x12\x1d\xcb\x58\xbd\x23\x72\x19\x14\xe9\xf4\x2d\x54\x63\xcc\xd1\xa7\xad\xaa\x6b\x2a\x64\x24\xf3\x5c\xb2\xd7\xb6\xdb\x6b\xe9\xa6\x53\xa1\xcb\x4e\xcb\x0e\x9a\xc4\x56\x07\xa5\x6d\x88\xa0\x64\x45\xce\x5e\x5e\x1f\xb4\x25\x64\xa5\x2c\x72\xcf\xa5\x07\x36\x92\x56\x05\xc5\xf3\x7e\xca\x86\x04\xa5\xd8\x6c\x16\x20\x97\x90\x4c\x5c\x32\xef\xae\xe2\x1a\xc4\x4c\xf2\xce\x63\x70\xa3\xaf\x99\x90\xb6\x11\x6d\xd0\x47\x4c\xfb\x97\xcc\xc9\xb9\x8d\xb0\x7d\x40\x37\x18\x84\x53\xe7\x28\xe4\xc9\x7f\x28\xd1\xa7\xa0\xef\xd4\x51\xdb\x03\xdb\x32\x9f\x38\x1b\x32\x44\x15\xc7\xf0\x7c\x2c\x91\x88\xad\xf3\xbd\x8a\x2f\xf9\x14\xfb\x2a\x5a\x8e\x9c\xb5\x6b\x13\xa6\x12\x9b\x49\x33\xec\xc6\xf0\xa7\x1f\xbf\xff\xf9\x7c\x07\xb1\xcc\x3e\x53\xfe\xd5\x96\x70\x6f\xda\x0d\x70\x99\xa4\x02\x34\x2e\x7c\xb6\x96\x48\x95\x7f\xf5\xbc\xb6\xf6\xa6\x65\xfd\x22\xc4\x93\x83\xc1\x85\xa0\x2b\x93\x4a\x8e\x90\x0e\x5f\x74\x47\x27\x95\xa3\xd5\x1f\x4b\x46\x82\xb2\x71\xa1\x4c\x4e\x25\x51\x26\xf2\x0a\xf7\x15\x5e\xc4\x26\x89\xcf\xf0\x4e\x7b\x53\x1e\xa7\xa0\x10\x1c\x15\x95\x12\xb3\xe2\x05\xf1\xec\xe4\xcf\xb3\xb8\x1b\x4d\x03\x46\x3f\x72\x94\xd7\x9d\xb2\x07\x5c\xa0\x34\x8b\x4b\xe0\xc8\xe1\x98\x41\x30\x44\xe5\x57\xc5\xee\x53\xc8\xc0\x32\xce\x56\x8c\xd3\x40\xa0\x13\x30\x86\x19\x4f\xe8\x59\x36\xce\x85\xef\xef\x2e\xb3\x36\x6b\x9c\x52\xe7\xd3\x79\x9b\x65\xbd\xae\x36\x0a\xf2\x06\x07\x11\x29\x6b\x8b\xe3\x87\x84\xea\xd4\x11\x8b\x1b\x02\x67\x66\x57\x1f\xac\xf3\x58\xab\x40\x0c\x0f\xe8\xc9\x20\x40\x3f\x1f\xb4\x0d\x14\x0e\x51\x1f\x29\xd1\x2a\x5f\x77\x78\xd5\x81\x57\xa0\x28\x85\x7f\xdd\x29\xbf\x96\x7e\xdd\x0e\xd0\x3b\x55\x47\xf4\xd7\x28\x41\xa6\xc2\x75\x65\xb9\x07\xb4\xaa\x32\xa9\xaf\x62\x33\xa5\x7c\x57\xb9\x18\x5d\x9f\x31\x82\x90\xca\x79\x71\x61\xe8\x31\x04\x75\xc0\xd9\x71\x07\x4f\x61\xdd\x7c\x16\xd2\x2f\xd6\x45\x4b\x5c\x3e\x22\x0e\x9f\x77\x41\x52\xd4\x2f\xcf\xb7\x70\xea\x74\xc4\x30\xa8\x1a\xe9\x00\xc5\xf5\x0c\x19\x7c\x72\xa3\x1c\x4f\xfc\x24\x0e\x56\x91\xad\xdb\xa5\x9d\xe8\xdd\x71\x4e\x42\x16\x3f\x46\x91\x7a\xee\x2f\xec\x04\x64\x15\x2f\x5d\x2c\x00\xaf\x5b\x1d\xcb\x30\x4f\x40\x28\x87\x87\x8e\x7d\xbe\xa2\x5a\xce\x20\x6b\xe1\x9b\xa5\xae\xa1\xbd\x0b\xfb\xdc\x50\x9c\x09\x90\xf6\x48\x85\x9d\xf4\xcf\x20\x8b\x6d\x04\xec\x87\x38\xbd\xe0\x0d\x8f\x38\xf5\x68\xc7\x72\x3f\xd7\xe0\x2c\x96\xb2\xee\x21\xc4\xc9\x20\x3c\xe2\x04\xb4\xe2\xba\x59\x43\xed\x11\xed\x0e\xa8\x2a\x15\x59\x55\x84\x0f\xee\x70\x30\xf8\x07\x9c\x7e\xa0\x7d\x3a\x40\xe5\x46\xdb\x70\x4e\x7b\x63\xe2\xc3\xa1\x5c\x57\x6e\x04\x1b\xb9\x39\x58\xe0\x43\xdb\xac\xb9\x05\x41\x76\xf0\xc1\xd1\x12\x72\x37\xde\xb2\x85\xa0\xfb\xc1\x4c\x44\x2e\x53\xa6\x43\xfe\x64\x2b\x6d\x9b\x3f\xe0\x75\x9f\x59\x09\xdf\xab\x58\x77\x95\x57\xf5\x79\xed\xc6\x8f\xc9\x71\xf8\x95\x00\xe6\xdd\xfd\xe6\x6e\x0b\x77\xbf\xfc\x4a\xff\xff\xcb\xdf\xee\x5e\xec\x80\x16\xda\x64\x8b\xec\x90\x33\x69\x05\xb5\x71\x61\x3e\x64\x9b\xfd\x60\x5e\xc0\x7f\xcc\xe9\x93\xd6\xa4\x32\xd8\x4c\x30\xda\x06\xfd\xaa\xa8\xdc\x42\x86\xac\x1c\xb9\xd9\x3f\xe9\xec\xaf\x25\x35\xf6\x2a\x46\xf4\xec\x91\xba\x3d\x93\x9d\xbb\x6e\x3f\xe2\xcb\x32\x3d\x0e\x8a\x20\x31\x48\x4f\x27\x7d\x2f\xe7\xde\x01\xad\x80\xbe\xe2\x06\x51\xfc\xa0\x71\x28\x0d\x1f\x7e\xd4\x54\x96\xcc\x10\x57\x2b\x6b\x1d\x7b\x33\xf5\x07\xea\x48\x25\xee\xd2\x6d\x80\x1c\x32\x57\xfd\x1a\x29\xe5\xd9\xbb\x44\xe7\x1c\x25\x0c\x01\x18\x67\x57\xce\xe9\x67\x18\x2b\x85\xc8\x53\x24\xb5\x85\x30\xd6\x1d\x28\x08\x3a\x8e\x8c\x7c\x2f\xf7\xb5\xbd\x1b\x19\x84\x4f\x1d\x4a\x6f\xec\x12\xfe\x01\xbf\x81\x20\x55\x73\x2a\x06\xcf\x9e\x25\x07\xa7\xc5\xcd\x96\xce\x19\xc3\xc8\x6c\x12\x7f\x02\x34\xca\x2c\xd9\x82\x9d\xdc\x51\x95\x82\x21\x24\x4a\x78\x24\xe5\x13\x04\xd4\x5d\x2e\xf0\x24\x81\x26\xab\xce\x9d\x30\x65\x4f\x37\x4c\xd2\x73\x9d\x1d\x40\xf5\x1b\x35\x42\xae\x95\x97\x52\x99\xdc\xeb\x96\xc7\x17\x10\x42\x47\xfe\x4e\xf4\x52\x8f\x7c\xd6\x09\x2e\x74\x3a\x42\x30\x61\x2e\xfb\x1a\xe7\xc2\xda\xe8\xa1\x72\xca\x4b\x41\x30\x5b\x26\xfb\xc2\x0b\xad\x8a\xef\xa3\x57\xda\x68\x7b\x38\x85\xe7\x3a\x82\xe8\x75\x0f\x79\xe9\x0a\x13\x03\xc1\x14\x3a\xf3\x42\xe0\xfb\xd1\xa0\x5f\x61\x1e\xe3\xa6\x1d\xfb\x0a\xfd\x0b\xf5\x1f\x79\xab\x04\x5d\xb9\x07\x8f\x3d\x35\xc5\x39\xad\xad\xba\x3c\xc6\x60\x15\x22\x44\xdd\xe3\xe2\xf8\xf4\x38\xc5\x8a\xb2\x3c\x63\x19\xc6\x08\x3a\xa6\x11\xd1\x9c\x62\xb8\x2d\x9b\x77\x71\xd5\xfd\x82\x44\xc4\x57\xa7\x03\x35\xc9\x6b\xc6\x6a\xd7\xf7\x64\x87\xf4\x0a\x2a\x8c\x27\x44\x3b\x83\x0f\xbd\xf3\xf8\x40\xe7\xa5\xb2\x98\x55\xfe\x44\x20\x9c\xab\x61\xb4\x8d\xcb\xb8\x16\x2f\x6b\xf1\x2d\x81\x94\xe3\x76\x86\xe3\x9b\x5c\x17\x54\x4b\xd0\xc4\xd3\x4b\xe3\x42\x1e\x9c\xf1\xe4\xce\x65\xf7\x4d\x6f\x98\x2f\xe9\x4e\xd3\x74\x2d\x0f\x3d\x29\xd3\x33\x71\x6d\x0f\x2f\x29\xa5\xf6\xce\x18\x29\x53\x96\x11\x93\x3c\x85\x4a\xf9\x17\xc3\x5d\x96\xf6\xca\x1f\xb4\x2d\xf7\xa0\x7a\x37\xda\x98\x8b\xfb\x70\xa5\x64\x0d\xc8\x8d\x46\x1a\x43\x56\x68\xdc\x29\x63\xb8\x78\xc6\x35\x8e\x7f\xb7\x3e\x2c\x0c\x88\xcd\x95\xb3\x88\xb8\x30\x4e\xe9\xc8\x59\xcc\x3f\x19\x14\xae\x91\xfd\x6d\x22\xdb\x2b\x1f\x07\x15\x22\x57\xbb\x29\xcb\xc8\x24\xb5\x69\xc0\xa0\x6a\xce\x43\x48\x0c\x4a\x1b\x38\x0d\x8d\x26\x6a\x6a\xa7\x98\x8b\xaf\xe7\x5e\x53\x62\x32\x46\xaa\x31\x88\xb7\xc1\x63\x40\x7f\xc4\xb3\xca\x79\x5d\x54\x1a\x3c\xa2\x39\xa7\xad\x38\xc9\x8f\x56\x96\x51\x12\x30\xae\x7e\x7c\x21\xfe\x5c\x1b\x4f\x5e\x0d\x97\xb2\xd0\xb3\xac\x29\xca\x3d\x3c\x37\x77\x0e\x8c\x93\x41\x47\xab\xe3\xdc\x93\x48\xcd\xf2\x82\xeb\x0c\x46\x47\xa9\x75\xb2\x8f\x2b\xe8\x9c\xd7\x9f\x9c\x8d\xca\x00\xbf\x27\xf7\x4e\xdd\xee\x9c\xc0\x75\x24\x54\xce\x3d\x30\x7b\x40\x2e\x65\xb2\x5a\x78\xef\xd7\xcf\x8b\x49\x4b\x3c\x55\x23\xcb\xe9\x47\xaa\x29\xeb\x7f\xfe\x6c\x81\x65\x1e\xe4\x72\x59\x93\x4a\xb6\xff\x0d\x17\x5c\x7b\x49\xfb\x67\xca\x3d\xa4\x46\x30\x44\x4f\xe6\xe3\xe9\x94\x66\xe3\xe6\x96\x89\xca\x8d\x07\xea\x5a\xa5\xa1\x1e\x94\xcf\xc7\x72\x90\xaf\x4a\xb9\x9f\xd2\x30\x56\x32\xb2\x3e\x62\x58\x55\xc2\x83\x51\x35\x17\x81\x41\x37\x08\xe5\xab\xfb\x4d\x39\xef\xe0\x64\xb2\x6c\xd2\xb6\x36\x63\xc3\xc6\xd3\x46\x66\xdf\xdb\xd5\x50\x65\x0b\x25\x0f\x97\xb6\x3c\xd1\xa3\x7f\xdc\x10\xe9\x1f\xaa\x10\x97\x2e\x97\x9f\x4a\xf7\xcb\x2f\xd6\x27\x44\xf5\x88\x80\x9a\xd3\xbd\xb2\x19\xe4\x1c\xff\x50\xb5\x74\xd0\x84\x6b\x27\xe5\x19\xd1\x89\x4a\x4b\xd1\x91\x46\x89\xd7\x06\xfd\x49\x5d\x54\x5b\xcf\xb5\x31\x97\xfa\xf5\x33\x65\xc8\xab\xfb\x2c\xe2\x06\x5e\xdd\x67\x11\x37\xf7\xaf\xee\x49\xc4\xcd\xf6\xd5\x7d\xed\xcc\x86\xde\xb9\x21\xee\x73\x3b\xbb\x61\x5a\x97\xff\x2d\x6b\xc4\xa6\x79\x57\x1e\xdd\x6d\xfe\xbf\x1d\xe0\x29\x11\x49\xfd\xfb\xb3\x06\x62\xb3\x97\xbb\x0b\x7a\x43\xed\xff\x16\xce\x56\x7d\x87\x66\xd8\xec\xaf\x0a\x19\x79\x01\x8f\x70\xd7\xe2\xa4\x69\xe3\xba\xdf\x91\x17\xcf\xb4\xaf\x4f\x63\xc6\x2a\x5a\xc6\xba\x27\xe4\xce\x57\x16\xd2\x12\x87\x71\x40\x9f\xef\x2c\x39\x19\xef\xe0\x3d\x95\x86\x21\x42\x98\x42\xc4\x3e\xcc\xfd\xcf\x6d\x18\x1b\x77\x0b\xd5\xc8\xb5\xb1\xb3\xf0\xcd\x4f\x6f\x29\xa8\x53\xa9\x77\xdb\x38\x15\x76\xb7\x67\xf5\x6f\x7a\x55\x8f\x21\xba\x5e\x7f\x4a\x73\x98\x3c\x0e\xe3\x2b\x46\x82\x8f\x74\x3b\xc6\x48\xaf\x63\x07\x61\xbc\x26\x0b\x1d\x9f\x64\x99\x6c\x54\x1f\xcb\x3d\xc4\xd1\xdb\x00\xf2\x13\xc4\x73\x5d\xdb\x3e\xaf\x88\xa8\x2a\xea\x91\x7b\x69\xc4\xad\x3a\xea\x03\xd5\xe1\x4b\x81\xc6\xfa\xc5\x83\xb6\x96\x87\x1f\x39\xc5\xa9\x90\xfa\x58\xb9\x6f\x88\xaa\xe2\x6e\xe5\x1e\x77\x87\x9d\x74\xdd\x5c\xa2\x7e\xb5\xa2\xe4\x6c\x8d\x9b\xf3\x8e\x80\x05\xe7\x72\x53\xd9\x29\x72\x2f\x25\xd3\x22\xe2\x2b\x44\x27\x9b\xd3\x74\xf6\x85\x2c\x40\x3b\xf4\xa7\xb3\x31\x51\x54\x15\xd0\x33\xee\x34\xd3\xbd\xce\x15\x22\x5f\x2d\x04\xe6\x23\xf7\x3c\xfb\x4b\xcc\xaf\xea\x70\x16\xf4\x79\x3e\xd0\xf7\x51\x47\xc3\x7e\xcb\x97\x02\x61\x6e\x41\x64\xfc\x4c\xb5\x88\x9f\xab\xf3\xbb\x00\xbc\x7c\x6e\x27\x02\x46\xea\x92\xe7\x72\x9c\x53\x8a\x54\xa2\x2f\xa8\x60\x0c\x38\x78\xdd\x2b\x3f\x95\x70\x9f\x9d\xaa\x1d\x0d\x39\xc3\x17\x56\x7f\xdc\x3c\xc9\xd1\xc5\xcc\x33\x61\x40\x22\xb6\xea\x13\x72\xaf\x22\x17\x45\x7c\xcb\x9d\xa0\xb3\x52\xf5\xe3\xc1\x13\x40\x26\x13\xcf\x1d\xa5\x6a\x5b\xac\x63\x4e\xac\x96\x60\x69\xdd\x7a\xc8\xdc\xe7\xdb\xe8\xcd\xc3\xb7\x1c\x10\xfc\xe7\x7f\x3c\xe3\xb6\x0f\x0f\x0f\x45\xf1\x36\xbd\x1b\xcc\x78\xd0\x19\xea\xc3\x72\xc5\xce\xb5\x29\xd5\x66\xe7\x6d\x26\x57\xac\xe5\x2f\xbf\x96\x50\xde\x6f\x4a\x28\xff\xf2\xb7\x12\xca\xdb\xdb\x12\xca\xbb\xbb\x72\x07\xff\xee\xdd\x51\x37\xf3\x35\x0e\xbb\xe2\x42\x2d\x1d\xf6\xfc\xd0\x39\x26\x56\xca\xfd\x6a\x74\xb2\x3d\xbb\x76\xc7\x08\xc1\xf5\xcb\x87\x02\x95\x0a\xcb\x18\x36\x27\x83\x1d\xbc\x99\x95\xd6\xbb\x9e\x27\x62\x97\x66\x52\x95\x4c\x3c\x7a\xf5\x88\x72\x21\xc4\xf7\x43\xc3\x3c\x0a\x19\xa6\xd8\x39\xb9\x35\x9a\x54\x6f\xf2\x10\x3b\x80\xc7\x83\xf2\x8d\xa1\x96\xd0\xb5\xe2\x90\x69\x5c\x1a\xf8\xf2\xe1\xf3\x72\x79\x3d\xcd\x81\x0a\x3b\x75\xd4\xd2\x7b\x12\xec\x9c\x35\x15\x2f\x82\x8e\xd1\x36\x72\x4f\xf7\xe6\xcc\x38\xf4\x78\xbe\x89\x98\xe7\x15\xdc\x93\x7c\x66\x99\x99\x08\xfb\x29\x9b\xe5\x99\x33\xdf\xd8\x29\x33\x47\x82\x91\x01\x92\xdb\xe6\x59\x67\x8e\x3d\x6e\x80\x56\xb7\x56\x50\x5c\x5e\x77\xce\x6a\xfa\x47\x70\x16\x82\xdb\x12\x29\x64\x1f\xdf\x8a\x22\xcf\xbf\x48\x91\x66\x32\xd1\x2f\x72\xc1\x37\xcf\x31\x45\xd7\x77\x8b\x9e\xb9\x86\xb9\x42\x87\x73\x01\x71\x1f\x1d\x28\xeb\x28\x7a\x8b\x5e\xd5\x9d\xb6\x38\x0f\xd7\x38\x36\x39\x93\x9d\x31\x99\xe4\xe1\x3d\x90\xf6\xec\x8a\xa2\xf8\xcd\x6f\xe0\x9d\x4c\x6d\xc9\x41\x64\x26\x90\x77\x16\xc5\x9f\x97\x2f\x57\x68\x7b\x58\xa8\xe6\x12\x4b\x46\xbe\x66\x22\x14\xe1\xdd\x66\xda\xc1\xbf\xc9\x1f\xd0\xa3\xca\xdf\xc0\x50\x24\xe5\x61\xfc\x89\xa7\x43\x6b\x55\x5f\x7e\x70\x73\xae\xe1\x32\x4d\x1d\x55\x9c\xbf\x40\x20\x64\x2b\x12\x50\x26\x33\x5e\xce\xff\x7f\x4a\xa7\x2d\x45\xe0\xcc\x6b\xfa\x6c\x65\x0e\x4c\x6a\xee\xe7\xb0\x5c\x7f\xe0\x61\xf9\x02\x5c\x28\x86\x5d\x51\x7c\x58\xee\x9a\xe5\x53\x83\x55\x13\xbd\x1a\x7e\x6f\x13\xc3\xb8\xba\xba\x58\xad\x64\x3d\x15\xb4\x90\x67\xa4\x74\xe8\xc2\x64\x52\xe2\x96\xa3\xbb\x0c\x18\xf9\x41\xb9\x4e\x40\xf4\xb4\xdc\x15\xc5\xf7\xe9\xf2\xfb\x42\x59\xf3\xb5\x04\x59\x8e\x3f\xbf\x19\x46\xf9\x8a\x23\x83\x4d\x3a\x83\xe2\x48\xaa\x9f\x89\xbf\x24\x61\x8b\x16\x8a\x25\xe1\x8a\x79\x05\x44\xfc\x75\x93\x96\x5b\x4c\x19\x34\xa5\xb9\x56\xa7\xc2\x65\xaa\x4e\x05\x26\xa9\x4e\x90\x06\x3f\xd6\x38\x44\x78\xe7\x0a\xfe\x2d\xea\x99\xb3\x35\x7c\x75\x7d\xf9\x1f\xc7\x6a\x92\x27\xfb\xa2\x28\xcb\x92\xa4\x2b\x7e\x29\x6e\x6e\xdb\xb8\x3f\xb8\xdb\x3d\xfc\x52\xdc\xdc\xdc\xae\x8f\xbe\xdd\x03\xa7\xc2\xe2\xe6\xd7\xad\xac\xf3\x63\x35\xad\x57\xea\x4f\x78\xbb\x87\xdf\xa6\x05\x17\x7b\x09\x29\xf2\x63\x59\xf8\x55\xf1\x2b\x9d\x5c\x14\xef\x3d\xc5\x97\x36\xca\x9b\x69\xd6\xad\xcc\x7c\x39\x28\x49\x65\x97\x6c\x7e\xb1\xfb\xa7\xb8\xfc\x62\xe7\xab\xff\x03\x16\xff\x27\x00\x00\xff\xff\xff\x0a\x4b\x21\x8a\x27\x00\x00" func runtimeHelpOptionsMdBytes() ([]byte, error) { return bindataRead( diff --git a/internal/config/settings.go b/internal/config/settings.go index 8702bff1..b7cdaa69 100644 --- a/internal/config/settings.go +++ b/internal/config/settings.go @@ -30,6 +30,7 @@ var ( // Options with validators var optionValidators = map[string]optionValidator{ + "autosave": validateNonNegativeValue, "tabsize": validatePositiveValue, "scrollmargin": validateNonNegativeValue, "scrollspeed": validateNonNegativeValue, @@ -150,7 +151,6 @@ func GetGlobalOption(name string) interface{} { var defaultCommonSettings = map[string]interface{}{ "autoindent": true, - "autosave": false, "basename": false, "colorcolumn": float64(0), "cursorline": true, @@ -209,6 +209,7 @@ func DefaultCommonSettings() map[string]interface{} { } var defaultGlobalSettings = map[string]interface{}{ + "autosave": float64(0), "colorscheme": "default", "infobar": true, "keymenu": false, diff --git a/runtime/help/options.md b/runtime/help/options.md index ef1d068b..5e25ea6e 100644 --- a/runtime/help/options.md +++ b/runtime/help/options.md @@ -13,12 +13,14 @@ Here are the options that you can set: default value: `true` -* `autosave`: micro will save the buffer every 8 seconds automatically. Micro - also will automatically save and quit when you exit without asking. Be - careful when using this feature, because you might accidentally save a file, - overwriting what was there before. +* `autosave`: micro will save the buffer every `n` seconds automatically + (where `n` is the value of the option). Micro also will automatically + save and quit when you exit without asking. Be careful when using this + feature, because you might accidentally save a file, overwriting what + was there before. If the value of the option is `0` then micro will + not autosave. - default value: `false` + default value: `0` * `basename`: in the infobar, show only the basename of the file being edited rather than the full path. @@ -123,6 +125,12 @@ Here are the options that you can set: default value: `false` +* `mkparents`: if a file is opened on a path that does not exist, the file cannot + be saved because the parent directories don't exist. This option lets micro + automatically create the parent directories in such a situation. + + default value: `false` + * `mouse`: whether to enable mouse support. When mouse support is disabled, usually the terminal will be able to access mouse events which can be useful if you want to copy from the terminal instead of from micro (if over ssh for @@ -131,19 +139,6 @@ Here are the options that you can set: default value: `true` -* `pluginchannels`: contains all the channels micro's plugin manager will search - for plugins in. A channel is simply a list of 'repository' json files which - contain metadata about the given plugin. See the `Plugin Manager` section of - the `plugins` help topic for more information. - - default value: `https://github.com/micro-editor/plugin-channel` - -* `pluginrepos`: contains all the 'repositories' micro's plugin manager will - search for plugins in. A repository consists of a `repo.json` file which - contains metadata for a single plugin. - - default value: ` ` - * `rmtrailingws`: micro will automatically trim trailing whitespaces at eol. default value: `false`