diff --git a/cmd/micro/buffer.go b/cmd/micro/buffer.go index 31d2be4d..ac47e9e8 100644 --- a/cmd/micro/buffer.go +++ b/cmd/micro/buffer.go @@ -184,6 +184,10 @@ func NewBuffer(reader io.Reader, size int64, path string) *Buffer { file.Close() } + if b.Settings["mouse"].(bool) { + screen.EnableMouse() + } + b.cursors = []*Cursor{&b.Cursor} return b diff --git a/cmd/micro/micro.go b/cmd/micro/micro.go index 483d74e7..aebeaf8d 100644 --- a/cmd/micro/micro.go +++ b/cmd/micro/micro.go @@ -198,7 +198,6 @@ func InitScreen() { } screen.SetStyle(defStyle) - screen.EnableMouse() } // RedrawAll redraws everything -- all the views and the messenger diff --git a/cmd/micro/runtime.go b/cmd/micro/runtime.go index 44f94eff..f7b144fb 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\xdb\x8e\xdc\x36\xd2\xbe\xb6\x9e\xa2\x60\x07\x98\x99\xa0\x47\x13\xe4\xf7\x45\xd0\x37\x3f\x9c\x78\xd7\x09\x90\x13\x12\xef\x22\xc1\x66\x11\x52\x52\x49\x62\x86\x22\xb5\x24\xd5\x3d\x72\x90\x7d\xf6\x45\x15\x49\x49\xdd\xd3\x1e\xfb\x6e\x9a\x22\xeb\x5c\x5f\x1d\xe6\xc5\x8b\x17\xf0\xc3\x18\x94\x35\xbe\x28\xbe\x53\xb5\xb3\xe0\x83\x75\xe8\x41\x6a\x0d\xb6\x85\xd0\x23\x4c\x1e\x1d\xd4\xd6\xb4\xaa\x9b\x9c\xa4\xcb\xa0\x0c\xa8\xe0\xcf\x0e\x1b\xe5\xb0\x0e\xd6\xcd\x65\xa6\x35\x79\xf4\x4c\x42\x7c\xf2\xcb\xeb\x37\xbf\x7f\xf5\xc3\xf7\x7f\xff\xe6\xcd\xef\x5f\xff\xf0\xdd\xdf\xee\x06\xba\x20\x40\xc6\xef\xef\x23\x04\xaf\x3c\x8c\xe8\x0a\xba\xf3\xcb\xeb\x37\xe0\x47\xac\x77\xa0\xda\xc7\x04\x05\x28\x0f\xc6\x06\xf0\x18\x76\x20\xfe\x7b\x57\x46\x9a\x99\x91\xf2\x24\x4d\x43\x0c\x8b\x95\xe3\x89\xcc\x5f\xa3\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\x72\x1e\x0d\xd9\x90\xa9\x0a\x00\xf8\xe4\x3a\x72\x7c\xad\xdc\xcd\xdd\xe6\x9a\xbf\x13\x91\x95\x28\x59\x52\xba\xfb\xb6\x57\x9e\x78\x05\x65\x3a\x12\x5c\x74\xda\x56\x52\x83\x35\x7a\x16\x65\x51\x3c\x6b\xb0\x95\x93\x0e\x70\x90\x7a\xc2\x3d\x88\xf4\x5b\x14\xcf\xbe\xb7\x01\xa3\xcc\x24\x4e\xbe\xb7\xe5\x07\xd7\xe9\x74\x07\xde\x6a\xe9\xd4\x3b\x6c\x76\x20\x4d\xb3\xfe\xbc\x0d\xf5\x4d\xf1\x8c\x2c\x41\x06\xd5\xb6\x96\x21\x2a\xb2\xa8\xb0\x83\x0a\x6b\x39\x79\xb6\xd5\xcc\x46\xc3\xa1\xc2\xa6\x89\xf7\x88\x37\x6b\x03\x95\x32\x92\x8d\xfb\xec\xed\x99\x79\xc8\x9e\x15\x82\x47\x8d\x35\x91\x6f\x9d\x1d\x38\xea\xe8\x71\xab\x34\xfa\x4c\xa9\x78\x76\xe6\xcd\x53\xfb\x6d\xc3\x25\x86\x5d\x6d\x49\xcf\x6a\x5e\xf4\x3f\xaa\xd0\x43\xe8\x1d\x62\xf1\x6c\xfb\x76\x5f\x90\xb9\xe1\xd7\xe4\x5e\x87\xb2\x81\xc1\x52\x14\x54\x76\x0a\x51\x85\x2b\x7f\x6a\xbe\x24\x54\x0a\x01\x01\x3d\xea\x11\x82\x1d\x55\xcd\xb4\xae\x05\x1f\xa4\xaf\x37\xe5\x1a\x2e\xb5\xd5\xd3\x60\xc4\x9e\xc2\x37\x90\x87\xd7\x80\x85\x60\xe1\xb3\x1d\x28\x92\x54\x6b\x68\x94\x1f\xb5\x9c\x41\x42\x7c\x03\xc9\x9d\x14\xfd\xaa\x55\xd8\x10\xa7\xf8\xa9\x8c\xc1\x12\xa3\xbb\x9d\x34\x11\xa7\x68\x3d\x4a\x13\xf2\xeb\x2f\x3e\x23\xfa\x15\x42\xaf\xba\x5e\xab\xae\x27\x73\x33\x2d\xa9\xa1\xb5\x0e\xf0\x41\x0e\xa3\xc6\x4b\x91\xf5\x99\x60\x05\xd0\xb6\x06\x8f\x5a\x19\x0a\xf7\xe8\x59\x96\x54\x4e\xc1\x0e\x32\xa8\x5a\x6a\x3d\x83\x6c\x1a\x90\x90\x2e\x12\xcf\xec\xca\x4b\x94\x5b\xa9\x3d\x46\xea\x6e\x08\x4e\x2a\xad\x4c\x77\xf4\x4f\xd1\x0f\x4e\x0d\x90\xaf\xc2\xb1\x57\x01\xfd\x28\x6b\x42\xab\x00\x68\xf5\x07\xd8\x04\x59\x79\xf5\x8e\x34\xf0\x18\x62\xbe\x06\x59\x01\x9d\x91\xb0\x39\x0f\x2f\x10\x79\x19\x09\x28\xd3\xa0\x09\x75\x2f\xdd\x96\x46\x3c\x8d\xc8\x45\xdf\x64\x1d\xd0\x5d\x20\x02\x99\x48\x6b\x2b\xa6\x80\x46\x56\x3a\x01\x24\x5b\x2c\xb9\xb9\xb2\x21\xd8\x21\xa3\x2f\x36\x2a\x58\x07\xc7\x9e\xd0\x69\x40\xef\x65\x47\x0a\x3b\x84\xd1\x29\x13\xb0\x29\x17\xc8\x88\x0a\x7c\x14\x62\xb0\x9e\x9f\x82\x20\xef\x84\x79\x3c\x31\x4a\x3e\xe3\xd8\x60\x54\x9b\x9c\x43\x13\xa0\x9a\xda\x16\x5d\xf9\x18\x9f\x08\x22\x12\xb3\x98\x51\x67\xec\x38\xdc\xd9\xa1\x15\x9e\xf9\x94\xa2\xbf\xc1\x11\x4d\x43\xc4\xac\x59\x24\xe0\x30\xee\xe5\x81\xa0\x18\x4d\x34\x5d\x67\xac\xc3\x5a\x7a\x12\x77\x44\xd7\x5a\x37\x00\xfd\xbc\x55\xc6\xa3\xf1\x2a\xa8\x03\x21\x8a\x74\x75\x8f\xfe\x92\xd6\x6d\x1b\xd5\xf6\xb3\x09\xf2\x41\xec\x21\x4c\xce\x78\x88\x3f\x89\xbb\x75\x60\xdb\xf6\x09\x83\x51\x10\x05\x1b\xc3\x4e\xec\x29\xeb\x20\xc5\xa0\x32\x3e\x10\x80\x90\xdf\x64\xf5\x24\xfb\x20\xab\xc1\x1e\x70\x40\x13\xc4\x1e\x8c\x3c\xa8\x4e\x86\x85\x50\x0e\x03\xec\x94\x31\x6c\x95\x96\xe3\xc3\x53\xf1\x62\xf0\x48\x90\x4b\x6c\xe0\x1a\xcb\xae\x04\x22\x07\xf6\x80\x0e\x5e\x6e\xc8\x58\x53\xe3\xcd\xa3\xf8\x20\x3f\x41\x63\xe9\x8a\x99\x43\xcf\x4e\x6c\xcf\x34\x23\xb7\x5a\x53\x5e\xf4\xe6\xaa\x07\xb9\x32\x86\xbf\xd8\x53\x84\x1a\xa8\x1d\x4a\x0e\x0b\xc6\x81\x18\xd6\xa9\x4c\x80\x97\xc3\x69\xb6\xa4\xe2\x4f\x3c\x46\x87\x07\x65\x27\xcf\x2f\x9e\x30\x7f\x3d\x39\x6f\x5d\x02\xa2\x05\xcf\xd6\x14\x5a\x4a\x5f\xbc\x18\xd5\x20\xcc\x96\xd0\x28\x8a\x5e\x34\xa9\x1c\x12\xd7\xeb\xa5\x66\xd3\xc5\x06\x5b\x65\xb0\xa1\xc2\x71\x5e\xcb\x29\x16\xc9\xe2\x93\x57\xa6\xbb\x79\x42\x3e\x37\x69\xa4\xdc\xce\x10\xce\x42\x99\x69\xa8\xd0\x5d\x8c\x88\xf4\xcc\x07\x19\x26\x9f\xd4\xca\x6f\xd9\x66\xfc\xe1\x09\x78\xf0\xb5\x43\x4a\x8f\xf7\x93\x96\x07\x8c\xc6\x10\x7b\x70\x38\x50\x9d\xce\x70\xb2\x31\xd4\x51\x7a\xd0\xd2\x07\x08\x6a\xc0\x35\x09\xe9\x98\xf2\x8f\x3a\x27\xc3\x75\x67\x9c\x02\x15\xaa\xc0\x04\xd8\xe7\x64\x1c\xba\xb3\xbe\x92\x9d\x54\x17\x65\x5a\xf2\x4f\x1e\x70\x32\x8d\xcd\x61\x13\x4e\xe1\xcb\x9a\x1d\xd0\x67\xfa\x9b\xae\x36\x80\x07\x34\x20\xdb\x80\x2e\x36\x63\xda\x7a\x04\xc9\xdc\x48\x28\x6f\x73\xe1\x4b\x5f\x4c\x03\x0e\x59\xa8\x78\x69\xb7\xf4\x70\xf7\x88\x23\x13\x57\xa6\x7b\x52\xc4\xda\x59\xad\x07\xe9\x3a\x45\x45\x5b\x0e\x76\x32\x61\x4d\x45\x2e\xb2\x76\xd2\x0d\x68\x75\xcf\xf5\xc3\x23\xf7\x0d\x87\xc8\xbd\x42\x6d\x8f\x1b\x03\x5f\x60\xf5\x7f\x5b\x46\x7e\x44\x6c\x2e\xf0\x21\xc2\x7c\x81\xd1\xd8\x1a\xcc\x3f\xc9\x22\xe1\x02\xd5\xcf\x13\x55\xdb\x86\xa3\x93\x23\x01\x7b\xcf\x72\xa6\xb2\xea\xe4\x98\x49\x53\xae\x30\x8e\x58\x0b\xda\x9a\x8e\x98\xb5\x2a\x64\x14\x7e\x7f\x68\x2d\x36\x1a\xb5\x0a\x3f\x51\x06\x66\x47\x4a\x38\xa0\x63\x6c\x07\xfe\x48\x1e\x64\x4c\xa0\x26\x33\x09\xa2\x02\x95\x81\x74\x9a\xdb\x04\xc7\x79\x6c\x5b\xf2\xe6\xb6\xe6\x30\x95\xff\x7f\x2a\xbe\xe9\xc2\x97\x9c\x13\xab\x10\xbd\x75\xea\x9d\x35\xe1\xe3\xc5\x58\xfc\xc5\xbd\xd5\xc7\x32\x27\x00\xa4\x00\x3d\xed\x5a\xe8\x24\xa6\x2a\x17\x4c\x72\x95\x9b\xe1\x0b\xf0\x58\x5b\xd3\xf8\xd3\x0a\xc8\xf0\x1c\xfb\x56\xa9\xfd\xc5\xbe\x87\xe9\x51\x50\xfd\x67\xa2\x16\x31\xe7\x1c\x3e\xa8\xd8\xda\x52\xaf\x2a\xfd\xbd\x32\x1d\x13\xfb\x92\x9a\x6b\xc7\xdd\x20\xdf\x65\xd0\x8a\x29\xd6\xa2\x0c\x93\xc3\xb5\x7d\x27\x3a\x03\x9b\x5e\xd6\xb5\x62\x68\x5e\x39\xc6\xcc\x21\x92\x54\x59\x8e\x4e\x85\xd8\x77\xc9\xc0\xb8\x10\x21\xa0\xc2\xd6\xba\x8b\x1d\xde\x12\x26\xa3\x9e\x3a\x65\xea\x5e\x1a\x83\x9a\xaa\x66\x4d\xae\x51\xc6\x2f\xfd\x7e\xfe\xb6\xb4\xdc\xf1\x09\x0c\xd2\xc8\x8e\xe0\x8a\xcd\xca\x85\x9d\xc4\xa1\x54\x88\x37\xa8\xec\x96\xf0\x2a\x13\x60\xc0\x50\xc3\x48\xcd\x28\x68\xe5\x39\x91\xae\x1c\x8e\xd6\x53\x17\x35\x5f\xc1\x1f\xde\x9a\x34\x5e\x1c\x7b\x55\xf7\x59\x16\x22\x3b\x60\x90\x8d\x0c\x32\xb5\xff\x24\x58\xa7\x08\x78\x22\xaf\x12\x7e\xc6\xe8\x57\xf1\x63\x14\xef\xbb\x28\x9e\x20\xcf\xc6\xd2\x1a\x41\x39\x69\xfc\x68\x3a\x20\xb9\x79\xbe\xa0\x26\xd0\x0d\x5c\x05\x2f\x59\xae\x0f\x61\xf4\xfb\xbb\xbb\x4e\x85\x7e\xaa\xca\xda\x0e\x71\xf0\xb9\x8d\xcd\xe0\x5d\x24\x7f\x9b\x94\xde\x1a\x99\x55\xbd\x64\xe1\xd5\x08\x0a\xfd\xd5\x47\xd8\x99\x84\x65\xbc\x3f\xb1\xf3\x6a\x4a\x62\xe1\x95\x0f\x9e\x94\x96\x20\xe8\x4b\x49\xd6\x15\xa9\x72\x6c\xad\xeb\x57\xdb\x92\x0d\x24\x63\xb6\x32\x9d\xc6\x6c\xdb\xf7\x37\xcc\x93\xc7\xd1\xa9\x41\xba\x59\xc0\x35\xf7\x2e\x69\xd4\xb1\x06\xbe\x55\x66\x7a\xb8\xd9\xa7\xd2\x4d\x2e\x45\x8a\x4a\x6a\xe3\x68\xb4\xda\xe4\x64\x6e\x42\x12\x29\xa8\xb5\x1a\x2b\x2b\x1d\x03\x50\x6d\xc7\x39\x4d\xa2\xbc\x0a\x01\xc8\x63\x5e\x25\xeb\xfb\xce\xd9\xc9\x34\xa9\xed\xe5\xbe\x89\x68\xcb\xb6\xc5\x3a\x06\x89\x21\x5f\xea\x0d\xc9\x98\x71\x5f\x05\xa7\x6f\xbf\xe2\xc4\xe5\x3f\xff\xf9\x54\x23\x4e\x65\xe9\x71\x3b\x15\x09\xad\xe7\xbb\xcd\xd4\x43\xb1\x2e\x79\xe2\x26\x93\xce\x76\x2a\x4f\xba\xbc\x06\x03\xba\x81\xad\xa2\x18\x55\x17\xdc\xe0\x5e\x31\xc1\xae\xc1\x87\x10\xbb\x8b\x05\x48\xcc\x4c\xad\x2c\xa1\x78\xdc\x7f\xe0\x96\x67\xc8\xc9\x1f\x39\x27\x28\xad\x10\x1a\xd4\x98\x87\x91\x2f\xd7\xc9\x9b\x9e\xaf\xe2\x9f\x49\x9f\xde\xa4\x9e\x36\x89\x41\x7d\x08\xb6\x01\x70\x18\xc3\xfc\xa1\x06\x94\x54\x0c\x2a\x68\x6e\x9b\x2e\xc7\xc0\x6c\x27\x07\xd1\x14\x52\x5f\x79\xe0\xeb\xcb\x30\x42\xe3\x47\x35\xe7\x40\x21\x0b\xc5\x6e\xe7\x49\xc6\xb7\xb7\xb7\x45\xf1\x3a\x7d\x4a\x19\x94\xf6\x45\xfb\xa5\x2c\x70\x23\x22\xf6\xf0\xea\x04\xca\x63\x7b\x22\xfe\xfc\x4b\x80\xb8\xbe\x11\x20\xfe\xf5\x6f\x01\xe2\xf9\x73\x01\xe2\xea\x4a\x94\xf0\xa3\xb3\x07\xd5\xac\x4d\xe8\x86\x54\xe2\xf4\x44\x0c\x69\x9a\x07\xdd\x23\x9e\x74\x9c\xdb\xac\xd4\xa0\xe5\xbe\xea\x02\xc3\x44\xe4\xc3\xdc\xda\x90\x74\x16\xfb\xcd\xae\x65\x77\x52\x08\x31\x80\xb7\xc3\xba\x4d\xab\xa4\xc7\x66\x3b\xe5\xd1\x9c\x59\xc2\xab\x18\x28\x83\x1d\x38\xc6\x57\x0a\xe4\x04\xce\x5c\x9a\x74\x18\x3d\xe5\x3d\x46\xf4\xe6\x8d\x55\x9c\x74\xb8\x1c\xcc\xa1\x5f\x90\xdd\x61\x27\x5d\xa3\xd1\x33\x38\x71\x04\xa4\x71\xd5\x97\xf0\x4d\xfb\xb8\x79\x23\x3e\x8d\xf2\x34\x8f\xc7\x42\x59\x61\x2f\x0f\x8a\xe6\xdf\xc9\x9d\xb6\xa7\xb6\x6d\x3f\x34\x50\x47\x6c\x17\x69\xee\xdd\x24\x22\x97\xce\x7b\x65\x9a\xdc\xdf\x41\x9c\x7b\xfd\x39\x52\xe5\xc9\x9b\x97\x27\xf0\x0f\xa3\x1e\x4e\xae\x93\xb8\xd4\xb8\xfd\x31\xf9\x00\xe2\x37\x23\xe0\x5a\xb7\x37\xb1\xa9\x97\x84\x51\xfe\x94\x3a\xdd\x15\xbf\x39\xbe\x58\x3b\xdd\xde\x10\x54\x20\x84\xa3\x85\xd1\x7a\xaf\x48\x6d\x56\xc4\x27\xce\x8b\xba\x99\x93\x98\x8c\x7a\x10\x6c\x74\xd1\x58\x2f\x22\x81\x55\xd9\xf7\x4c\xf7\xa4\x3b\x6f\xf7\xe8\x61\x9a\x6b\xd6\x00\x58\xa7\x1e\xa8\xa6\x10\x3b\xbf\x93\x39\xe0\x6c\xa7\x75\xd2\x6e\x53\xf1\xeb\x70\x05\x8e\xac\x2b\xcd\x72\xed\x32\xb0\xf9\x20\xdd\x66\x1e\x4d\xcb\xa8\x4b\xa9\xcd\x0a\x16\xc5\x2b\x33\x67\x01\x88\x06\x45\x70\x2a\x05\x79\x11\x93\x91\x83\xe7\x92\xcd\x92\x0b\x8a\xf3\x35\xe5\x12\x73\xdc\x74\x78\xbb\x23\x52\xc8\x75\x63\x17\xa3\xf2\x74\xef\x1d\xeb\x66\xa2\x5f\xe4\xce\x74\x41\xf7\x18\xb8\x57\xab\x09\x82\xbc\xc7\x4b\x74\x78\xdd\x49\xd2\x07\x0b\xd2\x58\x42\xc3\x62\x90\x75\xaf\x0c\xee\x72\x7b\xc4\x25\x8f\x9d\x70\x22\x64\xd2\x87\xdf\x40\x7a\x53\x16\xc5\x0b\x78\x13\x17\x4a\xe4\xc7\xb8\xed\xc9\xef\x8a\xe2\xd7\x75\x3b\x4e\x8f\xfd\x4a\x13\x50\x31\xa1\xb8\x8d\xd2\x33\x39\x87\x5f\xeb\xb9\x84\x6f\xe3\x1f\x30\xa0\xcc\x7b\xf6\x8d\x3c\xc5\xd1\x9a\xab\x70\x62\xe8\xf3\xa5\xfe\xa9\x7d\x63\x70\x32\x99\xbc\x47\xe5\x66\x21\x81\xbc\x32\xc5\xa5\x55\xd6\xcf\x69\x8b\x25\x33\x82\xaf\xb2\x2a\xbf\xdd\xa1\xc7\x15\xf9\x82\x6a\xeb\xbf\x08\x0a\x65\xb8\xc9\x8a\x14\x7d\x59\x14\x6f\xd7\xf5\x70\xfc\x0f\xc1\x26\xa2\x37\x7b\xb9\x5d\x12\x18\x37\x5b\xb8\xcd\xcd\x75\xa7\x56\xc2\x5b\x5b\x10\xd3\x55\xc8\x64\xc4\x1d\x83\x85\xf0\x18\xf8\x40\x6c\x77\x50\x74\x2a\xca\xa2\xf8\x26\xed\xab\xcf\x8c\xb5\xac\xd8\xc8\x73\x3c\x78\xd0\x60\x4f\x5c\x32\x56\x27\x1e\x84\xed\x71\xf1\x3c\xc7\x3c\x22\x15\xca\xf8\xcf\x12\xea\x40\x4c\x5e\x1f\xa7\x8e\xaf\x97\xfe\x7c\x97\x44\xa1\x4d\x5d\x1f\x0d\xb1\x8c\xcf\xf8\x50\xe3\x18\xe0\x8d\x8d\xbf\xd9\x12\xc5\xb2\x9f\x85\x97\x97\xaf\xff\x34\x55\x73\x3c\xd9\x17\x85\x10\x82\x14\x29\xfe\xe4\x64\x7e\xfe\x69\xd9\xd9\xe7\x7b\x88\xbf\xf8\x64\x2b\xc2\xf3\x3d\xf0\x1e\x98\xbf\xfe\xb5\xcb\x4f\x5c\xf5\xf8\x89\x7a\x87\xcf\xf7\xf0\xf9\xc9\xcd\x33\x52\xc1\x4d\xb8\xf9\x12\x5f\xbc\x2c\xfe\x22\x99\x8a\xe2\x95\xdf\xfc\xbb\x08\x21\xce\x9e\x34\xb8\x21\xa0\xf4\x73\xdc\x14\x3c\xb6\x72\x1e\xd2\x2e\x7b\xaa\x2c\xfe\x17\x00\x00\xff\xff\xc5\x21\xe4\x9b\xaa\x1b\x00\x00") +var _runtimeHelpOptionsMd = []byte("\x1f\x8b\x08\x00\x00\x00\x00\x00\x00\xff\x8c\x59\x5b\x8f\xdc\x36\xb2\x7e\xb6\x7e\x45\xc1\x0e\x30\x33\x41\x8f\x26\xc8\xf1\x43\xd0\x2f\x07\x4e\x7c\x8e\x13\x20\x37\x24\xde\xdd\x04\x9b\x45\x48\x49\x25\x89\x19\x8a\xd4\x92\x54\xf7\xc8\x41\xf6\xb7\x2f\xaa\x48\x4a\xea\x9e\xf6\xd8\x6f\xdd\x12\x59\xf7\xfa\xea\xa2\x17\x2f\x5e\xc0\x0f\x63\x50\xd6\xf8\xa2\xf8\x4e\xd5\xce\x82\x0f\xd6\xa1\x07\xa9\x35\xd8\x16\x42\x8f\x30\x79\x74\x50\x5b\xd3\xaa\x6e\x72\x92\x0e\x83\x32\xa0\x82\x3f\x7b\xd8\x28\x87\x75\xb0\x6e\x2e\x33\xad\xc9\xa3\x67\x12\xe2\x93\x5f\x5e\xbf\xf9\xfd\xab\x1f\xbe\xff\xff\x6f\xde\xfc\xfe\xf5\x0f\xdf\xfd\xdf\xdd\x40\x07\x04\xc8\xf8\xfe\x7d\x84\xe0\x95\x87\x11\x5d\x41\x67\x7e\x79\xfd\x06\xfc\x88\xf5\x0e\x54\xfb\x98\xa0\x00\xe5\xc1\xd8\x00\x1e\xc3\x0e\xc4\x7f\xee\xca\x48\x33\x33\x52\x9e\xa4\x69\x88\x61\xb1\x72\x3c\x91\xf9\x6b\x74\x08\xd2\x21\x4b\x64\xa3\x55\x20\xf4\x32\xc0\x6c\x27\xa8\xa5\x21\xda\xfb\xa2\xf8\x14\x44\x6d\xb5\x75\xbe\xee\x71\x40\xb1\x07\x6d\x65\x93\xf5\x58\x9e\x47\x43\x36\x64\xaa\x02\x00\x3e\xb9\x8e\x1c\x5f\x2b\x77\x73\xb7\x39\xe6\xef\x44\x64\x25\x4a\x96\x94\xce\xbe\xed\x95\x27\x5e\x41\x99\x8e\x04\x17\x9d\xb6\x95\xd4\x60\x8d\x9e\x45\x59\x14\xcf\x1a\x6c\xe5\xa4\x03\x1c\xa4\x9e\x70\x0f\x22\xfd\x17\xc5\xb3\xef\x6d\xc0\x28\x33\x89\x93\xcf\x6d\xf9\xc1\x75\x7a\xba\x03\x6f\xb5\x74\xea\x1d\x36\x3b\x90\xa6\x59\xff\xde\x86\xfa\xa6\x78\x46\x96\x20\x83\x6a\x5b\xcb\x10\x15\x59\x54\xd8\x41\x85\xb5\x9c\x3c\xdb\x6a\x66\xa3\xe1\x50\x61\xd3\xc4\x73\xc4\x9b\xb5\x81\x4a\x19\xc9\xc6\x7d\xf6\xf6\xcc\x3c\x64\xcf\x0a\xc1\xa3\xc6\x9a\xc8\xb7\xce\x0e\x1c\x75\x74\xb9\x55\x1a\x7d\xa6\x54\x3c\x3b\xf3\xe6\xa9\xfd\xb6\xe1\x12\xc3\xae\xb6\xa4\x67\x35\x2f\xfa\x1f\x55\xe8\x21\xf4\x0e\xb1\x78\xb6\xbd\xbb\x2f\xc8\xdc\xf0\x6b\x72\xaf\x43\xd9\xc0\x60\x29\x0a\x2a\x3b\x85\xa8\xc2\x95\x3f\x35\x5f\x12\x2a\x85\x80\x80\x1e\xf5\x08\xc1\x8e\xaa\x66\x5a\xd7\x82\x1f\xa4\xb7\x37\xe5\x1a\x2e\xb5\xd5\xd3\x60\xc4\x9e\xc2\x37\x90\x87\xd7\x80\x85\x60\xe1\xb3\x1d\x28\x92\x54\x6b\x68\x94\x1f\xb5\x9c\x41\x42\xbc\x03\xc9\x9d\x14\xfd\xaa\x55\xd8\x10\xa7\xf8\xaa\x8c\xc1\x12\xa3\xbb\x9d\x34\x11\xa7\x68\x3d\x4a\x13\xf2\xed\x2f\x3e\x23\xfa\x15\x42\xaf\xba\x5e\xab\xae\x27\x73\x33\x2d\xa9\xa1\xb5\x0e\xf0\x41\x0e\xa3\xc6\x4b\x91\xf5\x99\x60\x05\xd0\xb6\x06\x8f\x5a\x19\x0a\xf7\xe8\x59\x96\x54\x4e\xc1\x0e\x32\xa8\x5a\x6a\x3d\x83\x6c\x1a\x90\x90\x0e\x12\xcf\xec\xca\x4b\x94\x5b\xa9\x3d\x46\xea\x6e\x08\x4e\x2a\xad\x4c\x77\xf4\x4f\xd1\x0f\x4e\x0d\x90\x8f\xc2\xb1\x57\x01\xfd\x28\x6b\x42\xab\x00\x68\xf5\x07\xd8\x04\x59\x79\xf5\x8e\x34\xf0\x18\x62\xbe\x06\x59\x01\x3d\x23\x61\x73\x1e\x5e\x20\xf2\x32\x12\x50\xa6\x41\x13\xea\x5e\xba\x2d\x8d\xf8\x34\x22\x17\xbd\x93\x75\x40\x77\x81\x08\x64\x22\xad\xad\x98\x02\x1a\x59\xe9\x04\x90\x6c\xb1\xe4\xe6\xca\x86\x60\x87\x8c\xbe\xd8\xa8\x60\x1d\x1c\x7b\x42\xa7\x01\xbd\x97\x1d\x29\xec\x10\x46\xa7\x4c\xc0\xa6\x5c\x20\x23\x2a\xf0\x51\x88\xc1\x7a\x7e\x0a\x82\xbc\x13\xe6\xf1\xc4\x28\xf9\x19\xc7\x06\xa3\xda\xe4\x1c\x9a\x00\xd5\xd4\xb6\xe8\xca\xc7\xf8\x44\x10\x91\x98\xc5\x8c\x3a\x63\xc7\xe1\xce\x0e\xad\xf0\xcc\xa7\x14\xfd\x0d\x8e\x68\x1a\x22\x66\xcd\x22\x01\x87\x71\x2f\x0f\x04\xc5\x68\xa2\xe9\x3a\x63\x1d\xd6\xd2\x93\xb8\x23\xba\xd6\xba\x01\xe8\xef\xad\x32\x1e\x8d\x57\x41\x1d\x08\x51\xa4\xab\x7b\xf4\x97\xb4\x6e\xdb\xa8\xb6\x9f\x4d\x90\x0f\x62\x0f\x61\x72\xc6\x43\xfc\x4b\xdc\xad\x03\xdb\xb6\x4f\x18\x8c\x82\x28\xd8\x18\x76\x62\x4f\x59\x07\x29\x06\x95\xf1\x81\x00\x84\xfc\x26\xab\x27\xd9\x07\x59\x0d\xf6\x80\x03\x9a\x20\xf6\x60\xe4\x41\x75\x32\x2c\x84\x72\x18\x60\xa7\x8c\x61\xab\xb4\x1c\x1f\x9e\x8a\x17\x83\x47\x82\x5c\x62\x03\xd7\x58\x76\x25\x10\x39\xb0\x07\x74\xf0\x72\x43\xc6\x9a\x1a\x6f\x1e\xc5\x07\xf9\x09\x1a\x4b\x47\xcc\x1c\x7a\x76\x62\x7b\xa6\x19\xb9\xd5\x9a\xf2\xa2\x37\x57\x3d\xc8\x95\x31\xfc\xc5\x9e\x22\xd4\x40\xed\x50\x72\x58\x30\x0e\xc4\xb0\x4e\x65\x02\xbc\x1c\x4e\xb3\x25\x15\x7f\xe2\x31\x3a\x3c\x28\x3b\x79\xbe\xf1\x84\xf9\xeb\xc9\x79\xeb\x12\x10\x2d\x78\xb6\xa6\xd0\x52\xfa\xe2\xc1\xa8\x06\x61\xb6\x84\x46\x51\xf4\xa2\x49\xe5\x90\xb8\x5e\x2f\x35\x9b\x0e\x36\xd8\x2a\x83\x0d\x15\x8e\xf3\x5a\x4e\xb1\x48\x16\x9f\xbc\x32\xdd\xcd\x13\xf2\xb9\x49\x23\xe5\x76\x86\x70\x16\xca\x4c\x43\x85\xee\x62\x44\xa4\x6b\x3e\xc8\x30\xf9\xa4\x56\xbe\xcb\x36\xe3\x17\x4f\xc0\x83\xaf\x1d\x52\x7a\xbc\x9f\xb4\x3c\x60\x34\x86\xd8\x83\xc3\x81\xea\x74\x86\x93\x8d\xa1\x8e\xd2\x83\x96\x3e\x40\x50\x03\xae\x49\x48\x8f\x29\xff\xa8\x73\x32\x5c\x77\xc6\x29\x50\xa1\x0a\x4c\x80\x7d\x4e\xc6\xa1\x33\xeb\x2d\xd9\x49\x75\x51\xa6\x25\xff\xe4\x01\x27\xd3\xd8\x1c\x36\xe1\x14\xbe\xac\xd9\x01\xbd\xa6\xdf\x74\xb4\x01\x3c\xa0\x01\xd9\x06\x74\xb1\x19\xd3\xd6\x23\x48\xe6\x46\x42\x79\x9b\x0b\x5f\x7a\x63\x1a\x70\xc8\x42\xc5\x43\xbb\xa5\x87\xbb\x47\x1c\x99\xb8\x32\xdd\x93\x22\xd6\xce\x6a\x3d\x48\xd7\x29\x2a\xda\x72\xb0\x93\x09\x6b\x2a\x72\x91\xb5\x93\x6e\x40\xab\x7b\xae\x1f\x1e\xb9\x6f\x38\x44\xee\x15\x6a\x7b\xdc\x18\xf8\x02\xab\xff\xd9\x32\xf2\x23\x62\x73\x81\x0f\x11\xe6\x03\x8c\xc6\xd6\x60\xfe\x4b\x16\x09\x17\xa8\x7e\x9e\xa8\xda\x36\x1c\x9d\x1c\x09\xd8\x7b\x96\x33\x95\x55\x27\xc7\x4c\x9a\x72\x85\x71\xc4\x5a\xd0\xd6\x74\xc4\xac\x55\x21\xa3\xf0\xfb\x43\x6b\xb1\xd1\xa8\x55\xf8\x89\x32\x30\x3b\x52\xc2\x01\x1d\x63\x3b\xf0\x4b\xf2\x20\x63\x02\x35\x99\x49\x10\x15\xa8\x0c\xa4\xa7\xb9\x4d\x70\x9c\xc7\xb6\x25\x6f\x6e\x6b\x0e\x53\xf9\xdf\xa7\xe2\x9b\x0e\x7c\xc9\x39\xb1\x0a\xd1\x5b\xa7\xde\x59\x13\x3e\x5e\x8c\xc5\x5f\xdc\x5b\x7d\x2c\x73\x02\x40\x0a\xd0\xd3\xae\x85\x9e\xc4\x54\xe5\x82\x49\xae\x72\x33\x7c\x01\x1e\x6b\x6b\x1a\x7f\x5a\x01\x19\x9e\x63\xdf\x2a\xb5\xbf\xd8\xf7\x30\x3d\x0a\xaa\x7f\x4f\xd4\x22\xe6\x9c\xc3\x07\x15\x5b\x5b\xea\x55\xa5\xbf\x57\xa6\x63\x62\x5f\x52\x73\xed\xb8\x1b\xe4\xb3\x0c\x5a\x31\xc5\x5a\x94\x61\x72\xb8\xb6\xef\x44\x67\x60\xd3\xcb\xba\x56\x0c\xcd\x2b\xc7\x98\x39\x44\x92\x2a\xcb\xd1\xa9\x10\xfb\x2e\x19\x18\x17\x22\x04\x54\xd8\x5a\x77\xb1\xc3\x5b\xc2\x64\xd4\x53\xa7\x4c\xdd\x4b\x63\x50\x53\xd5\xac\xc9\x35\xca\xf8\xa5\xdf\xcf\xef\x96\x96\x3b\x5e\x81\x41\x1a\xd9\x11\x5c\xb1\x59\xb9\xb0\x93\x38\x94\x0a\xf1\x04\x95\xdd\x12\x5e\x65\x02\x0c\x18\x6a\x18\xa9\x19\x05\xad\x3c\x27\xd2\x95\xc3\xd1\x7a\xea\xa2\xe6\x2b\xf8\xc3\x5b\x93\xc6\x8b\x63\xaf\xea\x3e\xcb\x42\x64\x07\x0c\xb2\x91\x41\xa6\xf6\x9f\x04\xeb\x14\x01\x4f\xe4\x55\xc2\xcf\x18\xfd\x2a\x7e\x8c\xe2\x7d\x17\xc5\x13\xe4\xd9\x58\x5a\x23\x28\x27\x8d\x1f\x4d\x07\x24\x37\xcf\x17\xd4\x04\xba\x81\xab\xe0\x25\xcb\xf5\x21\x8c\x7e\x7f\x77\xd7\xa9\xd0\x4f\x55\x59\xdb\x21\x0e\x3e\xb7\xb1\x19\xbc\x8b\xe4\x6f\x93\xd2\x5b\x23\xb3\xaa\x97\x2c\xbc\x1a\x41\xa1\xbf\xfa\x08\x3b\x93\xb0\x8c\xf7\x27\x76\x5e\x4d\x49\x2c\xbc\xf2\xc1\x93\xd2\x12\x04\xbd\x29\xc9\xba\x22\x55\x8e\xad\x75\xfd\x6a\x5b\xb2\x81\x64\xcc\x56\xa6\xd3\x98\x6d\xfb\xfe\x86\x79\xf2\x38\x3a\x35\x48\x37\x0b\xb8\xe6\xde\x25\x8d\x3a\xd6\xc0\xb7\xca\x4c\x0f\x37\xfb\x54\xba\xc9\xa5\x48\x51\x49\x6d\x1c\x8d\x56\x9b\x9c\xcc\x4d\x48\x22\x05\xb5\x56\x63\x65\xa5\x63\x00\xaa\xed\x38\xa7\x49\x94\x57\x21\x00\x79\xcc\xab\x64\x7d\xdf\x39\x3b\x99\x26\xb5\xbd\xdc\x37\x11\x6d\xd9\xb6\x58\xc7\x20\x31\xe4\x4b\xbd\x21\x19\x33\xee\xab\xe0\xf4\xed\x57\x9c\xb8\xfc\xf3\xef\x4f\x35\xe2\x54\x96\x1e\xb7\x53\x91\xd0\xfa\x7c\xb7\x99\x7a\x28\xd6\x25\x4f\xdc\x64\xd2\xd9\x4e\xe5\x49\x97\xd7\x60\x40\x37\xb0\x55\x14\xa3\xea\x82\x1b\xdc\x2b\x26\xd8\x35\xf8\x10\x62\x77\xb1\x00\x89\x99\xa9\x95\x25\x14\x8f\xfb\x0f\xdc\xf2\x0c\x39\xf9\x23\xe7\x04\xa5\x15\x42\x83\x1a\xf3\x30\xf2\xe5\x3a\x79\xd3\xf5\x55\xfc\x33\xe9\xd3\x9d\xd4\xd3\x26\x31\xa8\x0f\xc1\x36\x00\x0e\x63\x98\x3f\xd4\x80\x92\x8a\x41\x05\xcd\x6d\xd3\xe5\x18\x98\xed\xe4\x20\x9a\x42\xea\x2b\x0f\x7c\x7c\x19\x46\x68\xfc\xa8\xe6\x1c\x28\x64\xa1\xd8\xed\x7c\x88\xf1\x60\x27\x9e\x42\x32\xb3\x60\xd3\x38\x07\xfc\x06\xfc\x34\x8e\xd6\x85\x12\xfe\x41\x34\x4f\x9e\xb1\xe6\xca\xd3\xe1\x66\x07\x93\x9f\xe2\x6c\x4b\xd3\x68\x92\x72\x1d\x95\xaa\xd8\xde\x04\x4b\xf0\x8c\xde\x27\x4a\x5c\xfb\x17\x00\x8b\x8b\x94\x0b\xf3\x7f\x8e\x6c\x5e\xad\x9c\x30\xd8\xcc\x2a\xfc\x32\xea\x7f\x1d\x03\x85\xc7\x08\xef\xfb\xed\x6e\xe0\x64\xe1\xb3\xd2\xe9\x29\x12\xa2\x64\x29\xa0\xe2\x28\xb8\xa6\x02\x45\x7f\xa4\x9e\x33\xe7\xe6\x7d\xb6\xa5\x4c\xb8\xbd\xbd\x2d\x8a\xd7\xe9\x4d\x02\xa7\xb4\x8a\xdb\x2f\x15\x97\x7b\x3c\xb1\x87\x57\x27\x55\x32\x76\x7e\xe2\xcf\xbf\x04\x88\xeb\x1b\x01\xe2\x9f\xff\x12\x20\x9e\x3f\x17\x20\xae\xae\x44\x09\x3f\x3a\x7b\x50\xcd\xda\xdf\x6f\x48\x25\x4e\x4f\xa4\xa7\xa6\x51\xdb\x3d\xe2\x49\x8f\x73\x07\x9b\x7a\xdf\xdc\xb2\x5e\x60\x98\x88\x7c\x98\x5b\x1b\x92\xce\x62\xbf\x59\x63\xed\x4e\x7a\x0c\x0c\xe0\xed\xb0\x2e\x2a\x2b\xe9\xb1\xd9\x0e\xd0\x34\xc2\x97\xf0\x2a\xe6\xe0\x60\x07\x86\x8f\x95\x02\xf9\x80\xfd\x49\x43\x24\x17\x26\x79\x8f\xb1\x30\xf2\x32\x30\x0e\x91\x5c\x69\xe7\xd0\x2f\x45\xd3\x61\x27\x5d\xa3\xc9\xe3\xb6\x8d\xc9\x95\x36\x01\xbe\x84\x6f\xda\xc7\x7d\x31\xf1\x49\xe1\x1e\x7b\x90\x0a\x7b\x79\x50\xd6\xf1\xec\x7d\xd2\xf9\xdb\xb6\xfd\xd0\xae\x22\x96\x4d\x91\x56\x0a\x1b\x8c\xe3\xae\xe4\x5e\x99\x26\xb7\xce\x10\x57\x0a\xfe\xbc\x08\xe4\xa5\x06\xef\xa5\xe0\x6f\x46\x3d\x9c\x1c\x27\x71\xa9\x27\xfe\x63\xf2\x01\xc4\x6f\x46\xc0\xb5\x6e\x6f\xe2\xbc\x24\x09\xfe\xfd\x29\x75\x3a\x2b\x7e\x73\x7c\xb0\x76\xba\xbd\x21\x14\x46\x08\x47\x0b\xa3\xf5\x5e\x91\xda\xac\x88\x4f\x9c\x17\x75\x33\x27\x31\x19\xf5\x20\xd8\xe8\xa2\xb1\x5e\x44\x02\xab\xb2\xef\x59\x9c\x90\xee\xbc\x38\xa5\x8b\x69\x64\x5c\x03\x60\x1d\x28\xa1\x9a\x42\x6c\xaa\x4f\x46\xac\x33\xb8\x38\x99\x64\xa8\xaf\xe8\x70\xc5\xe4\xac\x2b\x8d\xc9\xed\x32\x0b\xfb\x20\xdd\x66\xd4\x4f\x7b\xbe\x4b\x99\xcd\x0a\x16\xc5\x2b\x33\x67\x01\x88\x06\x45\x70\xaa\xb2\x79\xc7\x95\x41\x99\x47\xbe\xcd\xfe\x10\x8a\xf3\x0d\xf0\x12\x73\xdc\xcf\x79\xbb\x23\x52\xc8\x25\x79\x17\xa3\xf2\xf4\x93\x42\x6c\x49\x12\xfd\x22\x37\xfd\x4b\xe1\x8c\x81\x7b\xb5\x9a\x20\xc8\x7b\xbc\x44\x87\x37\xc9\x24\x3d\x41\xb2\xb1\x84\xfd\xc5\x20\xeb\x5e\x19\xdc\xe5\xce\x93\x31\x97\x9d\x70\x22\x64\xd2\x87\xef\x40\xba\x53\x16\xc5\x0b\x78\x13\x77\x75\xe4\xc7\x88\x9e\xf9\x5e\x51\xfc\xba\x7e\x78\xa0\xcb\x7e\xa5\x09\xa8\x98\x50\x5c\xf4\xe9\x99\x9c\xc3\xb7\xf5\x5c\xc2\xb7\xf1\x07\x0c\x28\xf3\x27\x8c\x8d\x3c\xc5\xd1\x9a\xab\x70\x62\xe8\xf3\xef\x25\xa7\xf6\x8d\xc1\xc9\x64\xf2\x8a\x9a\xfb\xb0\x54\x3f\x95\x29\x2e\x6d\x09\x7f\x4e\x0b\x42\x99\x11\x7c\x95\x55\xf9\xed\xe7\x89\xf8\xf5\x61\x41\xb5\xf5\xeb\x4b\xa1\x0c\xf7\xaf\x91\xa2\x2f\x8b\xe2\xed\xba\x79\x8f\x1f\x5f\x36\x11\xbd\x59\x79\xee\x92\xc0\xb8\x59\x70\x6e\x4e\xae\xeb\xca\x12\xde\xda\x82\x98\xae\x42\x26\x23\xee\x18\x2c\x84\xc7\xc0\x0f\xc4\xb6\x64\xd2\x53\x51\x16\xc5\x37\xe9\x53\xc0\x99\xb1\x96\xed\x25\x79\x8e\x67\xba\x71\x8a\x6b\xfe\x8c\xd5\x89\x07\x61\x7b\xdc\xe9\xcf\x31\x8f\x48\x85\x32\x7e\x87\xa2\xe6\xce\xe4\xea\x9b\x2a\x3d\x55\xdb\xb3\x35\x1d\x85\x36\x35\xd4\x5a\x27\x7c\xc6\x87\x1a\xc7\x00\x6f\x6c\xfc\xcf\x96\x28\x96\xd5\x37\xbc\xbc\x7c\xfc\xa7\xa9\x9a\xe3\x93\x7d\x51\x08\x21\x48\x91\xe2\x4f\x4e\xe6\xe7\x9f\x96\x9d\x7d\xbe\x87\xf8\x8f\x9f\x6c\x45\x78\xbe\x07\x5e\xb1\xf3\xdb\xbf\x76\xf9\x8a\xab\x1e\x5f\x51\xef\xf0\xf9\x1e\x3e\x3f\x39\x79\x46\x2a\xb8\x09\x37\x6f\xe2\x8d\x97\xc5\x5f\x24\x53\x51\xbc\xf2\x9b\x2f\x71\x08\x71\xac\xa7\x99\x18\x01\xa5\x9f\xe3\x12\xe6\xb1\x95\xf3\xfc\x7b\xd9\x53\x65\xf1\xdf\x00\x00\x00\xff\xff\xfd\x1d\xf9\x9b\x05\x1d\x00\x00") func runtimeHelpOptionsMdBytes() ([]byte, error) { return bindataRead( diff --git a/cmd/micro/settings.go b/cmd/micro/settings.go index 6851e356..89c14b91 100644 --- a/cmd/micro/settings.go +++ b/cmd/micro/settings.go @@ -222,6 +222,7 @@ func DefaultGlobalSettings() map[string]interface{} { "pluginrepos": []string{}, "useprimary": true, "fileformat": "unix", + "mouse": true, } } @@ -254,6 +255,7 @@ func DefaultLocalSettings() map[string]interface{} { "tabstospaces": false, "useprimary": true, "fileformat": "unix", + "mouse": true, } } @@ -380,6 +382,14 @@ func SetLocalOption(option, value string, view *View) error { } } + if option == "mouse" { + if !nativeValue.(bool) { + screen.DisableMouse() + } else { + screen.EnableMouse() + } + } + return nil } diff --git a/runtime/help/options.md b/runtime/help/options.md index db78f95c..92d13b29 100644 --- a/runtime/help/options.md +++ b/runtime/help/options.md @@ -155,6 +155,12 @@ Here are the options that you can set: default value: `off` +* `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 example, because the terminal has access to the local clipboard and micro does not). + + default value: `on` + --- Default plugin options: