Commit Graph

30 Commits

Author SHA1 Message Date
Kovid Goyal
3803d7e3c2 Use maps package for generic keys/values functions 2023-03-14 22:49:40 +05:30
Kovid Goyal
7ce83e7fd0 Use the generic contains/index from slices instead of our custom one 2023-03-14 22:40:20 +05:30
Kovid Goyal
a2887bb9e0 get rid of utils.Cut since we can now rely on strings.Cut instead 2023-03-04 13:37:55 +05:30
Kovid Goyal
084671b26e Also preread STDIN when using /dev/stdin as the source 2023-01-26 12:57:12 +05:30
Kovid Goyal
1cc69b3edd Move pre-read code into a separate function for clarity 2023-01-26 12:49:21 +05:30
Kovid Goyal
d88105319d clipboard kitten: Allow STDIN to be connected to a program that itself uses the tty directly
Read in STDIN first, and only then start terminal IO, hopefully allowing
the other program to finish its terminal IO before we start.

Fixes #5934
2023-01-26 12:40:08 +05:30
Kovid Goyal
22d562ca41 DRYer 2023-01-25 15:38:23 +05:30
pagedown
83f505e209 Update known textual mimes to Python
Also add default aliases for JavaScript and XML in Go.
2023-01-25 16:42:15 +08:00
Kovid Goyal
5a86bc2411 Add default aliases for YAML and TOML 2023-01-25 11:54:09 +05:30
Kovid Goyal
b9c324586e Also recognize a few well known MIME types as being textual 2023-01-24 18:30:46 +05:30
Kovid Goyal
41fb3c79c5 DRYer 2023-01-24 18:26:01 +05:30
Kovid Goyal
1f00c27097 Also create an automatic text/plain alias when reading from clipboard 2023-01-22 22:04:53 +05:30
Kovid Goyal
7a526d9588 clipboard kitten: When copying, automatically add a text/plain alias if there is at least one text/* MIME and no actual text/plain MIME 2023-01-22 20:41:37 +05:30
Kovid Goyal
0ab618c2dc Fix #5767 2022-12-13 10:20:02 +05:30
Kovid Goyal
94410f2866 Handle EBUSY as well 2022-12-06 12:20:20 +05:30
Kovid Goyal
f35ee1bb40 Fix using primary selection with the extended protocol 2022-12-06 11:15:52 +05:30
Kovid Goyal
b644a42a48 Allow using wildcard mime types when copying from clipboard 2022-12-03 14:06:16 +05:30
Kovid Goyal
6422b323c6 Implement MIME aliases for clipboard 2022-12-03 12:20:03 +05:30
Kovid Goyal
a622a149f6 Allow arbitrary bytes in the mime metadata key 2022-12-03 09:21:36 +05:30
Kovid Goyal
26e8a5186a Avoid extra roundtrip when only reading clipboard mime types 2022-12-03 08:06:48 +05:30
Kovid Goyal
bde737fa38 Finish implementation of clipboard writing 2022-12-03 08:02:27 +05:30
Kovid Goyal
38a7fa73e3 Simplify filter mode operation
Dont need channels and goroutines as writing in the loop is already
asnychronous
2022-12-01 19:54:57 +05:30
Kovid Goyal
fe75493c37 Better error messages 2022-12-01 18:17:53 +05:30
Kovid Goyal
e187265d04 Dont truncate the output file just to get tis permission bits 2022-12-01 14:13:28 +05:30
Kovid Goyal
0a985134e2 Ensure permissions are correct when using atomic writes 2022-12-01 14:04:52 +05:30
Kovid Goyal
e555d963b1 DRYer 2022-12-01 13:58:06 +05:30
Kovid Goyal
f29ce19097 Reading arbitrary MIME from clipboard now works 2022-12-01 13:35:44 +05:30
Kovid Goyal
3cf874f6e9 Work on implementing read support in the clipboard kitten 2022-11-29 22:07:51 +05:30
Kovid Goyal
a721ffeb7d Finish porting clipboard kitten to Go 2022-11-26 15:15:30 +05:30
Kovid Goyal
4d3f3b5e91 Start moving clipboard kitten to kitty-tool 2022-11-25 12:58:10 +05:30