Commit Graph

544 Commits

Author SHA1 Message Date
Kovid Goyal
950edb1110 Fix symlink transmission 2021-11-05 13:18:58 +05:30
Kovid Goyal
c4b3723372 More work on file transfer 2021-11-05 13:10:04 +05:30
Luflosi
bb5ded4e65 Don't rely on nanosecond resolution when testing mtime transmission
Commit 85cea78b3c missed a couple instances where the mtime was not a multiple of 1µs.
See https://github.com/kovidgoyal/kitty/issues/4175.
2021-11-01 21:06:23 +01:00
Kovid Goyal
85cea78b3c Use 13000 when testing mtime transmission as there exist some systems with a 1000ns resolution. See #4175 2021-10-31 19:13:55 +05:30
Luflosi
e82e57a30c Remove unused code
Since 99d9cb0b0d runs all tests with HOME set to a temporary directory, this code setting the cache directory to a temporary directory is no longer needed. `cache_dir()` will choose a directory in the home directory if neither KITTY_CACHE_DIRECTORY or XDG_CACHE_HOME are set.
2021-10-31 11:42:55 +01:00
Kovid Goyal
d03f4dbc98 More work on file transfer 2021-10-30 16:54:27 +05:30
Kovid Goyal
ee852cf5fc More work on file transmission 2021-10-29 21:52:49 +05:30
Kovid Goyal
820a893d75 More work on file transfer 2021-10-29 15:01:31 +05:30
Kovid Goyal
2443dc135c Use a faster implementation of the Color type
Now implemented in C
2021-10-28 11:15:13 +05:30
Kovid Goyal
b51be8382f Transmit home directory when sending so filenames can be resolved
Also only send metadata if permission granted by user
2021-10-21 20:06:53 +05:30
Kovid Goyal
6546c1da9b run pyupgrade to upgrade the codebase to python3.6 2021-10-21 12:43:55 +05:30
Kovid Goyal
8f0b3983ee Apparently only importlib_resources has actually deprecated contents() 2021-10-20 11:15:51 +05:30
Kovid Goyal
7f2ce045ab Handle deprecation of importlib.resources APIs 2021-10-19 09:14:58 +05:30
Kovid Goyal
5f91084968 More work on file transfer 2021-10-18 13:02:37 +05:30
Kovid Goyal
706494016c More work on file transmission 2021-10-14 18:29:02 +05:30
Kovid Goyal
563b7ad2d0 Linux binary builds: Fix Pygments not being included 2021-10-11 20:00:56 +05:30
Kovid Goyal
fbf47f75d5 Fix soft hyphens not being preserved when round tripping text through the terminal
Also roundtrip all characters in the Cf category.

Characters with the DI (Default Ignorable) property are now
preserved but not rendered and treated as zero-width
as per the unicode standard.
See https://www.unicode.org/faq/unsup_char.html
2021-10-07 12:44:22 +05:30
Kovid Goyal
498d3d5906 More cleanups 2021-10-05 11:58:06 +05:30
Kovid Goyal
57152a8e29 Fix utmp test 2021-10-05 11:41:18 +05:30
Matt Fellenz
1d4a86594b Add tests for UTMP methods 2021-10-04 20:49:48 -07:00
Kovid Goyal
df1ecad7e9 Fix failing test
Ignore progress messages in the tests
2021-10-03 12:01:41 +05:30
Kovid Goyal
01299421ee Fix typo causing test to fail 2021-10-02 11:07:34 +05:30
Kovid Goyal
5729e33412 librsync actually blocks on output buffer size as well as input availability. So handle that 2021-10-02 09:26:35 +05:30
Kovid Goyal
e6cff61f99 Move management of destination file completely into PatchFile 2021-10-01 14:29:14 +05:30
Kovid Goyal
7d41aca0e4 More word selection direction change fixes 2021-09-27 20:42:22 +05:30
Kovid Goyal
c71d8fe1cc Fix #4070 2021-09-27 17:29:22 +05:30
Kovid Goyal
3bc7b5bad9 Remote file transfer: Fix transfer not working is custom ssh port or identity is specified on the SSH command line
Fixes #4067
2021-09-27 10:58:40 +05:30
Kovid Goyal
259ca4a11e Speed up parsing of file transfer OSC codes
Avoid roundtrips between unicode and bytes objects
2021-09-25 14:05:21 +05:30
Kovid Goyal
17e95cb615 Add a test for rsync roundtrip 2021-09-19 20:55:00 +05:30
Kovid Goyal
b5c086aedb ... 2021-09-19 20:25:08 +05:30
Kovid Goyal
f0fab80f5b Start work on rsync support for file transfers 2021-09-17 13:41:45 +05:30
Kovid Goyal
5ce71506c8 Various minor fixes in nightly pipeline 2021-09-16 22:31:43 +05:30
Kovid Goyal
d042ea5ab9 Split up tranfer kitten code into modules 2021-09-16 13:47:12 +05:30
Kovid Goyal
5f32d2e56f Uppercase DELETE_ENV_VAR 2021-09-16 10:16:33 +05:30
Kovid Goyal
5b716df45f We dont need a special class for delete_env_var 2021-09-16 09:53:54 +05:30
Kovid Goyal
66e2e60ac4 Allow deleting environment vars from the child environment using env 2021-09-16 08:43:17 +05:30
Kovid Goyal
6993c905e3 Disallow empty ids in file transfer commands 2021-09-13 09:53:59 +05:30
Kovid Goyal
31ead3f088 Basic file transfer works for sending 2021-09-12 10:02:23 +05:30
Kovid Goyal
9db9638bc3 Soak up protocol responses after a cancel to avoid outputting garbage to the shell after the kitten exits 2021-09-11 10:48:40 +05:30
Kovid Goyal
f9c99a61d4 More work on file transfer 2021-09-09 12:59:31 +05:30
Kovid Goyal
745e97e0ab Send a started response after each dest file is registered 2021-09-08 09:59:45 +05:30
Kovid Goyal
af5c0b3b71 More work on transmission kitten 2021-09-08 08:56:14 +05:30
Kovid Goyal
40786427b0 More work on file transmission 2021-09-01 09:22:04 +05:30
Kovid Goyal
161a54ceaa Disable transmission tests pending rewrite 2021-08-30 08:08:41 +05:30
Kovid Goyal
075b4d252a DRYer 2021-08-24 07:49:12 +05:30
Kovid Goyal
1953ecdf4d Add tests for container transmission 2021-08-23 22:10:26 +05:30
Kovid Goyal
d9cc1d67c0 Make path comparison more robust 2021-08-23 11:48:21 +05:30
Kovid Goyal
d178f4c75d Implement canceling of file transmission 2021-08-23 11:33:03 +05:30
Kovid Goyal
0668a3bf2a Send a response indicating transmission was successful 2021-08-23 11:09:45 +05:30
Kovid Goyal
d548b21be2 Allow interleaving file transmissions 2021-08-22 22:08:03 +05:30