Commit Graph
101 Commits
Author SHA1 Message Date
Kovid Goyal bde737fa38 Finish implementation of clipboard writing 2022-12-03 08:02:27 +05:30
Kovid Goyal e555d963b1 DRYer 2022-12-01 13:58:06 +05:30
Kovid Goyal 3601488b26 Add a generic Values() 2022-12-01 13:47:06 +05:30
Kovid Goyal f29ce19097 Reading arbitrary MIME from clipboard now works 2022-12-01 13:35:44 +05:30
Kovid Goyal f9a22d0bc7 Port ANSI escape code parser to Go 2022-11-25 21:03:09 +05:30
Kovid Goyal 0af48a4d05 Start work on implementing edit-in-kitty in kitty-tool 2022-11-17 17:05:25 +05:30
Kovid Goyal 5ad2ac259b When truncating descriptions for completion truncate at word boundaries 2022-11-17 08:29:01 +05:30
Kovid Goyal e70c021371 Some basic TUI widgets ported to Go 2022-11-16 12:48:47 +05:30
Kovid Goyal 0c0b9e6b9c Fix deadlock in update-self 2022-11-15 22:33:23 +05:30
Kovid Goyal d54fe3c16a Start work on a command to self update kitty-tool 2022-11-15 21:29:11 +05:30
Kovid Goyal b42677b343 Utility function to download a URL to a file path with progress reporting 2022-11-15 16:53:43 +05:30
Kovid Goyal 7eae176b88 Code to build static versions of kitty-tool 2022-11-14 16:27:19 +05:30
Kovid Goyal 4974219e0f Add function to shlex for completion
Also remove the google header since we have diverged from
the original a fair bit. Add a link to the original for credit.
2022-11-14 15:42:08 +05:30
Kovid Goyal a4de4b7c6f Report stream start position for tokens 2022-11-14 15:42:08 +05:30
Kovid Goyal eae4899df4 Use a string builder instead of appending to a slice 2022-11-14 15:42:08 +05:30
Kovid Goyal 87b4800fdf Get rid of comment parsing from shlex
POSIX does not define comments
2022-11-14 15:42:08 +05:30
Kovid Goyal 64156fd6e6 Have the shlex tokenizer return space tokens as well 2022-11-14 15:42:08 +05:30
Kovid Goyal 1485981b11 Have the shlex tokenizer track position in stream and return defined error types 2022-11-14 15:42:08 +05:30
Kovid Goyal 8d76cf8d32 Import the google shlex package as we need more sophisticated parsing 2022-11-14 15:42:08 +05:30
Kovid Goyal d260d2f480 Add some test for vertical movement 2022-11-14 15:42:06 +05:30
Kovid Goyal 88567f69b2 Start work on history support for readline 2022-11-14 15:42:05 +05:30
Kovid Goyal fe91af5e09 Go stdlib doesnt even have a way to lock files 2022-11-14 15:42:05 +05:30
Kovid Goyal c0f17c279e Add a generic ring buffer
Go's stdlib is very anemic
2022-11-14 15:42:05 +05:30
Kovid Goyal 7264bea8c9 Fix selector incorrectly marking fd as ready on EINTR 2022-11-14 15:42:04 +05:30
Kovid Goyal 75ead358a2 Show suggestions for options based on levenshtein distance 2022-11-14 15:42:03 +05:30
Kovid Goyal cb2389efa5 Use the standard library deque
Drops a dependency
2022-11-14 15:42:01 +05:30
Kovid Goyal 4316018966 ... 2022-11-14 15:42:01 +05:30
Kovid Goyal a0bf6177e2 Use a LRUCache rather than an Unbounded one 2022-11-14 15:42:01 +05:30
Kovid Goyal 3078b9074a Also report submatch positions 2022-11-14 15:42:01 +05:30
Kovid Goyal dffb87ced9 Make the cache re-useable 2022-11-14 15:42:01 +05:30
Kovid Goyal 4adea5b7fe Make ReplaceAll re-useable 2022-11-14 15:42:01 +05:30
Kovid Goyal ef49634353 Fix some issues reported by staticcheck 2022-11-14 15:42:01 +05:30
Kovid Goyal b1e08adbce Utility function to sort with key 2022-11-14 15:42:00 +05:30
Kovid Goyal e7f38929d9 DRYer 2022-11-14 15:42:00 +05:30
Kovid Goyal 2cacd7a64a get rid of interface{} since we now require Go 1.18 2022-11-14 15:42:00 +05:30
Kovid Goyal a44c89504b More convenient interface for sorting 2022-11-14 15:42:00 +05:30
Kovid Goyal 8807f6d539 Code to get exe name for usage message 2022-11-14 15:42:00 +05:30
Kovid Goyal a3a89b3e21 More efficient multi line scanning 2022-11-14 15:42:00 +05:30
Kovid Goyal 2ddbe2a2bc Automatically camel-case destination 2022-11-14 15:42:00 +05:30
Kovid Goyal cbbda23e01 Utility code to find longest common prefix/suffix and to quote strings for various shells 2022-11-14 15:41:58 +05:30
Kovid Goyal 1ff4f2df4f Refactor the CLI markup code to make it re-useable 2022-11-14 15:41:58 +05:30
Kovid Goyal 7737369fc9 Add completion for the kittens 2022-11-14 15:41:58 +05:30
Kovid Goyal 3c29ce936b Dont recurse for file completion
We could potentially end up recursing over the entire file system. And
for completion we only present the candidates in the immediate directory
anyway.
2022-11-14 15:41:57 +05:30
Kovid Goyal ced741b247 More corner cases 2022-11-14 15:41:57 +05:30
Kovid Goyal 3326e9ef49 Move code to walk with symlinks to the utils module 2022-11-14 15:41:57 +05:30
Kovid Goyal 3d79eb5730 more tests for indent and wrap 2022-11-14 15:41:56 +05:30
Kovid Goyal af7f4e97cf More work on the new formatter 2022-11-14 15:41:56 +05:30
Kovid Goyal 40a9ab8929 Allow ignoring lines containing a sentinel 2022-11-14 15:41:56 +05:30
Kovid Goyal e433b90297 Dont drop trailing escape codes when stripping trailing whitespace 2022-11-14 15:41:56 +05:30
Kovid Goyal 1ac7d9c10d Basic wrap is working 2022-11-14 15:41:56 +05:30