Kovid Goyal
4f72bb9894
Replace utils.Once with stdlib sync.OnceValue
2023-08-09 12:08:42 +05:30
Kovid Goyal
49ea26968c
Bump go version to 1.21
...
Allows us to use the much faster builtin min/max functions
for two variable min/max
2023-08-09 11:58:16 +05:30
Kovid Goyal
341d845b9a
Port calls to slices.Sort functions since they now need a cmp() function rather than a less() function
...
Also rename os.SEEK_* to io.Seek* as the former has been deprecated
2023-08-04 22:50:13 +05:30
Kovid Goyal
ca485cc0f7
Make getting function name a utility function
2023-07-30 19:49:46 +05:30
Kovid Goyal
5881041fcd
Ensure shortduration is no more than 8 chars
2023-07-30 19:49:46 +05:30
Kovid Goyal
b60d15fe75
Make short duration formatter re-useable
2023-07-30 19:49:46 +05:30
Kovid Goyal
b3819d3226
Ensure output.Write is not called outside of the stream decompressor function
2023-07-30 19:49:45 +05:30
Kovid Goyal
301f309444
...
2023-07-30 19:49:45 +05:30
Kovid Goyal
42c9f30618
Change receive code to use new streaming decomp infra
2023-07-30 19:49:45 +05:30
Kovid Goyal
b4d8eaa0fe
...
2023-07-30 19:49:45 +05:30
Kovid Goyal
a210e0c977
Simplify stream decompressor
2023-07-30 19:49:45 +05:30
Kovid Goyal
73ee5b32c9
A better way to wrap go's zlib into a streaming decompressor
2023-07-30 19:49:44 +05:30
Kovid Goyal
08e3dbb8e7
Patcher signature generation implemented
2023-07-30 19:49:42 +05:30
Kovid Goyal
74e0fa3f1d
Show invocation line for failing test
2023-07-30 19:49:40 +05:30
Kovid Goyal
ed6e3dfe2c
Speedup Memset for single val
2023-07-30 19:49:40 +05:30
Kovid Goyal
26c22f0086
Work on creating tests for rsync api
2023-07-30 19:49:40 +05:30
Kovid Goyal
10362c3121
DRYer
2023-07-30 19:49:39 +05:30
Kovid Goyal
dee6210de5
Utility function to initialize struct based on default tags
2023-07-30 19:49:39 +05:30
Kovid Goyal
5d361757a2
more work on the transfer kitten
2023-07-30 19:49:38 +05:30
Kovid Goyal
ff3232547d
More work on transfer kitten porting
2023-07-30 19:49:38 +05:30
Kovid Goyal
55bbf175c6
Port send file mapping tests
2023-07-30 19:49:37 +05:30
Kovid Goyal
be7f276d3e
More work on the transfer kitten
2023-07-30 19:49:37 +05:30
Kovid Goyal
58312fffee
Also detect makefiles as plain text files
2023-07-24 10:53:39 +05:30
Kovid Goyal
51aaea03bf
Go code to get the shell of the current user
2023-06-25 13:12:35 +05:30
Kovid Goyal
2787f305f3
Generic helper to concatenate arbitrary numbers of slices
2023-06-24 09:13:20 +05:30
Kovid Goyal
e59e42a6c2
simplify API of utils.Once
2023-05-26 22:42:07 +05:30
Kovid Goyal
d89c1426d5
Dont use non-writeable locations containing kitty.conf as the config dir
2023-05-26 08:40:47 +05:30
Kovid Goyal
b966013a2b
Make Samefile interface a bit nicer for working with paths
2023-04-17 08:35:50 +05:30
Kovid Goyal
266746c96e
Implement the trim_whitespace option
...
Needed for help text formatting
2023-03-29 21:28:47 +05:30
Kovid Goyal
34526517de
Allow passing multiple options to control how wrapping is done
2023-03-29 20:56:24 +05:30
Kovid Goyal
cb99fbd83c
Dont remove leading and trailing spaces when wrapping
...
Without this we lose some spaces and also there was a case where the
line could end up longer than the specified width.
2023-03-29 20:47:31 +05:30
Kovid Goyal
3f9579d61d
Port the removed walk test to Go
2023-03-27 12:34:31 +05:30
Kovid Goyal
d66da811db
More work on getting images to display in diff
2023-03-27 07:53:57 +05:30
Kovid Goyal
cece795b16
More work on image support for diff
2023-03-27 07:53:57 +05:30
Kovid Goyal
508a61bd1c
More work on diffing images
2023-03-27 07:53:57 +05:30
Kovid Goyal
c745961f47
Nicer error messages for failure to load with Magick
2023-03-27 07:53:57 +05:30
Kovid Goyal
be886f9bf9
Make code for loading images with ImageMagick re-useable
2023-03-27 07:53:57 +05:30
Kovid Goyal
404a775f4b
Start work on image support for new diff kitten
2023-03-27 07:53:57 +05:30
Kovid Goyal
e774deaef1
Fix tabs and carriage returns being incorrectly sanitized
2023-03-27 07:53:56 +05:30
Kovid Goyal
09c6a68804
Fix syntax highlighting of multiline tokens
2023-03-27 07:53:56 +05:30
Kovid Goyal
4c9efb6ff2
Fix bold/dim handling when wrapping
2023-03-27 07:53:56 +05:30
Kovid Goyal
4bc9cf84a3
Micro-optimization
2023-03-27 07:53:56 +05:30
Kovid Goyal
88bd3ee9ca
New SGR codes to turn off bold/dim independently
...
Allows for robust patching of formatting into already formatted
text. Without this it is not possible to turn off bold without
affecting existing dim and vice versa.
2023-03-27 07:53:55 +05:30
Kovid Goyal
c2e549b79c
Implement syntax highlighting
2023-03-27 07:53:55 +05:30
Kovid Goyal
924cd4cadd
Do not add a trailing newline when wrapping
2023-03-27 07:53:55 +05:30
Kovid Goyal
e42b4fd9a6
Decrease allocs when wrapping
2023-03-27 07:53:54 +05:30
Kovid Goyal
18b58c5cf9
Ensure wrapping never results in lines longer than the specified word
2023-03-27 07:53:54 +05:30
Kovid Goyal
648925e83a
More work on porting diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
1c7d1094d4
More work on porting diff kitten
2023-03-27 07:53:54 +05:30
Kovid Goyal
5d8b5ab720
More work on porting diff kitten
2023-03-27 07:53:54 +05:30