From a6ee75a9cfeedeebd5e1debc35846eb9667554ce Mon Sep 17 00:00:00 2001 From: Zachary Yedidia Date: Fri, 5 May 2017 11:05:23 -0400 Subject: [PATCH] Add SaveAll command and display + for modified tabs Closes #651 --- cmd/micro/actions.go | 18 ++++++++++++++++++ cmd/micro/bindings.go | 1 + cmd/micro/runtime.go | 2 +- cmd/micro/tab.go | 8 ++++++-- runtime/help/keybindings.md | 1 + 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/cmd/micro/actions.go b/cmd/micro/actions.go index 49f7e2c3..3c6f48b2 100644 --- a/cmd/micro/actions.go +++ b/cmd/micro/actions.go @@ -705,6 +705,24 @@ func (v *View) InsertTab(usePlugin bool) bool { return true } +// SaveAll saves all open buffers +func (v *View) SaveAll(usePlugin bool) bool { + if usePlugin && !PreActionCall("SaveAll", v) { + return false + } + + for _, t := range tabs { + for _, v := range t.views { + v.Save(false) + } + } + + if usePlugin { + return PostActionCall("SaveAll", v) + } + return false +} + // Save the buffer to disk func (v *View) Save(usePlugin bool) bool { if usePlugin && !PreActionCall("Save", v) { diff --git a/cmd/micro/bindings.go b/cmd/micro/bindings.go index a55286d0..128912c7 100644 --- a/cmd/micro/bindings.go +++ b/cmd/micro/bindings.go @@ -41,6 +41,7 @@ var bindingActions = map[string]func(*View, bool) bool{ "Delete": (*View).Delete, "InsertTab": (*View).InsertTab, "Save": (*View).Save, + "SaveAll": (*View).SaveAll, "SaveAs": (*View).SaveAs, "Find": (*View).Find, "FindNext": (*View).FindNext, diff --git a/cmd/micro/runtime.go b/cmd/micro/runtime.go index 8cba7a7e..ed987a58 100644 --- a/cmd/micro/runtime.go +++ b/cmd/micro/runtime.go @@ -963,7 +963,7 @@ func runtimeHelpHelpMd() (*asset, error) { return a, nil } -var _runtimeHelpKeybindingsMd = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x58\x6d\x73\x14\x37\xf2\x7f\xfd\xef\x4f\xa1\x1a\x5e\xfc\x93\xba\x65\xf1\x3e\xd9\x40\xa5\xa8\x32\xc6\x8a\x09\x01\x1c\x6c\x87\x90\x57\xa3\x9d\xd1\x7a\x75\xd6\x48\xc3\x48\xe3\x65\x73\x75\xf7\xd9\xaf\xba\x35\x0f\x92\xd7\x5c\xa8\xa2\xad\x51\xff\xd4\x6a\xb5\xfa\x69\xf5\x84\xbd\x93\xfb\xb5\x32\xa5\x32\xb7\x0e\xe0\xbd\x2a\x1a\xcb\xb6\xc2\x31\xc1\x6a\x2d\xfd\xd6\x36\x82\xd9\x0d\xdb\x5a\x7f\x27\xf7\x8e\xf9\xad\xf0\xac\x12\x77\x92\x29\xcf\xa4\x70\x7b\x26\x4c\xc9\x6a\xbb\x93\xcd\xa6\xd5\xcc\x5b\xd6\x3a\x49\x73\x42\x6b\xe8\x57\x89\x46\xb2\x4d\xab\xf5\x9e\x15\xad\xf3\xb6\x52\x7f\x89\xb5\x96\x88\xde\xdb\xb6\x61\x5a\xdd\x29\x73\x3b\x85\x33\x62\xb2\xbb\x51\x21\x5a\xe9\xbc\x6d\x64\xc9\x94\xf1\xb2\x31\x02\xa5\x28\xc3\x2a\x52\x54\x6d\x58\xb1\x15\xe6\x56\x96\x6c\xa7\xfc\x96\xf9\xad\x64\xf9\x2b\x5c\x9d\xb3\xc2\x56\x15\x2a\x62\x1b\xd8\xdb\x96\x15\xc2\x30\xa1\x9d\x65\x6b\xc9\x44\x59\x92\x40\xc2\x6f\x94\x96\x2c\xff\xcf\xb3\x69\x61\xcd\x46\xdd\x3e\x23\xc9\xcf\x7a\x0d\xa6\xff\x74\xd6\xe4\x4c\x38\x56\x2a\x57\xb4\xce\xc9\x92\xad\xa5\xb6\xbb\x29\x70\xdb\x30\xc1\xb4\x72\x1e\x2d\x84\xa2\x4a\xb9\x11\xad\xf6\xc9\x09\xba\x5d\x50\x0c\xdb\xd8\xa6\x12\x1e\x4d\x54\xb2\xf5\x3e\x9c\x61\x82\x76\x16\x4e\x32\x27\x25\x20\x52\xa2\xce\x28\x4f\x39\xd2\x6d\xca\xc2\x46\x95\x6d\x24\x2e\x6d\x9e\x6e\x1a\x25\x4d\xa9\xf7\x61\x6f\x3a\xb8\xfc\x56\x6b\x61\x84\x57\xd6\x38\x5c\xbd\xc3\x7b\x8a\x54\x4a\xae\x02\xad\xd2\x03\xf6\xac\x4c\x54\x60\xf9\xab\xad\xd4\x75\xbf\x0e\xd7\xe4\x00\x6f\x37\x7f\x6b\xa1\xd2\x4a\xc7\x8c\xf5\x4c\x7e\x53\xce\x4f\x58\x6f\x73\xa7\xaa\x1a\x2f\xbe\x91\xc2\xa3\xd7\x4c\x3b\x1f\xdb\x29\xad\xd9\x9d\xb1\xbb\x4e\x15\xcb\x4a\x1b\xce\x82\x18\xf8\xd2\x2d\x47\x77\xc2\x73\x88\x60\x56\xc7\xfe\xc1\x44\xd3\xd8\x9d\xc3\x15\x95\xbd\x97\x6c\x67\x1b\xb2\x26\xfe\x9d\xc2\x99\x6f\x34\xd3\x72\xe3\xe9\x94\x8d\xba\xdd\xfa\x00\x43\x21\x45\xdb\x38\xdb\xe0\x4a\xfc\x72\x5e\x34\x01\x36\x98\x5c\x32\xad\x8c\x9c\xe0\x24\x14\x28\xa9\xad\x09\x50\xda\x9d\x39\x14\xf3\x3d\x19\xeb\x76\xb3\x91\x4d\x74\x88\xad\xd5\x25\x73\x5b\xb5\xe9\x6e\x4b\x68\xdd\x61\x9d\x24\xb1\x95\x34\x9e\x89\x22\x5c\x9f\xb7\xcc\x49\x2d\x0b\xcf\x76\x5b\xf4\xcd\xca\xde\x53\x78\xc0\x13\xf6\x49\x76\x56\x27\x5b\x00\x5c\xe3\x6e\xbd\xa7\x55\x62\x8f\xce\xdd\xc8\xb5\x6d\x4d\xc9\x5a\x87\x38\x8a\x88\xff\x7d\x75\x10\xbc\xec\x5c\x14\x5b\x14\xcb\x94\x63\x41\x82\xb7\x0c\x83\x86\xd4\x9a\x02\xf9\xbb\xfc\x26\xaa\x5a\xcb\x09\xf2\x50\x0a\xcb\xd1\xe0\x4f\xf7\x39\x85\xbe\x29\x2d\xd9\x22\x4c\xfe\x45\x93\x8d\x44\x07\x23\x6f\xb0\xad\x2e\x59\xdd\x92\xdf\xc1\xc6\x6a\x6d\x77\xa8\x62\x17\x21\xf9\x03\x87\x22\xad\x00\xf2\x3c\xc7\x6f\xf8\x17\xfc\x5f\x86\x62\xbf\x64\x2f\x59\x76\x63\x4a\x9b\x4d\xba\x99\x3f\x71\xe6\x93\x2c\x6d\x06\xff\x46\x38\xc0\x5b\x83\x21\xae\x50\x6f\x54\x41\xe2\xd0\xdc\x86\x64\xf3\x37\xc6\x18\x1d\xb7\x69\x0d\x84\x5c\xc2\x7e\xba\x93\xfb\xc2\x56\x6b\xfb\x8a\xfd\x14\xcc\xf1\x2a\x67\x69\xf8\x23\x8e\x92\x5a\x77\x8b\x13\x0a\xa6\x2e\x53\x0c\x8e\x40\x09\xa8\xd8\x0a\x65\xfa\xf4\xe4\xd8\x6e\x2b\x0d\x5e\x5a\x50\x23\x44\xfb\x60\x66\xb5\x21\x7d\x76\xc2\x78\x76\xaa\xfd\xd3\xe0\x1d\xe2\x5e\x02\xda\xf9\x6b\xab\xfc\xa0\x2f\x69\xaa\x3c\x66\x53\xc9\x9c\x7d\x19\x9b\x8e\x31\xc6\x32\x5a\x8f\xb6\xba\x12\xf7\x72\xf2\x5b\xab\xfc\x60\xb0\x27\xec\xc6\xa4\x9e\xf5\xd6\xa3\x1f\x90\xbe\xb5\x75\x4e\x75\xf9\xba\x54\x2e\x9c\xd2\xec\x1f\x49\x7a\xa3\x2f\xae\xf7\x14\xb9\x1d\x04\xf2\x20\xfe\x9d\xdc\xe7\x9d\x81\xfa\x5b\xc7\x84\xf6\xff\xee\x7b\x97\xff\x84\xbd\x7e\x60\x57\xf2\xaf\xc1\xd8\x63\x14\xf4\xf7\xf0\x58\x0a\x2e\xac\xf1\x42\x19\xc7\x2a\x3b\xe6\xea\xe1\x54\xb1\x60\x92\xb7\xdb\xaa\x62\x3b\x98\xb5\x75\x72\xc2\xd6\xad\xa7\xdc\x36\x06\x6e\x35\x65\x17\xb2\x91\x64\x24\xaa\x6d\xa3\x27\x58\xbf\xc5\x68\x89\xe7\x1e\x6e\x16\x2e\x07\xce\x28\x91\xdc\xd4\xdd\xe0\x8d\xdd\x99\x6e\x78\x29\x6e\xe5\x30\x8f\x1f\x11\xef\x57\xb9\xf1\xdd\xf0\x13\xe6\xb7\x6e\x7c\x85\xa9\xa8\x1b\x9f\x9b\x12\xae\x28\x87\x5c\xdb\x30\xdf\x7f\x8d\x9c\x9b\xba\x1b\x90\xe8\x30\x24\xd1\x61\x18\x44\x7f\xb6\x4d\x39\x8e\x22\xf6\xc8\x18\xbf\x89\xfd\xde\xde\xcb\x5f\x95\x91\xee\xa6\x1e\xc7\xb4\xc5\x1b\xa9\xa5\x97\xe3\xc2\xf1\x3b\x92\xdb\xe9\xfb\x71\x83\xeb\x62\xad\xbb\x99\xb7\xc6\xc9\xc6\x7f\x90\x3b\x3d\x7e\x5d\xd5\xa2\x90\xf0\x5a\x14\x77\x8e\x46\x41\x30\x9c\x49\xec\x18\x3a\xcc\xb5\x58\x03\xfa\x3d\x91\x53\x07\x5c\x99\x92\xc8\x07\xf9\xcd\xd3\xe0\xb2\x91\xf7\xca\xb6\x0e\x30\xb9\x00\xe6\x13\x38\xb3\xf5\x1e\xce\x5a\xb4\xaa\xa7\xdd\xdf\xb4\xb5\x56\x85\xf0\x32\x7c\xd1\x3e\x9d\x5a\xa5\x34\x3e\xa8\xab\xac\x81\x8f\xad\x4f\x27\x2e\x85\xf3\xfd\x79\x4e\xb5\x86\x8f\xb5\x34\x5c\x69\x09\xe1\x7a\xf0\x5a\xba\x3b\x1f\x6e\xfb\x42\xe8\x4d\x37\xd7\x0f\xc3\x55\x45\x06\x1a\x0d\x73\x6d\x6f\x6f\xb5\xbc\x90\xba\xee\x86\x9f\x5a\x2d\x1b\xf8\xa5\xad\x6a\xe2\x9f\x69\x29\xd0\x47\x7c\xeb\xe0\x6a\x2b\xb5\x7e\x6f\x4b\x09\x67\x21\x0b\xd1\x18\x33\x02\x11\xd4\xef\xb4\x2c\xd1\x64\xbd\x51\x70\x8c\x96\xea\xff\x5e\xd5\x5a\x79\xb8\x31\x8e\xfe\xfe\x1e\x3e\x2f\xc2\x9f\x7e\x4d\xf8\x0a\xca\xbc\x17\x45\x63\xe1\x52\x8b\x7d\x18\x0d\xf9\x20\xe4\x9f\x3e\x94\x7c\x14\xc9\x18\x6b\x43\xdc\x50\xe9\x8f\x33\x5d\x17\x41\x37\x35\x90\x4d\x82\x47\x91\x1f\xdd\xd4\xdd\x9f\xce\xcb\xec\xce\xd0\x04\x0e\xba\x78\x09\x8e\x71\x60\x6f\x5b\x91\x41\x3b\x8f\xe9\xdd\x88\x4c\x7a\xfe\x4d\xf9\x60\x42\x38\x13\xa6\x90\x1a\x2e\x1b\x65\x3c\x5c\x8a\xd6\x05\xd7\xf3\x62\x0d\x7c\x06\x7c\x0e\x7c\x01\x7c\x09\x7c\x05\xfc\x18\xf8\x09\xf0\xe7\xc0\x5f\x00\x9f\x1d\x01\x9f\xcd\x80\xcf\xe6\xc0\x67\x0b\xe0\xb3\x25\xf0\xd9\x0a\xf8\xec\x18\xf8\xec\x04\xf8\xec\x39\xf0\xd9\x0b\xe0\xf3\x23\xe0\x73\x94\x33\x07\x3e\x5f\x00\x9f\x2f\x81\xcf\x57\xc0\xe7\xc7\xc0\xe7\x27\xc0\xe7\xcf\x81\xcf\x5f\x00\x5f\x1c\x01\x5f\xcc\x80\x2f\x70\xc3\x05\xf0\xc5\x12\xf8\x62\x05\x7c\x71\x0c\x7c\x71\x02\x7c\xf1\x1c\xf8\xe2\x05\xf0\xe5\x11\xf0\xe5\x0c\xf8\x72\x0e\x7c\x89\x9a\x2d\x81\x2f\x57\xc0\x97\xc7\xc0\x97\x27\xc0\x97\xcf\x81\x2f\x5f\x00\x5f\x1d\x01\x5f\xcd\x80\xaf\xe6\xc0\x57\x0b\xe0\x2b\x3c\xc2\x0a\xf8\xea\x18\xf8\xea\x04\xf8\xea\x39\xf0\xd5\x0b\xe0\xc7\x47\xc0\x8f\x67\xc0\x8f\xe7\xc0\x8f\x17\xc0\x8f\x97\xd4\x73\x85\x18\xc4\xd1\x29\xd1\xd7\x44\xcf\x88\xbe\x21\x7a\x4e\x94\x13\xfd\x99\xe8\x05\xd1\xb7\x44\x7f\x21\xfa\x8e\xe8\xaf\x44\xdf\x13\xfd\x40\xf4\x23\xd1\x4b\xa2\xbf\x11\xfd\x14\x76\x25\x7a\x4d\xf4\x86\xe8\xef\x44\x3f\x13\xfd\x83\xe8\x17\xa2\x7f\x06\xc9\x72\xe3\xaf\xbe\x06\x05\x31\x5d\x68\xe1\xb6\x41\x1c\x3a\x46\xc7\x39\x13\x8d\xf0\x41\xa4\x29\x65\xe3\x0a\xdb\xc4\xd9\x05\x43\xe0\xdc\x15\xf8\x5f\xd4\xe8\x30\xe8\x4b\x5d\x15\x7d\x73\x50\x7d\x58\xe8\x35\xda\x46\x74\x5d\xd4\x83\xa2\x7c\x53\x67\x2f\x59\xfc\x2f\xeb\x8b\x42\x36\x09\x08\xf4\xcd\x04\x93\x8d\xd5\xa2\xc7\x90\xfa\x31\x28\x8b\xea\x43\x0f\xc2\xc3\x3f\x26\x88\xe6\x3b\xcc\x15\x36\xa9\xb1\x4e\x59\x5f\x2c\x12\x44\xac\x53\x36\x56\x91\x04\x13\x6f\x97\x8d\xe5\x25\xc1\xc4\x7a\x67\x51\xdd\xe9\x41\xa7\xda\xa7\x5a\x67\x7d\xb9\x88\x10\xe9\xe1\xb3\xa1\xc0\x44\x90\x74\xb3\xec\x41\x09\x7b\x08\x1c\xb6\xcc\xd2\xda\x16\xe1\xd2\x6b\xcb\xa2\xa2\x17\x81\xd2\x9b\xcb\x92\x6a\xd8\xc3\x7a\xaf\x1c\xf5\x8f\xd2\x7b\x0c\x4a\x4e\x99\x0d\x79\x3f\x86\x24\xca\x67\x8f\xd4\xd3\x03\x70\x2f\x34\x3b\x28\xb4\x31\x34\x39\x6c\x16\x75\x1b\x31\x28\x39\x6c\x36\xb4\x21\x07\x5b\xf6\xc2\x52\xfd\x0e\x60\xbd\xb8\x58\xb3\x1e\x44\x21\x97\xd8\x3f\xe9\x0a\x06\x0f\xc3\x70\x7d\x04\x16\xe6\xa3\x0d\x2f\x12\xd0\x10\xe9\x3d\x64\x9c\x78\xf9\x3d\x08\xb6\xd6\x89\xa4\x2c\x6d\x6e\x62\x5c\x22\xee\x3b\xb8\x6b\xb1\x4e\xd3\x42\xf6\xa0\xc1\x98\x0c\x5d\x4d\xac\xa5\x8f\x97\x65\x0f\x7b\x90\xf8\xc8\x1f\x93\x23\xf7\xcd\x48\x72\x0b\x09\x02\xbb\xa6\x98\xcb\x13\x2e\xb6\x4f\x31\xf7\xc3\x01\x17\x7b\x86\x18\x71\x79\x80\xe8\xbb\x86\x18\xf5\x67\x82\xea\x7e\xf4\x0d\xdc\x2f\x09\x97\x7e\x00\x46\xdc\xb3\x34\x1d\xda\x7a\x1f\x73\xff\x78\x90\x2c\x13\xe5\xde\x3d\x64\x3e\x0c\x88\x37\x09\x20\x69\x0a\x63\xd8\xef\x09\x8c\x3a\xc0\x98\x7d\x9a\x5a\xb8\x6f\x0d\x63\xc8\x75\x02\x09\x3d\x59\xe4\x4b\x93\x34\x9d\x47\xcd\x5a\x04\x9a\xa6\xa0\xae\x8b\xeb\x01\xd8\xf4\xa4\x80\x47\xf2\x05\xc6\x5e\xea\x8e\x8f\xe6\x89\x44\xd6\xf7\xf2\x44\x22\xeb\x30\x4f\x84\xa6\xec\x30\xdf\x74\xf3\x11\xea\xb1\x84\x33\xcc\x47\x1b\xfe\x9c\xd8\x70\x6c\x93\x93\xe4\xfa\x08\x86\xfa\xe7\x24\x4d\x27\xa0\xbe\xb1\x1e\xca\x34\x05\x72\xac\x78\x37\x13\x49\x78\x9d\xde\x78\xdf\x85\xc7\x90\xdf\x12\x08\xfd\x48\x8f\x8d\xf7\xc0\xa9\x87\xe6\x3d\x06\x7d\x4e\x40\x43\xb7\x9e\x64\xf4\x47\xce\x4b\x8d\x79\x0c\xfa\x25\x75\xdf\xbe\x77\xcf\x26\x40\x98\x67\xcf\xd8\x79\x25\x0a\xf7\xd4\xf9\x7d\xe8\xd0\x87\x67\x64\xd6\xe7\xba\x0d\xd6\x96\xc7\xea\xec\xd3\x75\xcf\x79\x98\x1e\x05\x95\xa3\x43\x1f\x44\x1e\x9a\xf7\xd0\xf5\x90\x83\x1e\x73\xd0\x39\x21\xc3\x8c\x8c\xce\x31\x7a\xe5\xdf\x1a\x2f\x6f\x43\x5b\x16\x5e\xe5\xe8\x21\xb8\x12\x46\xdc\xca\xa6\x3b\x03\x9f\x51\x92\x3e\x74\x1a\x3e\x0f\xc5\x29\x4a\x8b\x7c\x41\x53\x71\x2e\xe4\x4b\x9a\x8a\x6f\x91\x9f\x1c\xa2\x66\x47\xa8\x64\x8c\x3a\x77\x05\x1d\x95\x5a\xcc\x6c\x32\x3c\xd3\x70\x65\x84\x66\xc6\x7a\xe9\xe0\x83\xf5\xf2\x25\xfb\x68\x98\xb3\x95\x64\x56\x97\xcc\xcb\xa6\x22\x80\xac\x5a\x2d\xbc\x6d\xc2\xa3\x86\x35\xec\xb3\x32\xa5\xdd\x39\x56\x89\x62\x8b\x1d\xc8\x24\x3c\xd1\x5d\xe4\xcc\x6d\xe9\x55\x6e\x4d\x2f\x31\x25\x6c\x6c\xc3\xd6\x7d\x81\x9a\x02\xfe\x0c\xa4\x67\x34\xa1\xf5\x7e\x32\x3e\xc2\xd2\xaf\x30\xd9\x3d\x13\xd2\x5b\x0f\xb6\xba\x39\x1a\xfc\x4e\xee\xf3\xe4\x11\x2b\x4c\x8b\x1c\x6c\x13\x86\x37\x75\x3e\x65\xe1\x11\xd8\xb5\x75\x6d\x1b\x8f\x7a\x32\x5b\x87\x8d\x58\xfe\x34\x67\x6b\xe9\x77\x52\x1a\x56\xd9\x52\x6d\x94\x6c\x5c\x78\xd6\xc2\xf5\xf9\xf8\xc4\x98\x83\xb3\xbd\xf8\xee\x79\x91\x1e\x40\x77\x8d\xf2\x5e\x1a\x26\x1c\x71\x45\xce\x7e\x28\x84\xc3\xcb\xf5\x1e\x65\xe1\x29\xf1\x2c\xbd\xc3\xfe\x38\x65\xd7\x5b\xe5\x98\x72\xb0\xdb\xee\xfb\xa7\xa9\xc7\x9e\x92\x86\x57\x6d\x19\x94\x19\x5a\xae\x9c\x29\xe3\xbc\x14\xf4\x08\x4c\x2a\x45\x2c\xf8\x81\x5e\xda\x45\x23\x99\xfc\xda\xaa\x7b\xa1\xa5\xf1\x3f\x4e\xe1\xbf\x01\x00\x00\xff\xff\x9c\xf3\x6e\xfc\x7d\x19\x00\x00") +var _runtimeHelpKeybindingsMd = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x84\x58\x5b\x73\x1b\xb7\x92\x7e\xde\xfe\x15\xa8\xf1\xc3\x26\xb5\x34\x2d\xde\x24\xdb\x95\x72\x95\x2d\x0b\x91\xe3\xd8\x56\x2c\x29\x8e\xf3\x34\xe0\x0c\x28\x62\x85\x01\x26\x03\x8c\x68\x66\x6b\xcf\x6f\x3f\xd5\x8d\xb9\x00\xa4\x7c\xe2\x2a\x37\x31\xe8\x0f\x8d\x46\xa3\x6f\xc2\x13\xf6\x5e\xee\xd7\xca\x94\xca\xdc\x39\x80\x0f\xaa\x68\x2c\xdb\x0a\xc7\x04\xab\xb5\xf4\x5b\xdb\x08\x66\x37\x6c\x6b\xfd\xbd\xdc\x3b\xe6\xb7\xc2\xb3\x4a\xdc\x4b\xa6\x3c\x93\xc2\xed\x99\x30\x25\xab\xed\x4e\x36\x9b\x56\x33\x6f\x59\xeb\x24\xcd\x09\xad\xa1\x5f\x25\x1a\xc9\x36\xad\xd6\x7b\x56\xb4\xce\xdb\x4a\xfd\x2d\xd6\x5a\x22\x7a\x6f\xdb\x86\x69\x75\xaf\xcc\xdd\x14\xce\x89\xc9\xee\x47\x85\x68\xa5\xf3\xb6\x91\x25\x53\xc6\xcb\xc6\x08\x94\xa2\x0c\xab\x48\x51\xb5\x61\xc5\x56\x98\x3b\x59\xb2\x9d\xf2\x5b\xe6\xb7\x92\xe5\xaf\x70\x75\xce\x0a\x5b\x55\xa8\x88\x6d\x60\x6f\x5b\x56\x08\xc3\x84\x76\x96\xad\x25\x13\x65\x49\x02\x09\xbf\x51\x5a\xb2\xfc\x5f\xcf\xa6\x85\x35\x1b\x75\xf7\x8c\x24\x3f\xeb\x35\x98\xfe\xaf\xb3\x26\x67\xc2\xb1\x52\xb9\xa2\x75\x4e\x96\x6c\x2d\xb5\xdd\x4d\x81\xdb\x86\x09\xa6\x95\xf3\x68\x21\x14\x55\xca\x8d\x68\xb5\x4f\x4e\xd0\xed\x82\x62\xd8\xc6\x36\x95\xf0\x68\xa2\x92\xad\xf7\xe1\x0c\x13\xb4\xb3\x70\x92\x39\x29\x01\x91\x12\x75\x46\x79\xca\x91\x6e\x53\x16\x36\xaa\x6c\x23\x71\x69\xf3\x74\xd3\x28\x69\x4a\xbd\x0f\x7b\xd3\xc1\xe5\xb7\x5a\x0b\x23\xbc\xb2\xc6\xe1\xea\x1d\xde\x53\xa4\x52\x72\x15\x68\x95\x1e\xb0\x67\x65\xa2\x02\xcb\x5f\x6d\xa5\xae\xfb\x75\xb8\x26\x07\x78\xb7\xf9\x47\x0b\x95\x56\x3a\x66\xac\x67\xf2\x9b\x72\x7e\xc2\x7a\x9b\x3b\x55\xd5\x78\xf1\x8d\x14\x1e\xbd\x66\xda\xf9\xd8\x4e\x69\xcd\xee\x8d\xdd\x75\xaa\x58\x56\xda\x70\x16\xc4\xc0\xd7\x6e\x39\xba\x13\x9e\x43\x04\xb3\x3a\xf6\x3f\x4c\x34\x8d\xdd\x39\x5c\x51\xd9\x07\xc9\x76\xb6\x21\x6b\xe2\xef\x14\xce\x7d\xa3\x99\x96\x1b\x4f\xa7\x6c\xd4\xdd\xd6\x07\x18\x0a\x29\xda\xc6\xd9\x06\x57\xe2\x97\xf3\xa2\x09\xb0\xc1\xe4\x92\x69\x65\xe4\x04\x27\xa1\x40\x49\x6d\x4d\x80\xd2\xee\xcc\xb1\x98\xef\xc9\x58\xb7\x9b\x8d\x6c\xa2\x43\x6c\xad\x2e\x99\xdb\xaa\x4d\x77\x5b\x42\xeb\x0e\xeb\x24\x89\xad\xa4\xf1\x4c\x14\xe1\xfa\xbc\x65\x4e\x6a\x59\x78\xb6\xdb\xa2\x6f\x56\xf6\x81\xc2\x03\x9e\xb0\xcf\xb2\xb3\x3a\xd9\x02\xe0\x06\x77\xeb\x3d\xad\x12\x7b\x74\xee\x46\xae\x6d\x6b\x4a\xd6\x3a\xc4\x51\x44\xfc\xe7\xab\x83\xe0\x65\x17\xa2\xd8\xa2\x58\xa6\x1c\x0b\x12\xbc\x65\x18\x34\xa4\xd6\x14\xc8\xdf\xe5\x37\x51\xd5\x5a\x4e\x90\x87\x52\x58\x8e\x06\x7f\xba\xcf\x29\xf4\x4d\x69\xc9\x16\x61\xf2\x6f\x9a\x6c\x24\x3a\x18\x79\x83\x6d\x75\xc9\xea\x96\xfc\x0e\x36\x56\x6b\xbb\x43\x15\xbb\x08\xc9\x0f\x1c\x8a\xb4\x02\xc8\xf3\x1c\xbf\xe1\xff\xe0\xbf\x32\x14\xfb\x35\x7b\xc9\xb2\x5b\x53\xda\x6c\xd2\xcd\xfc\x89\x33\x9f\x65\x69\x33\xf8\x7f\x84\x03\xbc\x33\x18\xe2\x0a\xf5\x46\x15\x24\x0e\xcd\x5d\x48\x36\xff\x60\x8c\xd1\x71\x9b\xd6\x40\xc8\x25\xec\xa7\x7b\xb9\x2f\x6c\xb5\xb6\xaf\xd8\x4f\xc1\x1c\xaf\x72\x96\x86\x3f\xe2\x28\xa9\x75\xb7\x38\xa1\x60\xea\x32\xc5\xe0\x08\x94\x80\x8a\xad\x50\xa6\x4f\x4f\x8e\xed\xb6\xd2\xe0\xa5\x05\x35\x42\xb4\x0f\x66\x56\x1b\xd2\x67\x27\x8c\x67\xaf\xb5\x7f\x1a\xbc\x43\x3c\x48\x40\x3b\xff\xd5\x2a\x3f\xe8\x4b\x9a\x2a\x8f\xd9\x54\x32\x67\x5f\xc6\xa6\x63\x8c\xb1\x8c\xd6\xa3\xad\xae\xc5\x83\x9c\xfc\xd6\x2a\x3f\x18\xec\x09\xbb\x35\xa9\x67\xbd\xf3\xe8\x07\xa4\x6f\x6d\x9d\x53\x5d\xbe\x2e\x95\x0b\xa7\x34\xfb\x47\x92\xde\xe8\x8b\xeb\x3d\x45\x6e\x07\x81\x3c\x88\x7f\x2f\xf7\x79\x67\xa0\xfe\xd6\x31\xa1\xfd\xb7\xfb\xde\xe5\x3f\x61\x6f\x0e\xec\x4a\xfe\x35\x18\x7b\x8c\x82\xfe\x1e\x1e\x4b\xc1\x85\x35\x5e\x28\xe3\x58\x65\xc7\x5c\x3d\x9c\x2a\x16\x4c\xf2\x76\x5b\x55\x6c\x07\xb3\xb6\x4e\x4e\xd8\xba\xf5\x94\xdb\xc6\xc0\xad\xa6\xec\x52\x36\x92\x8c\x44\xb5\x6d\xf4\x04\xeb\xb7\x18\x2d\xf1\xdc\xe1\x66\xe1\x72\xe0\x9c\x12\xc9\x6d\xdd\x0d\xde\xda\x9d\xe9\x86\x57\xe2\x4e\x0e\xf3\xf8\x11\xf1\x7e\x95\x1b\xdf\x0d\x3f\x63\x7e\xeb\xc6\xd7\x98\x8a\xba\xf1\x85\x29\xe1\x9a\x72\xc8\x8d\x0d\xf3\xfd\xd7\xc8\xb9\xad\xbb\x01\x89\x0e\x43\x12\x1d\x86\x41\xf4\x17\xdb\x94\xe3\x28\x62\x8f\x8c\xf1\x9b\xd8\x1f\xec\x83\xfc\x55\x19\xe9\x6e\xeb\x71\x4c\x5b\xbc\x95\x5a\x7a\x39\x2e\x1c\xbf\x23\xb9\x9d\xbe\x9f\x36\xb8\x2e\xd6\xba\x9b\x79\x67\x9c\x6c\xfc\x47\xb9\xd3\xe3\xd7\x75\x2d\x0a\x09\x6f\x44\x71\xef\x68\x14\x04\xc3\xb9\xc4\x8e\xa1\xc3\xdc\x88\x35\xa0\xdf\x13\x79\xad\x75\xf8\x75\xc0\x95\x29\x89\x7c\x94\xdf\x3c\x0d\xae\x1a\xf9\xa0\x6c\xeb\x00\x93\x0c\x60\x5e\x81\x73\x5b\xef\xe1\xbc\x45\xeb\x7a\xd2\xe2\x6d\x5b\x6b\x55\x08\x2f\xc3\x17\xed\xd7\xa9\x57\x4a\xe3\x83\xda\xca\x1a\xf8\xd4\xfa\x74\xe2\x4a\x38\xdf\x9f\x0b\xd5\xf8\x54\x4b\xc3\x95\x96\x10\xae\x09\xaf\xa7\xbb\xfb\xe1\xd6\x2f\x85\xde\x74\x73\xfd\x30\x5c\x59\x64\xa8\xd1\x40\x37\xf6\xee\x4e\xcb\x4b\xa9\xeb\x6e\xf8\xb9\xd5\xb2\x81\x5f\xda\xaa\x26\xfe\xb9\x96\x02\x7d\xc5\xb7\x0e\xae\xb7\x52\xeb\x0f\xb6\x94\x70\x1e\xb2\x11\x8d\x31\x33\x10\x41\xfd\x5e\x97\x25\x9a\xae\x37\x0a\x8e\xd1\x52\xfd\xef\x75\xad\x95\x87\x5b\xe3\xe8\xf7\xf7\xf0\x79\x19\x7e\xfa\x35\xe1\x2b\x28\xf3\x41\x14\x8d\x85\x2b\x2d\xf6\x61\x34\xe4\x85\x90\x87\xfa\x90\xf2\x51\x44\x63\xcc\x0d\xf1\x43\x2d\x40\x9c\xf1\xba\x48\xba\xad\x81\x6c\x12\x3c\x8b\xfc\xe9\xb6\xee\x7e\x3a\x6f\xb3\x3b\x43\x13\x38\xe8\xe2\x26\x38\xc8\x91\xbd\x6d\x45\x06\xed\x3c\xa7\x77\x27\x32\xe9\xc5\x37\xe5\x83\x09\xe1\x5c\x98\x42\x6a\xb8\x6a\x94\xf1\x70\x25\x5a\x17\x5c\xd0\x8b\x35\xf0\x19\xf0\x39\xf0\x05\xf0\x25\xf0\x15\xf0\x53\xe0\x67\xc0\x9f\x03\x7f\x01\x7c\x76\x02\x7c\x36\x03\x3e\x9b\x03\x9f\x2d\x80\xcf\x96\xc0\x67\x2b\xe0\xb3\x53\xe0\xb3\x33\xe0\xb3\xe7\xc0\x67\x2f\x80\xcf\x4f\x80\xcf\x51\xce\x1c\xf8\x7c\x01\x7c\xbe\x04\x3e\x5f\x01\x9f\x9f\x02\x9f\x9f\x01\x9f\x3f\x07\x3e\x7f\x01\x7c\x71\x02\x7c\x31\x03\xbe\xc0\x0d\x17\xc0\x17\x4b\xe0\x8b\x15\xf0\xc5\x29\xf0\xc5\x19\xf0\xc5\x73\xe0\x8b\x17\xc0\x97\x27\xc0\x97\x33\xe0\xcb\x39\xf0\x25\x6a\xb6\x04\xbe\x5c\x01\x5f\x9e\x02\x5f\x9e\x01\x5f\x3e\x07\xbe\x7c\x01\x7c\x75\x02\x7c\x35\x03\xbe\x9a\x03\x5f\x2d\x80\xaf\xf0\x08\x2b\xe0\xab\x53\xe0\xab\x33\xe0\xab\xe7\xc0\x57\x2f\x80\x9f\x9e\x00\x3f\x9d\x01\x3f\x9d\x03\x3f\x5d\x00\x3f\x5d\x52\xef\x15\x62\x11\x47\xaf\x89\xbe\x21\x7a\x4e\xf4\x2d\xd1\x0b\xa2\x9c\xe8\xcf\x44\x2f\x89\xbe\x23\xfa\x0b\xd1\xf7\x44\x7f\x25\xfa\x81\xe8\x47\xa2\x9f\x88\x5e\x11\xfd\x8d\xe8\xe7\xb0\x2b\xd1\x1b\xa2\xb7\x44\x7f\x27\xfa\x85\xe8\x1f\x44\xbf\x12\xfd\x33\x48\x96\x1b\x7f\xfd\x57\x50\x10\xd3\x86\x16\x6e\x1b\xc4\xa1\x63\x74\x9c\x73\xd1\x08\x1f\x44\x9a\x52\x36\xae\xb0\x4d\x9c\x65\x30\x04\x2e\x5c\x81\xff\x45\x8d\x0e\x83\xbe\xd4\x55\xd3\xb7\x47\x55\x88\x85\x9e\xa3\x6d\x44\xd7\x4d\x1d\x14\xe7\xdb\x3a\x7b\xc9\xe2\x7f\x59\x5f\x1c\xb2\x49\x40\xa0\x6f\x26\x98\x6c\xac\x1a\x3d\x86\xd4\x8f\x41\x59\x54\x27\x7a\x10\x1e\xfe\x31\x41\x34\xdf\x61\xae\xb1\x59\x8d\x75\xca\xfa\xa2\x91\x20\x62\x9d\xb2\xb1\x9a\x24\x98\x78\xbb\x6c\x2c\x33\x09\x26\xd6\x3b\x8b\xea\x4f\x0f\x7a\xad\x7d\xaa\x75\xd6\x97\x8d\x08\x91\x1e\x3e\x1b\x0a\x4d\x04\x49\x37\xcb\x0e\x4a\xd9\x21\x70\xd8\x32\x4b\x6b\x5c\x84\x4b\xaf\x2d\x8b\x8a\x5f\x04\x4a\x6f\x2e\x4b\xaa\x62\x0f\xeb\xbd\x72\xd4\x3f\x4a\xef\x31\x28\x39\x65\x36\xe4\xfd\x18\x92\x28\x9f\x3d\x52\x57\x8f\xc0\xbd\xd0\xec\xa8\xe0\xc6\xd0\xe4\xb0\x59\xd4\x75\xc4\xa0\xe4\xb0\xd9\xd0\x8e\x1c\x6d\xd9\x0b\x4b\xf5\x3b\x82\xf5\xe2\x62\xcd\x7a\x10\x85\x5c\x62\xff\xa4\x3b\x18\x3c\x0c\xc3\xf5\x11\x58\x98\x8f\x36\xbc\x4c\x40\x43\xa4\xf7\x90\x71\xe2\xe5\xf7\x20\xd8\x62\x27\x92\xb2\xb4\xc9\x89\x71\x89\xb8\xef\xe0\x6e\xc4\x3a\x4d\x0b\xd9\x41\x83\x31\x19\xba\x9b\x58\x4b\x1f\x2f\xcb\x0e\x7b\x90\xf8\xc8\x9f\x92\x23\xf7\xcd\x48\x72\x0b\x09\x02\xbb\xa6\x98\xcb\x13\x2e\xb6\x4f\x31\xf7\xe3\x11\x17\x7b\x86\x18\x71\x75\x84\xe8\xbb\x86\x18\xf5\x67\x82\xea\xfe\xf8\x1b\xb8\x5f\x13\x2e\xfd\x21\x18\x71\xcf\xd3\x74\x68\xeb\x7d\xcc\xfd\xe3\x20\x59\x26\xca\xbd\x3f\x64\x1e\x06\xc4\xdb\x04\x90\x34\x85\x31\xec\xf7\x04\x46\x1d\x60\xcc\x7e\x9d\x5a\xb8\x6f\x0d\x63\xc8\x4d\x02\x09\x3d\x59\xe4\x4b\x93\x34\x9d\x47\xcd\x5a\x04\x9a\xa6\xa0\xae\x8b\xeb\x01\xd8\xf4\xa4\x80\x47\xf2\x05\xc6\x5e\xea\x8e\x8f\xe6\x89\x44\xd6\xf7\xf2\x44\x22\xeb\x38\x4f\x84\xa6\xec\x38\xdf\x74\xf3\x11\xea\xb1\x84\x33\xcc\x47\x1b\xfe\x9c\xd8\x70\x6c\x93\x93\xe4\xfa\x08\x86\xfa\xe7\x24\x4d\x27\xa0\xbe\xb1\x1e\xca\x34\x05\x72\xac\x78\x37\x13\x49\x78\x93\xde\x78\xdf\x85\xc7\x90\xdf\x12\x08\xfd\xb1\x1e\x1b\xef\xc0\xa9\x87\xe6\x3d\x06\x7d\x49\x40\x43\xb7\x9e\x64\xf4\x47\xce\x4b\x8d\x79\x0c\xfa\x25\x75\xdf\xbe\x77\xcf\x26\x40\x98\x67\xcf\xd8\x45\x25\x0a\xf7\xd4\xf9\x7d\xe8\xd0\x87\xe7\x64\xd6\xe7\xba\x0d\xd6\x96\xc7\xea\xec\xd3\x75\xcf\x39\x4c\x8f\x82\xca\xd1\xb1\x0f\x22\x0f\xcd\x7b\xec\x7a\xc8\x41\x8f\x39\xea\x9c\x90\x61\x46\x46\xe7\x18\xbd\xf2\xef\x8c\x97\x77\xa1\x2d\x0b\xaf\x73\xf4\x20\x5c\x09\x23\xee\x64\xd3\x9d\x81\xcf\x28\x49\x1f\x3b\x0d\x9f\x87\xe2\x14\xa5\x45\xbe\xa0\xa9\x38\x17\xf2\x25\x4d\xc5\xb7\xc8\xcf\x8e\x51\xb3\x13\x54\x32\x46\x5d\xb8\x82\x8e\x4a\x2d\x66\x36\x19\x9e\x6b\xb8\x32\x42\x33\x63\xbd\x74\xf0\xd1\x7a\xf9\x92\x7d\x32\xcc\xd9\x4a\x32\xab\x4b\xe6\x65\x53\x11\x40\x56\xad\x16\xde\x36\xe1\x71\xc3\x1a\xf6\x45\x99\xd2\xee\x1c\xab\x44\xb1\xc5\x0e\x64\x12\x9e\xea\x2e\x73\xe6\xb6\xf4\x3a\xb7\xa6\x17\x99\x12\x36\xb6\x61\xeb\xbe\x40\x4d\x01\xff\x0c\xa4\xe7\x34\xa1\xf5\x7e\x32\x3e\xc6\xd2\x5f\x61\xb2\x7b\x2e\xa4\x37\x1f\x6c\x75\x73\x34\xf8\xbd\xdc\xe7\xc9\x63\x56\x98\x16\x39\xd8\x26\x0c\x6f\xeb\x7c\xca\xc2\x63\xb0\x6b\xeb\xda\x36\x1e\xf5\x64\xb6\x0e\x1b\xb1\xfc\x69\xce\xd6\xd2\xef\xa4\x34\xac\xb2\xa5\xda\x28\xd9\xb8\xf0\xbc\x85\xeb\xf3\xf1\xa9\x31\x07\x67\x7b\xf1\xdd\x33\x23\x3d\x84\xee\x1a\xe5\xbd\x34\x4c\x38\xe2\x8a\x9c\xfd\x50\x08\x87\x97\xeb\x3d\xca\xc2\x53\xe2\x59\x7a\x87\xfd\x71\xca\x6e\xb6\xca\x31\xe5\x60\xb7\xdd\xf7\x4f\x54\x8f\x3d\x29\x0d\xaf\xdb\x32\x28\x33\xb4\x5c\x39\x53\xc6\x79\x29\xe8\x31\x98\x54\x8a\x58\xf0\x03\xbd\xb8\x8b\x46\x32\xf9\x57\xab\x1e\x84\x96\xc6\xff\x38\x85\x7f\x07\x00\x00\xff\xff\xa8\x3e\xf1\x83\x85\x19\x00\x00") func runtimeHelpKeybindingsMdBytes() ([]byte, error) { return bindataRead( diff --git a/cmd/micro/tab.go b/cmd/micro/tab.go index bbdd7eb0..941e787a 100644 --- a/cmd/micro/tab.go +++ b/cmd/micro/tab.go @@ -89,13 +89,17 @@ func TabbarString() (string, map[int]int) { } else { str += " " } - str += t.views[t.CurView].Buf.GetName() + buf := t.views[t.CurView].Buf + str += buf.GetName() + if buf.IsModified { + str += " +" + } if i == curTab { str += "]" } else { str += " " } - indicies[len(str)-1] = i + 1 + indicies[Count(str)-1] = i + 1 str += " " } return str, indicies diff --git a/runtime/help/keybindings.md b/runtime/help/keybindings.md index 70246e1a..19aea820 100644 --- a/runtime/help/keybindings.md +++ b/runtime/help/keybindings.md @@ -88,6 +88,7 @@ Delete Center InsertTab Save +SaveAll SaveAs Find FindNext