Commit Graph

713 Commits

Author SHA1 Message Date
Kovid Goyal
76eab44f53 Have the receiving side send progress updates
This is both more accurate and works for rsync based transfers, where we
dont know the total size to transmit because of the streaming nature of
the rsync protocol.
2021-10-03 11:04:46 +05:30
Kovid Goyal
3a373a200c Add a tell() method to PatchFile to track how much has been written 2021-10-03 10:18:28 +05:30
Kovid Goyal
f6e518d2f9 DRYer 2021-10-02 12:06:56 +05:30
Kovid Goyal
c79a0108a1 Remove unneeded code 2021-10-02 11:24:43 +05:30
Kovid Goyal
20fcc5e31b DRYer 2021-10-02 11:16:47 +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
f85f39e662 Code to easily develop librsync bindings 2021-10-02 07:22:33 +05:30
Kovid Goyal
0e9be57119 ... 2021-10-02 06:25:57 +05:30
Kovid Goyal
ffd7b5779b Fix end of data not being sent when using rsync 2021-10-02 06:15:06 +05:30
Kovid Goyal
cfeeec95fa Start work on delta based file transmission 2021-10-01 17:26:27 +05:30
Kovid Goyal
e6cff61f99 Move management of destination file completely into PatchFile 2021-10-01 14:29:14 +05:30
Kovid Goyal
5cafe198bf icat: Fix EXIF orientation not taken into account when resizing 2021-09-30 08:45:41 +05:30
Kovid Goyal
4ce2690bd2 DRYer 2021-09-30 08:39:27 +05:30
Kovid Goyal
b1375e5ed1 ask kitten: Allow clicking on a choice to select it
Fixes #4071
2021-09-28 20:13:11 +05:30
Kovid Goyal
44bcbc4823 Make it easier to handle simple click events 2021-09-28 20:12:55 +05:30
Kovid Goyal
343eb56cdf Fix import of MouseEvent 2021-09-28 15:46:35 +05:30
Kovid Goyal
066dfc71aa A kitten to demo mouse handling 2021-09-28 13:48:56 +05:30
Kovid Goyal
769cd9be3f DRYer 2021-09-28 13:31:06 +05:30
Kovid Goyal
0f9d6a1e4a Forgot to clear screen before drawing 2021-09-28 12:56:19 +05:30
Kovid Goyal
3c742a0037 Use pixel mode for mouse tracking in kittens 2021-09-28 12:46:41 +05:30
Kovid Goyal
f3447d187d Allow handlers to ask for mouse events 2021-09-28 09:32:53 +05:30
Kovid Goyal
276696414e Use a full handler for choices in the ask kitten 2021-09-28 09:14:34 +05:30
Kovid Goyal
7e17ed21ce Use the atomic update decorator everywhere 2021-09-27 12:00:33 +05:30
Kovid Goyal
b1f4b2d8ed Use pending updates for unicode input kitten
Avoids all possibility of flicker
2021-09-27 11:33:21 +05:30
Kovid Goyal
f3177d8878 Merge branch 'unicode-input-scroll-4064' of https://github.com/dusanx/kitty 2021-09-27 11:17:42 +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
b70064d1be Use a default set of ssh options if the binary is not found 2021-09-27 10:49:38 +05:30
Dusan Popovic
ffca2ecf19 scroll in unicode input 2021-09-26 23:18:33 +01:00
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
41003d106a Set the signature parameters manually when rs_sig_args is not available 2021-09-20 11:42:44 +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
1036132838 Rename pw to bypass 2021-09-19 17:21:57 +05:30
Kovid Goyal
1d1d82ca50 Setup ropr buffer sizes for rsync operations 2021-09-19 17:19:34 +05:30
Kovid Goyal
85be3e4ed1 Also avoid mallocs for the output buffer 2021-09-19 15:28:22 +05:30
Kovid Goyal
d5d52ec8b9 When driving a job on a file avoid mallocs for each read 2021-09-19 13:49:10 +05:30
Kovid Goyal
ecb0d1f325 More work on wrapping librsync 2021-09-19 13:26:09 +05:30
Kovid Goyal
68436c93a7 More work on the transfer kitten 2021-09-19 10:17:53 +05:30
Kovid Goyal
2a9dff2846 Function to create the delta for a file 2021-09-18 14:00:59 +05:30
Kovid Goyal
bcd1837924 Generator for loading signatures
Also dont waste memory when no output is expected
2021-09-18 13:52:26 +05:30
Kovid Goyal
77508bfe0d Handle blocking with unused input in librsync 2021-09-18 13:08:53 +05:30
Kovid Goyal
cf517effb3 Wrap more of the librsync API 2021-09-18 12:49:38 +05:30
Kovid Goyal
901a075a38 ... 2021-09-18 11:51:54 +05:30
Kovid Goyal
348e632dd6 Fix building on the usual ancient Linux distro suspects
Detect if librsync is new enough to have rs_sig_args
2021-09-18 10:49:46 +05:30
Kovid Goyal
067502bd66 Fix warning on ancient gcc 2021-09-18 10:25:18 +05:30
Kovid Goyal
2fc972a173 rename function 2021-09-18 09:39:12 +05:30
Kovid Goyal
a941b1af4e Implement signature generation 2021-09-17 17:42:25 +05:30
Kovid Goyal
f0fab80f5b Start work on rsync support for file transfers 2021-09-17 13:41:45 +05:30
Kovid Goyal
a0740d1616 Use multi-phase initialization for unicode-names 2021-09-17 08:56:55 +05:30
Kovid Goyal
8986d15a5b Remove unused code 2021-09-17 08:39:41 +05:30