]> git.lizzy.rs Git - micro.git/commitdiff
Add option to disable use of a the primary clipboard v1.1.4
authorZachary Yedidia <zyedidia@gmail.com>
Wed, 8 Feb 2017 00:21:25 +0000 (19:21 -0500)
committerZachary Yedidia <zyedidia@gmail.com>
Wed, 8 Feb 2017 00:21:25 +0000 (19:21 -0500)
Closes #544

cmd/micro/cursor.go
cmd/micro/runtime.go
cmd/micro/settings.go
runtime/help/options.md

index 8dc6bc5fc56ecad4fbd5827e9913a313e32dc4a4..b864974af927c4632667162c48534e935a7cf4cf 100644 (file)
@@ -32,7 +32,9 @@ func (c *Cursor) Goto(b Cursor) {
 // CopySelection copies the user's selection to either "primary" or "clipboard"
 func (c *Cursor) CopySelection(target string) {
        if c.HasSelection() {
-               clipboard.WriteAll(c.GetSelection(), target)
+               if target != "primary" || c.buf.Settings["useprimary"].(bool) {
+                       clipboard.WriteAll(c.GetSelection(), target)
+               }
        }
 }
 
index 45cad45243afda25caf6a29177f4df3276980ada..d84cd85376242050d6e7a0eb8e6179d3d64bce2e 100644 (file)
@@ -491,7 +491,7 @@ func runtimeHelpKeybindingsMd() (*asset, error) {
        return a, nil
 }
 
-var _runtimeHelpOptionsMd = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x94\x58\x51\x8f\xdc\x36\x0e\x7e\x5e\xff\x0a\x62\x53\x60\x77\x83\x59\x6f\xd0\xcb\x43\x31\x2f\x87\xed\xe5\x6e\x1b\xe0\xd2\x14\x6d\x1e\x5a\x1c\x0e\x95\x6c\xd3\xb6\x2e\xb2\xe4\x93\xe4\x99\x4c\x8a\xdc\x6f\x3f\x90\x92\xc6\x9e\x59\x67\x93\xbe\xcd\xc8\x12\x49\x7d\x24\x3f\x92\x7a\xf6\xec\x19\xbc\x1d\x83\xb2\xc6\x17\xc5\x1b\x55\x3b\x0b\x3e\x58\x87\x1e\xa4\xd6\x60\x5b\x08\x3d\xc2\xe4\xd1\x41\x6d\x4d\xab\xba\xc9\x49\xda\x0c\xca\x80\x0a\xfe\x6c\xb1\x51\x0e\xeb\x60\xdd\xa1\xcc\xb2\x26\x8f\x9e\x45\x88\x6f\x7e\x7d\xf5\xf0\xfb\xdf\xde\xfe\xf8\x8f\xd7\x0f\xbf\xff\xf0\xf6\xcd\xdf\xef\x06\xda\x20\x40\xc6\xef\x9f\x13\x04\xf7\x1e\x46\x74\x05\xed\xf9\xf5\xd5\x03\xf8\x11\xeb\x0d\xa8\xf6\xb1\x40\x01\xca\x83\xb1\x01\x3c\x86\x0d\x88\xff\xdd\x95\x51\x66\x56\xa4\x3c\x59\xd3\x90\xc2\x62\xd6\x78\x62\xf3\x0f\xe8\x10\xa4\x43\xb6\xc8\x46\x54\x20\xf4\x32\xc0\xc1\x4e\x50\x4b\x43\xb2\xb7\x45\xf1\x1c\x44\x6d\xb5\x75\xbe\xee\x71\x40\xb1\x05\x6d\x65\x93\xef\x71\x5c\x8f\x40\x36\x04\x55\x01\x00\xdf\x5c\x47\x8d\xaf\x94\xbb\xb9\x5b\x6c\xf3\x77\x22\xaa\x12\x25\x5b\x4a\x7b\xdf\xf5\xca\x93\xae\xa0\x4c\x47\x86\x8b\x4e\xdb\x4a\x6a\xb0\x46\x1f\x44\x59\x14\x17\x0d\xb6\x72\xd2\x01\x76\x52\x4f\xb8\x05\x91\xfe\x8b\xe2\xe2\x47\x1b\x30\xda\x4c\xe6\xe4\x7d\x4b\x7d\x70\x9d\x56\x37\xe0\xad\x96\x4e\x7d\xc4\x66\x03\xd2\x34\xf3\xdf\xdb\x50\xdf\x14\x17\x84\x04\x01\xaa\x6d\x2d\x43\xbc\xc8\xf1\x0a\x1b\xa8\xb0\x96\x93\x67\xac\x0e\x0c\x1a\x0e\x15\x36\x4d\xdc\x47\xba\xf9\x36\x50\x29\x23\x19\xdc\x8b\x77\x67\xf0\x10\x9e\x15\x82\x47\x8d\x35\x89\x6f\x9d\x1d\x38\xea\xe8\x70\xab\x34\xfa\x2c\xa9\xb8\x38\xf3\xe6\x29\x7e\xcb\x70\x89\x61\x57\x5b\xba\x67\x75\x38\xde\x7f\xaf\x42\x0f\xa1\x77\x88\xc5\xc5\xf2\xec\xb6\x20\xb8\xe1\xb7\xe4\x5e\x87\xb2\x81\xc1\x52\x14\x54\x76\x0a\xf1\x0a\x57\xfe\x14\xbe\x64\x54\x0a\x01\x01\x3d\xea\x11\x82\x1d\x55\xcd\xb2\xae\x05\x2f\xa4\xaf\x37\xe5\x1c\x2e\xb5\xd5\xd3\x60\xc4\x96\xc2\x37\x90\x87\xe7\x80\x85\x60\xe1\xc5\x06\x14\x59\xaa\x35\x34\xca\x8f\x5a\x1e\x40\x42\x3c\x03\xc9\x9d\x14\xfd\xaa\x55\xd8\x90\xa6\xf8\xa9\x8c\xc1\x12\xa3\xbb\x9d\x34\x09\xa7\x68\xdd\x4b\x13\xf2\xe9\xef\x5e\x90\xfc\x0a\xa1\x57\x5d\xaf\x55\xd7\x13\xdc\x2c\x4b\x6a\x68\xad\x03\xfc\x20\x87\x51\xe3\x5a\x64\xbd\x10\x7c\x01\xb4\xad\xc1\xbd\x56\x86\xc2\x3d\x7a\x96\x2d\x95\x53\xb0\x83\x0c\xaa\x96\x5a\x1f\x40\x36\x0d\x48\x48\x1b\x49\x67\x76\xe5\x9a\xe4\x56\x6a\x8f\x51\xba\x1b\x82\x93\x4a\x2b\xd3\xed\xfd\x53\xf2\x83\x53\x03\xe4\xad\xb0\xef\x55\x40\x3f\xca\x9a\xd8\x2a\x00\x5a\xfd\x05\x35\x41\x56\x5e\x7d\xa4\x1b\x78\x0c\x31\x5f\x83\xac\x80\xd6\xc8\xd8\x9c\x87\x2b\x42\x5e\x46\x01\xca\x34\x68\x42\xdd\x4b\xb7\x94\x11\x57\x23\x73\xd1\x37\x59\x07\x74\x2b\x42\x20\x0b\x69\x6d\xc5\x12\xd0\xc8\x4a\x27\x82\x64\xc4\x92\x9b\x2b\x1b\x82\x1d\x32\xfb\x62\xa3\x82\x75\xb0\xef\x89\x9d\x06\xf4\x5e\x76\x74\x61\x87\x30\x3a\x65\x02\x36\xe5\x91\x32\xe2\x05\xbe\x8a\x31\xf8\x9e\xcf\x41\x90\x77\xc2\x61\x3c\x01\x25\xaf\x71\x6c\x30\xab\x4d\xce\xa1\x09\x50\x4d\x6d\x8b\xae\x7c\xcc\x4f\x44\x11\x49\x59\xcc\xa8\x33\x75\x1c\xee\xec\xd0\x0a\xcf\x7c\x4a\xd1\xdf\xe0\x88\xa6\x21\x61\xd6\x1c\x2d\xe0\x30\xee\xe5\x8e\xa8\x18\x4d\x84\xae\x33\xd6\x61\x2d\x3d\x99\x3b\xa2\x6b\xad\x1b\x80\xfe\xde\x2a\xe3\xd1\x78\x15\xd4\x8e\x18\x45\xba\xba\x47\xbf\x76\xeb\xb6\x8d\xd7\xf6\x07\x13\xe4\x07\xb1\x85\x30\x39\xe3\x21\xfe\x25\xed\xd6\x81\x6d\xdb\x27\x00\xa3\x20\x0a\x36\x86\x9d\xd8\x52\xd6\x41\x8a\x41\x65\x7c\x20\x02\x21\xbf\xc9\xea\x49\xf5\x04\x41\x0c\x1b\xb1\x25\xcf\x1a\xa8\x1d\x4a\x86\x93\xf3\x27\x86\x43\xa2\x57\xf0\x72\x38\x8d\xb2\x54\x34\x09\xe9\xd1\xe1\x4e\xd9\xc9\xf3\x89\x27\xcc\xae\x27\xe7\xad\x4b\x09\x7c\xe4\x81\x39\xf4\x8e\x25\x23\x6e\x24\xaf\xc6\x32\x2f\xa1\x51\xe4\x75\x34\xa9\x8c\x90\xd6\xeb\x63\xad\xa3\x8d\x0d\xb6\xca\x60\x43\x84\x7b\x5e\x03\xc9\x87\x14\xaa\x93\x57\xa6\xbb\x79\xc2\x3e\x37\x69\xa4\x9c\xc8\xd4\xc7\x46\x99\x69\xa8\xd0\xad\x22\x99\x8e\xf9\x20\xc3\xe4\xd3\xb5\xf2\x59\xc6\x8c\x3f\x3c\x91\x56\xbe\x76\x48\x61\xf5\x79\xd1\x72\x87\x11\x0c\xb1\x05\x87\x03\xd5\xb7\x9c\x86\x0b\xa0\xf6\xd2\x83\x96\x3e\x40\x50\x03\xce\xc1\x4b\xcb\x14\xb7\xd4\x71\x18\xe6\xeb\x71\x0a\x44\xf0\x81\x05\xb0\xcf\x09\x1c\xda\x33\x9f\x92\x9d\x54\xab\x36\x1d\xe3\x56\xee\x70\x32\x8d\xcd\x61\x13\x4e\xd3\xde\x9a\x0d\xd0\x67\xfa\x4d\x5b\x1b\xc0\x1d\x1a\x90\x6d\x40\x17\x9b\x18\x6d\x3d\x82\x64\x6d\x64\x94\xb7\xb9\x60\xa4\x2f\xa6\x01\x87\x6c\x54\xdc\xb4\x39\xf6\x3e\xef\x11\x47\x16\xae\x4c\xf7\xa4\x89\xb5\xb3\x5a\x0f\xd2\x75\x8a\x8a\x9d\x1c\xec\x64\x02\xa1\x4e\xbe\xf0\xb1\x38\xd9\x49\x37\xa0\xd5\x7b\xe6\x5d\x8f\x5c\x6f\x77\x51\x7b\x85\xda\xee\x17\x00\xaf\xa8\xfa\xcb\x52\x91\x1f\x11\x9b\x15\x3d\x24\x98\x37\x30\x8b\x59\x83\xf9\x2f\x21\x12\x56\xa4\x7e\x9b\xa4\xda\x36\xec\x9d\x1c\x89\x10\x7b\xb6\x33\x95\x23\x27\xc7\x2c\x9a\x72\x85\xfb\x44\x6b\x41\x5b\xd3\x91\xb2\x56\x85\xcc\x5e\x39\xb4\x56\x88\x70\x01\xd3\xa8\x55\xf8\x99\x92\x30\xfb\x52\xc2\x0e\x1d\xd3\x22\xf0\x47\x72\x22\xd3\x02\xf5\x67\xc9\x16\x15\x88\x41\xd3\x6a\xae\xb0\x8e\x53\xd9\xb6\xa4\x70\x49\xd7\x2c\xe5\xaf\x9f\xb1\xc3\x2c\xcc\xf8\x9e\x33\x63\xb6\xa3\xb7\x4e\x7d\xb4\x26\x7c\xbd\x25\x47\xaf\x71\x67\xf2\x27\xf4\x13\x13\x52\xa4\x9e\x96\x7d\x5a\x89\x39\xcb\x15\x87\x7c\xe6\x0e\xf0\x1d\x78\xac\xad\x69\xfc\x69\x09\xe1\xfa\x17\x1b\x3f\xa9\xfd\x6a\xe3\xc0\xf2\x28\xba\xfe\x3b\x51\x8f\x95\x93\x0f\x3f\xa8\xd8\x1b\x52\xb3\x27\xfd\x7b\x65\x3a\x16\xf6\x3d\x75\xa7\x8e\xdb\x29\xde\xcb\xec\x15\x73\xad\x45\x19\x26\x87\x73\xff\x4b\x72\x06\x76\x80\xac\x6b\xc5\x1c\x3d\x6b\x8c\x29\x44\x22\xed\x0e\xdd\xde\xa9\x10\x1b\x17\x19\x98\x20\x22\x17\x54\xd8\x5a\xb7\xda\x22\x1d\x83\x65\xd4\x53\xa7\x4c\xdd\x4b\x63\x50\x53\xd9\xa9\xc9\x3b\xca\xf8\x63\xc3\x9c\xbf\x1d\x7b\xd6\x78\x04\x06\x69\x64\x47\xbc\xc5\xb0\x72\x65\x24\x73\x28\x27\xe2\x0e\xaa\x5b\x25\xdc\x67\x01\xcc\x1c\x6a\x18\xa9\x9b\x03\xad\x3c\x67\xd4\x95\xc3\xd1\x7a\x6a\x43\x0e\x57\xf0\x1f\x6f\x4d\xea\xcf\xf7\xbd\xaa\xfb\x6c\x0b\x89\x1d\x30\xc8\x46\x06\x99\xfa\x67\x32\xac\x53\xc4\x40\x51\x57\x09\xbf\x60\xf4\xab\xf8\x29\x9a\xf7\x26\x9a\x27\xc8\xb3\x4c\x62\x89\x9d\xd3\x8d\x1f\xb5\xd7\x64\x37\x37\xe8\xd4\x45\xb9\x81\xcb\x61\xb9\x1e\x61\x7d\x08\xa3\xdf\xde\xdd\x75\x2a\xf4\x53\x55\xd6\x76\x88\xc3\xc3\x6d\x6c\xa8\xee\xa2\x86\xdb\x74\xef\x25\xce\x7c\xdb\x35\x90\x67\x1c\x14\xfa\xab\xaf\x80\x9a\xec\x65\xee\x3f\x81\x7a\x46\x93\x54\x78\xe5\x83\xa7\x7b\x4b\x10\xf4\xa5\x24\x80\x45\xaa\x22\x4b\x80\xfd\x0c\x2f\xc1\x20\x99\xbf\x95\xe9\x34\x66\x78\xd7\x81\xa0\xbe\xf3\xf6\xf6\xb6\x28\x5e\xa5\x0f\xc9\xde\x34\xe1\x6e\x8f\x79\xc8\x25\x40\x6c\xe1\xfe\x24\x77\x62\x61\x10\x7f\x7c\x12\x20\xae\x6f\x04\x88\x7f\xfd\x5b\x80\xb8\xbc\x14\x20\xae\xae\x44\x09\x3f\x39\xbb\x53\xcd\x5c\xfe\x17\xa2\x92\xa6\x27\x8a\xac\xa6\x0e\xd6\x3d\xd2\x49\xcb\xb9\xc0\xa5\xd2\x98\x2b\xda\x8a\xc2\x24\xe4\x0b\xda\xee\xcd\x21\x57\x4a\xca\x59\xea\x3b\xd3\x28\x97\x3b\xec\xd4\x9f\xc6\xc2\xb9\x98\x5e\xa0\x38\x9f\x3f\x53\xef\xeb\xd9\x57\xe0\xed\x86\x44\x61\xdb\x62\x1d\xb8\x60\x9e\x3f\x97\x44\x67\x26\xf9\x45\x26\x4d\xf2\xe2\xc1\x4e\x25\xbc\xe6\x12\x7c\x35\x97\xc4\x20\xdf\xe3\x9a\x1c\x9e\x63\xc9\xfa\x60\x41\x1a\x4b\xfc\x51\x0c\xb2\xee\x95\xc1\x4d\x4e\xdb\xda\x8e\xa9\x05\x3a\x31\x32\xdd\x87\xcf\x40\x3a\x53\x16\xc5\x33\x78\x88\x93\x02\xb1\x63\x6c\xe3\xf3\xb9\xa2\xf8\x6d\x7e\xf6\xa0\xc3\x7e\x96\x09\xa8\x58\x50\x1c\x33\xf4\x81\xfa\x66\x3e\xad\x0f\x25\xfc\x33\xfe\x80\x01\x65\x7e\x40\x59\xd8\x53\xec\xad\xb9\x0a\x27\x40\x9f\xbf\xd6\x9c\xe2\x2b\xd8\x36\x16\x93\x07\x64\x9a\x34\xe2\xe3\x01\x39\xb1\x58\x9b\x51\x7e\x49\xe3\x89\xcc\x81\x3e\xdb\xaa\xfc\xf2\x71\x24\xbe\x7d\xa4\xa4\x0d\x8b\xb7\x9f\x82\xba\x5f\x72\x19\x4b\xf4\x65\x51\xbc\x9b\xe7\xfe\xf8\xf4\xb3\x68\xbd\x16\x03\xd7\x26\x19\x8c\x8b\xf1\x6a\xb1\x73\x1e\x96\x4a\x78\x67\x0b\x52\x3a\x1b\x99\x40\xdc\x70\xf3\x2f\x3c\x06\x5e\x10\xcb\xe1\x82\x56\x69\xa6\x7b\x9d\x1e\x22\xce\xc0\x3a\xce\x4e\xe4\x39\x2e\x88\xd4\x79\x92\x96\xfc\xa4\x95\x74\x50\xfe\xc4\x17\x85\x43\x1c\x3c\xe8\x0a\x65\x7c\x05\x53\x9e\x6c\x4a\xef\x02\x89\x86\x7a\xe9\xcf\xc6\x1f\x6a\x78\x98\x8a\xa8\xcb\xe2\x8a\x80\x1f\x6a\x1c\x03\x3c\xd8\xf8\x9f\x91\x28\x8e\x83\x37\xbc\x5c\xdf\xfe\xf3\x54\x1d\xe2\xca\xb6\x28\x84\x10\x74\x91\xe2\x0f\x26\xb3\xcb\xe7\x65\x67\x2f\xb7\x10\xff\xf1\xca\xd2\x84\xcb\x2d\xf0\x80\xcf\x5f\x3f\x6d\xf2\x11\x57\x3d\x3e\xa2\x3e\xe2\xe5\x16\xbe\x3d\xd9\x79\x26\x2a\xb8\x09\x17\x5f\xe2\x89\x97\xc5\x27\xb2\xa9\x28\xee\xfd\xe2\x1d\x10\x21\xb6\x45\xd4\x50\x20\xa0\xf4\x87\xd8\xca\x3e\x46\x39\x37\x0f\xeb\x9e\x2a\x8b\xff\x07\x00\x00\xff\xff\x8c\xd1\xe3\xc4\x83\x15\x00\x00")
+var _runtimeHelpOptionsMd = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\x58\x51\x8f\xdc\x36\xee\x7f\x5e\x7f\x0a\x62\x53\x60\x77\x83\x59\x6f\xd0\x7f\x1e\x8a\x79\xf9\x23\x4d\xee\xd2\x00\x4d\x53\xb4\xc1\xa1\xc5\xe1\x50\xc9\x36\x6d\xeb\x22\x4b\x3e\x49\x9e\x59\xa7\xc8\x7d\xf6\x03\x29\x69\xec\x99\x9d\xdd\xe6\x6d\x46\x96\x48\xea\x47\xf2\x47\x52\xcf\x9e\x3d\x83\x0f\x63\x50\xd6\xf8\xa2\x78\xaf\x6a\x67\xc1\x07\xeb\xd0\x83\xd4\x1a\x6c\x0b\xa1\x47\x98\x3c\x3a\xa8\xad\x69\x55\x37\x39\x49\x9b\x41\x19\x50\xc1\x9f\x2c\x36\xca\x61\x1d\xac\x9b\xcb\x2c\x6b\xf2\xe8\x59\x84\xf8\xe6\xb7\x37\x6f\xff\x78\xfd\xe1\xa7\xbf\xbf\x7b\xfb\xc7\x0f\x1f\xde\xff\xed\x6e\xa0\x0d\x02\x64\xfc\xfe\x98\x20\x78\xe5\x61\x44\x57\xd0\x9e\xdf\xde\xbc\x05\x3f\x62\xbd\x01\xd5\x3e\x14\x28\x40\x79\x30\x36\x80\xc7\xb0\x01\xf1\xdf\xbb\x32\xca\xcc\x8a\x94\x27\x6b\x1a\x52\x58\x2c\x1a\x8f\x6c\xfe\x01\x1d\x82\x74\xc8\x16\xd9\x88\x0a\x84\x5e\x06\x98\xed\x04\xb5\x34\x24\x7b\x5b\x14\xcf\x41\xd4\x56\x5b\xe7\xeb\x1e\x07\x14\x5b\xd0\x56\x36\xf9\x1e\x87\xf5\x08\x64\x43\x50\x15\x00\xf0\xcd\x75\xd4\xf8\x46\xb9\x9b\xbb\xd5\x36\x7f\x27\xa2\x2a\x51\xb2\xa5\xb4\xf7\x63\xaf\x3c\xe9\x0a\xca\x74\x64\xb8\xe8\xb4\xad\xa4\x06\x6b\xf4\x2c\xca\xa2\xb8\x68\xb0\x95\x93\x0e\xb0\x93\x7a\xc2\x2d\x88\xf4\x5f\x14\x17\x3f\xd9\x80\xd1\x66\x32\x27\xef\x5b\xeb\x83\xeb\xb4\xba\x01\x6f\xb5\x74\xea\x33\x36\x1b\x90\xa6\x59\xfe\xde\x86\xfa\xa6\xb8\x20\x24\x08\x50\x6d\x6b\x19\xe2\x45\x0e\x57\xd8\x40\x85\xb5\x9c\x3c\x63\x35\x33\x68\x38\x54\xd8\x34\x71\x1f\xe9\xe6\xdb\x40\xa5\x8c\x64\x70\x2f\x3e\x9e\xc0\x43\x78\x56\x08\x1e\x35\xd6\x24\xbe\x75\x76\xe0\xa8\xa3\xc3\xad\xd2\xe8\xb3\xa4\xe2\xe2\xc4\x9b\xc7\xf8\xad\xc3\x25\x86\x5d\x6d\xe9\x9e\xd5\x7c\xb8\xff\x5e\x85\x1e\x42\xef\x10\x8b\x8b\xf5\xd9\x6d\x41\x70\xc3\xef\xc9\xbd\x0e\x65\x03\x83\xa5\x28\xa8\xec\x14\xe2\x15\xae\xfc\x31\x7c\xc9\xa8\x14\x02\x02\x7a\xd4\x23\x04\x3b\xaa\x9a\x65\x5d\x0b\x5e\x48\x5f\x6f\xca\x25\x5c\x6a\xab\xa7\xc1\x88\x2d\x85\x6f\x20\x0f\x2f\x01\x0b\xc1\xc2\x8b\x0d\x28\xb2\x54\x6b\x68\x94\x1f\xb5\x9c\x41\x42\x3c\x03\xc9\x9d\x14\xfd\xaa\x55\xd8\x90\xa6\xf8\xa9\x8c\xc1\x12\xa3\xbb\x9d\x34\x09\xa7\x68\xdd\x4b\x13\xf2\xe9\xef\x5e\x90\xfc\x0a\xa1\x57\x5d\xaf\x55\xd7\x13\xdc\x2c\x4b\x6a\x68\xad\x03\xbc\x97\xc3\xa8\xf1\x5c\x64\xbd\x10\x7c\x01\xb4\xad\xc1\xbd\x56\x86\xc2\x3d\x7a\x96\x2d\x95\x53\xb0\x83\x0c\xaa\x96\x5a\xcf\x20\x9b\x06\x24\xa4\x8d\xa4\x33\xbb\xf2\x9c\xe4\x56\x6a\x8f\x51\xba\x1b\x82\x93\x4a\x2b\xd3\xed\xfd\x53\xf2\x83\x53\x03\xe4\xad\xb0\xef\x55\x40\x3f\xca\x9a\xd8\x2a\x00\x5a\xfd\x17\x6a\x82\xac\xbc\xfa\x4c\x37\xf0\x18\x62\xbe\x06\x59\x01\xad\x91\xb1\x39\x0f\xcf\x08\x79\x19\x05\x28\xd3\xa0\x09\x75\x2f\xdd\x5a\x46\x5c\x8d\xcc\x45\xdf\x64\x1d\xd0\x9d\x11\x02\x59\x48\x6b\x2b\x96\x80\x46\x56\x3a\x11\x24\x23\x96\xdc\x5c\xd9\x10\xec\x90\xd9\x17\x1b\x15\xac\x83\x7d\x4f\xec\x34\xa0\xf7\xb2\xa3\x0b\x3b\x84\xd1\x29\x13\xb0\x29\x0f\x94\x11\x2f\xf0\x55\x8c\xc1\xf7\x7c\x0e\x82\xbc\x13\xe6\xf1\x08\x94\xbc\xc6\xb1\xc1\xac\x36\x39\x87\x26\x40\x35\xb5\x2d\xba\xf2\x21\x3f\x11\x45\x24\x65\x31\xa3\x4e\xd4\x71\xb8\xb3\x43\x2b\x3c\xf1\x29\x45\x7f\x83\x23\x9a\x86\x84\x59\x73\xb0\x80\xc3\xb8\x97\x3b\xa2\x62\x34\x11\xba\xce\x58\x87\xb5\xf4\x64\xee\x88\xae\xb5\x6e\x00\xfa\x7b\xab\x8c\x47\xe3\x55\x50\x3b\x62\x14\xe9\xea\x1e\xfd\xb9\x5b\xb7\x6d\xbc\xb6\x9f\x4d\x90\xf7\x62\x0b\x61\x72\xc6\x43\xfc\x4b\xda\xad\x03\xdb\xb6\x4f\x00\x46\x41\x14\x6c\x0c\x3b\xb1\xa5\xac\x83\x14\x83\xca\xf8\x40\x04\x42\x7e\x93\xd5\x93\xea\x09\x82\x18\x36\x62\x4b\x9e\x35\x50\x3b\x94\x0c\x27\xe7\x4f\x0c\x87\x44\xaf\xe0\xe5\x70\x1c\x65\xa9\x68\x12\xd2\xa3\xc3\x9d\xb2\x93\xe7\x13\x4f\x98\x5d\x4f\xce\x5b\x97\x12\xf8\xc0\x03\x4b\xe8\x1d\x4a\x46\xdc\x48\x5e\x8d\x65\x5e\x42\xa3\xc8\xeb\x68\x52\x19\x21\xad\xd7\x87\x5a\x47\x1b\x1b\x6c\x95\xc1\x86\x08\xf7\xb4\x06\x92\x0f\x29\x54\x27\xaf\x4c\x77\xf3\x84\x7d\x6e\xd2\x48\x39\x91\xa9\x8f\x8d\x32\xd3\x50\xa1\x3b\x8b\x64\x3a\xe6\x83\x0c\x93\x4f\xd7\xca\x67\x19\x33\xfe\xf0\x44\x5a\xf9\xda\x21\x85\xd5\xe3\xa2\xe5\x0e\x23\x18\x62\x0b\x0e\x07\xaa\x6f\x39\x0d\x57\x40\xed\xa5\x07\x2d\x7d\x80\xa0\x06\x5c\x82\x97\x96\x29\x6e\xa9\xe3\x30\xcc\xd7\xe3\x14\x88\xe0\x03\x0b\x60\x9f\x13\x38\xb4\x67\x39\x25\x3b\xa9\xce\xda\x74\x88\x5b\xb9\xc3\xc9\x34\x36\x87\x4d\x38\x4e\x7b\x6b\x36\x40\x9f\xe9\x37\x6d\x6d\x00\x77\x68\x40\xb6\x01\x5d\x6c\x62\xb4\xf5\x08\x92\xb5\x91\x51\xde\xe6\x82\x91\xbe\x98\x06\x1c\xb2\x51\x71\xd3\xe6\xd0\xfb\x7c\x42\x1c\x59\xb8\x32\xdd\x93\x26\xd6\xce\x6a\x3d\x48\xd7\x29\x2a\x76\x72\xb0\x93\x09\x84\x3a\xf9\xc2\xc7\xe2\x64\x27\xdd\x80\x56\x9f\x98\x77\x3d\x72\xbd\xdd\x45\xed\x15\x6a\xbb\x5f\x01\x7c\x46\xd5\xff\xad\x15\xf9\x11\xb1\x39\xa3\x87\x04\xf3\x06\x66\x31\x6b\x30\xff\x25\x44\xc2\x19\xa9\xdf\x26\xa9\xb6\x0d\x7b\x27\x47\x22\xc4\x9e\xed\x4c\xe5\xc8\xc9\x31\x8b\xa6\x5c\xe1\x3e\xd1\x5a\xd0\xd6\x74\xa4\xac\x55\x21\xb3\xd7\xe3\xa1\x75\xc0\x68\xd4\x2a\xfc\x42\x19\x98\x1d\x29\x61\x87\x8e\x39\x11\xf8\x23\x79\x90\x39\x81\x9a\xb3\x64\x88\x0a\x44\x9f\x69\x35\x97\x57\xc7\x79\x6c\x5b\xf2\xe6\x9a\xab\x59\xca\xff\x3f\x15\xdf\xb4\xe1\x7b\xce\x89\xc5\x88\xde\x3a\xf5\xd9\x9a\xf0\xf5\x66\x1c\xfc\xc5\x3d\xc9\xd7\x2a\x27\x02\xa4\x00\x3d\xae\xf6\xb4\x12\x53\x95\x0b\x0d\xb9\xca\xcd\xf0\x1d\x78\xac\xad\x69\xfc\x71\xe5\xe0\xb2\x17\xfb\x3d\xa9\xfd\xd9\x7e\x81\xe5\x51\x50\xfd\x67\xa2\xd6\x2a\xe7\x1c\xde\xab\xd8\x12\x52\x8f\x27\xfd\x27\x65\x3a\x16\xf6\x3d\x35\xa5\x8e\xbb\x28\xde\xcb\xa4\x15\x53\xac\x45\x19\x26\x87\x4b\xdb\x4b\x72\x06\x86\x5e\xd6\xb5\x62\x6a\x5e\x34\xc6\xcc\x21\x91\x76\x87\x6e\xef\x54\x88\xfd\x8a\x0c\xcc\x0b\x91\x02\x2a\x6c\xad\x3b\xdb\x19\x1d\xc2\x64\xd4\x53\xa7\x4c\xdd\x4b\x63\x50\x53\xb5\xa9\xc9\x35\xca\xf8\x43\x9f\x9c\xbf\x1d\x5a\xd5\x78\x04\x06\x69\x64\x47\x74\xc5\xb0\x72\x41\x24\x73\x28\x15\xe2\x0e\x2a\x57\x25\xbc\xca\x02\x98\x30\xd4\x30\x52\x13\x07\x5a\x79\x4e\xa4\x2b\x87\xa3\xf5\xd4\x7d\xcc\x57\xf0\x6f\x6f\x4d\x6a\xcb\xf7\xbd\xaa\xfb\x6c\x0b\x89\x1d\x30\xc8\x46\x06\x99\xda\x66\x32\xac\x53\x44\x3c\x51\x57\x09\xbf\x62\xf4\xab\xf8\x39\x9a\xf7\x3e\x9a\x27\xc8\xb3\xcc\x5d\x89\x94\xd3\x8d\x1f\x74\xd5\x64\x37\xf7\xe5\xd4\x3c\xb9\x81\xab\xe0\x39\xe4\xfa\x10\x46\xbf\xbd\xbb\xeb\x54\xe8\xa7\xaa\xac\xed\x10\x07\x86\xdb\xd8\x44\xdd\x45\xf1\xb7\xe9\xd2\x6b\x90\xf9\xaa\xe7\x10\x5e\x40\x50\xe8\xaf\xbe\x02\x67\x32\x96\xf9\xfe\x08\xe7\x05\x4a\x52\xe1\x95\x0f\x9e\x2e\x2d\x41\xd0\x97\x92\xd0\x15\xa9\x72\xac\xd1\xf5\x0b\xb6\x84\x81\x64\xce\x56\xa6\xd3\x98\xb1\x7d\xbc\xd1\x9c\x3c\x8e\x4e\x0d\xd2\xcd\x02\xae\xa9\x37\xcb\x23\x82\x35\xf0\xa3\x32\xd3\xfd\xcd\x36\x95\x6e\x72\x29\x52\x54\x52\xfb\x43\x23\xc9\x2a\x27\x73\x13\x92\x44\x41\xad\xd5\x58\x59\xe9\x98\x80\x6a\x3b\xce\x69\x82\xe3\x27\x04\x80\x3c\x1e\x55\xb2\xfe\xd4\x39\x3b\x99\x26\xb5\x8b\x8d\xc5\x38\xee\xc8\xb6\xc5\x3a\x06\x89\x21\x5f\xea\x95\xc8\x98\x71\xaf\x83\xd3\xb7\xaf\x39\x71\xf9\xe7\x3f\x1e\x6d\x60\x6f\x6f\x6f\x8b\xe2\x4d\xfa\x92\x5c\x92\x06\xf7\xed\x81\x67\xb8\xb2\x89\x2d\xbc\x3a\xe2\x86\x58\xef\xc4\x9f\x5f\x04\x88\xeb\x1b\x01\xe2\x9f\xff\x12\x20\x2e\x2f\x05\x88\xab\x2b\x51\xc2\xcf\xce\xee\x54\xb3\x74\x35\x2b\x51\x49\xd3\x13\xf4\xa6\xa9\x31\x77\x0f\x74\xd2\x72\xae\xdb\xa9\xe2\xe7\x42\x7d\x46\x61\x12\xf2\x17\xda\x5e\x99\x39\x37\x00\xc4\x49\xd4\x4e\x27\x17\xe4\xc1\x21\xb5\xdd\xb1\x1f\x58\x0d\x65\x50\x9c\x8e\xd5\xa9\xa5\xf7\x1c\x8e\xe0\xed\x86\x44\x21\xfb\x8b\xfb\x80\xd3\x57\xa0\x18\xaf\x49\x7e\x91\x2b\x02\x05\xea\x6c\xa7\x12\xde\x71\x67\x71\xb5\x54\xfa\x20\x3f\xe1\x39\x39\x3c\x9e\x93\xf5\xc1\x82\x34\x96\x22\xb1\x18\x64\xdd\x2b\x83\x9b\x4c\x4b\x1c\x6a\x5c\x5d\x8f\x8c\x4c\xf7\xe1\x33\x90\xce\x94\x45\xf1\x0c\xde\xc6\x01\x88\x82\x28\x4e\x27\xf9\x5c\x51\xfc\xbe\xbc\xe6\xd0\x61\xbf\xc8\x04\x54\x2c\x28\x4e\x4f\x7a\xa6\x7c\xe0\xd3\x7a\x2e\xe1\xc7\xf8\x03\x06\x94\xf9\x5d\x68\x65\x4f\xb1\xb7\xe6\x2a\x1c\x01\x7d\xfa\x08\x75\x8c\xaf\x60\xdb\x58\x4c\x9e\xfb\x39\x49\xf9\x4d\x84\x9c\x58\x9c\x1b\xbd\x7e\x4d\x53\x97\xcc\x81\xbe\xd8\xaa\xfc\xfa\xcd\x27\x3e\xe9\x24\x5e\x0a\xab\x27\xad\x82\x9a\x7a\x72\x19\x4b\xf4\x65\x51\x7c\x5c\x9e\x33\xe2\x8b\xd6\xaa\xa3\x5c\xcd\x91\x9b\x64\x30\xae\xa6\xc6\xd5\xce\x65\x06\x2c\xe1\xa3\x2d\x48\xe9\x62\x64\x02\x71\xc3\x74\x22\x3c\x06\x5e\x10\xeb\x99\x89\x56\x69\x54\x7d\x97\xde\x57\x4e\xc0\x3a\x8c\x84\xe4\x39\x2e\xf8\xd4\x50\x93\x96\xfc\x52\x97\x74\x50\xfe\xc4\x87\x92\x39\xce\x53\x74\x85\x32\x3e\xee\x29\x4f\x36\xa5\xe7\x8e\xc4\xb4\xbd\xf4\x27\x53\x1d\x11\x24\xb3\x2d\x35\x8f\x5c\xf1\xf0\xbe\xc6\x31\xc0\x5b\x1b\xff\x33\x12\xc5\xe1\x3d\x01\x5e\x9e\xdf\xfe\xcb\x54\xcd\x71\x65\x5b\x14\x42\x08\xba\x48\xf1\x27\xcf\xc7\x97\xcf\xcb\xce\x5e\x6e\x21\xfe\xe3\x95\xb5\x09\x97\x5b\xe0\x77\x0b\xfe\xfa\x65\x93\x8f\xb8\xea\xe1\x11\xf5\x19\x2f\xb7\xf0\xed\xd1\xce\x13\x51\xc1\x4d\xb8\xfa\x12\x4f\xbc\x2c\xbe\x90\x4d\x45\xf1\xca\xaf\x9e\x37\x11\x62\xcf\x47\x0d\x13\x02\x4a\x3f\xc7\x0e\xfd\x21\xca\xb9\x39\x3a\xef\xa9\xb2\xf8\x5f\x00\x00\x00\xff\xff\xdf\xb7\x0d\xca\x5a\x16\x00\x00")
 
 func runtimeHelpOptionsMdBytes() ([]byte, error) {
        return bindataRead(
index 240ee7710da44ed1bffd61d4edcaa67d54c7a7fa..b10368c0127ff41659fe4a326cd69a677e3127e8 100644 (file)
@@ -175,33 +175,34 @@ func GetOption(name string) interface{} {
 // Note that colorscheme is a global only option
 func DefaultGlobalSettings() map[string]interface{} {
        return map[string]interface{}{
-               "autoindent":   true,
+               "autoindent":     true,
                "keepautoindent": false,
-               "autosave":     false,
-               "colorcolumn":  float64(0),
-               "colorscheme":  "default",
-               "cursorline":   true,
-               "eofnewline":   false,
-               "rmtrailingws": false,
-               "ignorecase":   false,
-               "indentchar":   " ",
-               "infobar":      true,
-               "ruler":        true,
-               "savecursor":   false,
-               "saveundo":     false,
-               "scrollspeed":  float64(2),
-               "scrollmargin": float64(3),
-               "softwrap":     false,
-               "splitRight":   true,
-               "splitBottom":  true,
-               "statusline":   true,
-               "syntax":       true,
-               "tabsize":      float64(4),
-               "tabstospaces": false,
+               "autosave":       false,
+               "colorcolumn":    float64(0),
+               "colorscheme":    "default",
+               "cursorline":     true,
+               "eofnewline":     false,
+               "rmtrailingws":   false,
+               "ignorecase":     false,
+               "indentchar":     " ",
+               "infobar":        true,
+               "ruler":          true,
+               "savecursor":     false,
+               "saveundo":       false,
+               "scrollspeed":    float64(2),
+               "scrollmargin":   float64(3),
+               "softwrap":       false,
+               "splitRight":     true,
+               "splitBottom":    true,
+               "statusline":     true,
+               "syntax":         true,
+               "tabsize":        float64(4),
+               "tabstospaces":   false,
                "pluginchannels": []string{
                        "https://raw.githubusercontent.com/micro-editor/plugin-channel/master/channel.json",
                },
                "pluginrepos": []string{},
+               "useprimary":  true,
        }
 }
 
@@ -209,28 +210,29 @@ func DefaultGlobalSettings() map[string]interface{} {
 // Note that filetype is a local only option
 func DefaultLocalSettings() map[string]interface{} {
        return map[string]interface{}{
-               "autoindent":   true,
+               "autoindent":     true,
                "keepautoindent": false,
-               "autosave":     false,
-               "colorcolumn":  float64(0),
-               "cursorline":   true,
-               "eofnewline":   false,
-               "rmtrailingws": false,
-               "filetype":     "Unknown",
-               "ignorecase":   false,
-               "indentchar":   " ",
-               "ruler":        true,
-               "savecursor":   false,
-               "saveundo":     false,
-               "scrollspeed":  float64(2),
-               "scrollmargin": float64(3),
-               "softwrap":     false,
-               "splitRight":   true,
-               "splitBottom":  true,
-               "statusline":   true,
-               "syntax":       true,
-               "tabsize":      float64(4),
-               "tabstospaces": false,
+               "autosave":       false,
+               "colorcolumn":    float64(0),
+               "cursorline":     true,
+               "eofnewline":     false,
+               "rmtrailingws":   false,
+               "filetype":       "Unknown",
+               "ignorecase":     false,
+               "indentchar":     " ",
+               "ruler":          true,
+               "savecursor":     false,
+               "saveundo":       false,
+               "scrollspeed":    float64(2),
+               "scrollmargin":   float64(3),
+               "softwrap":       false,
+               "splitRight":     true,
+               "splitBottom":    true,
+               "statusline":     true,
+               "syntax":         true,
+               "tabsize":        float64(4),
+               "tabstospaces":   false,
+               "useprimary":     true,
        }
 }
 
index 95589bb15c49de50c7eaf054be2c7780982f1cc1..0dca26da380b584d6a4a1954994bd33dca1cf38c 100644 (file)
@@ -103,17 +103,17 @@ Here are the options that you can set:
 
 * `softwrap`: should micro wrap lines that are too long to fit on the screen
 
-    default value: `off`
+       default value: `off`
 
 * `splitRight`: when a vertical split is created, should it be created to the right of
    the current split?
 
-    default value: `on`
+       default value: `on`
 
 * `splitBottom`: when a horizontal split is created, should it be created below the
    current split?
 
-    default value: `on`
+       default value: `on`
 
 * `autosave`: micro will save the buffer every 8 seconds automatically.
    Micro also will automatically save and quit when you exit without asking.
@@ -127,13 +127,18 @@ Here are the options that you can set:
    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`
+       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: ` `
+       default value: ` `
+
+* `useprimary` (only useful on Linux): defines whether or not micro will use the primary clipboard to copy selections
+   in the background. This does not affect the normal clipboard using Ctrl-C and Ctrl-V.
+
+       default value: `on`
 
 ---