Commit Graph

7666 Commits

Author SHA1 Message Date
Kovid Goyal
5ce71506c8 Various minor fixes in nightly pipeline 2021-09-16 22:31:43 +05:30
Kovid Goyal
ad5b43f6db Start work on infrastructure for nightly builds 2021-09-16 22:13:01 +05:30
Kovid Goyal
aa9855516f Change memory allocation strategy for pending buf
Now it is allocated on demand. This prevents it from blowing up
to READ_BUF_SZ * 2 (2MB) if a small pending update is followed by a
large non pending section in the read buffer, which is commonly
triggered for instance by the transfer kitten which uses pending updates
for its screen drawing mixed with non-pending data transmission.

This is a slight performance penalty since there is a branch when
writing every char to the pending buffer, but the branch will be almost
always one sided so should be well predicted.

In any case, filling the pending buffer is not a performance bottleneck,
compared to actually dispatching parsed escape codes.
2021-09-16 20:23:15 +05:30
Kovid Goyal
fcd4649642 Use pending mode for progress bar updates 2021-09-16 19:54:48 +05:30
Kovid Goyal
e12246983b Fix the upper limit for the pending buffer
The pending buffer needs to be twice the max size of the read buffer.
2021-09-16 19:53:55 +05:30
Kovid Goyal
e8e7ad3b75 DRYer 2021-09-16 18:34:51 +05:30
Kovid Goyal
e9d648d37c Handle exceptions in the tui context managers 2021-09-16 18:28:29 +05:30
Kovid Goyal
eaeece8177 Use the repeat escape code for progress bar rendering 2021-09-16 17:55:22 +05:30
Kovid Goyal
aa9a991a85 Draw separator for final total 2021-09-16 17:45:11 +05:30
Kovid Goyal
0d37431def Report individual file transfer failures 2021-09-16 17:40:19 +05:30
Kovid Goyal
44dfd7a803 More work on transfer kitten 2021-09-16 17:28:26 +05:30
Kovid Goyal
d2809a0acb More work on transfer kitten 2021-09-16 15:27:53 +05:30
Kovid Goyal
4b074d723e ... 2021-09-16 14:01:48 +05:30
Kovid Goyal
deb6abe50e Ancient python compat 2021-09-16 13:50:05 +05:30
Kovid Goyal
d042ea5ab9 Split up tranfer kitten code into modules 2021-09-16 13:47:12 +05:30
Kovid Goyal
bc7c1e4d05 More work on the transfer kitten 2021-09-16 13:34:32 +05:30
Kovid Goyal
a4c5e7c2ee More work on the transfer kitten 2021-09-16 13:02:39 +05:30
Kovid Goyal
504d915723 Fix div by zero errors 2021-09-16 10:30:28 +05:30
Kovid Goyal
039ea95390 Sanitize displayed file names 2021-09-16 10:19:08 +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
69dc09489b Fix name collision 2021-09-16 07:59:42 +05:30
Kovid Goyal
33a6abfc07 More work on the transfer kitten 2021-09-16 07:39:07 +05:30
Kovid Goyal
f277cbf3f3 Improved trailing newline handling in the fish shell integration
Thanks to some assistance from @faho
See https://github.com/kovidgoyal/kitty/issues/4032#issuecomment-919936913
2021-09-15 21:06:28 +05:30
Kovid Goyal
0a56ab7a1e Workaround for fish splitting on newlines when doing command substitution 2021-09-15 18:12:40 +05:30
Kovid Goyal
a073936997 Fish shell integration: Strip trailing newlines from the original fish prompt as fish does this 2021-09-15 16:58:31 +05:30
Kovid Goyal
5c1dd69963 forgot this in the last commit 2021-09-15 14:03:01 +05:30
Kovid Goyal
c08dc64581 spinner and progress bar for kittens UI 2021-09-15 13:39:39 +05:30
Kovid Goyal
5916bbd5b3 Merge branch 'master' of https://github.com/DiegoBaldassar/kitty 2021-09-15 07:31:51 +05:30
DiegoBaldassar
8c104b52f9 icat: fix exception thrown if stdin is None
Don't use sys.stdin if --stdin=no is given, or if --stdin=detect is given and sys.stdin is None
2021-09-14 22:18:34 +02:00
Kovid Goyal
7266cb653d Add a reference for the claim of minimal latency 2021-09-14 22:38:58 +05:30
Kovid Goyal
2a8fd278c1 Bring implementation of XTSAVE and XTRESTORE into line with xterm
Now a stack of depth 1 is used to save/restore private mode values. And
saving/restoring individual modes is supported. This latter is used by
midnight commander.
2021-09-14 21:59:41 +05:30
Kovid Goyal
4c25ceff29 Remove duplicated reset of mouse_utf8_mode 2021-09-14 20:22:28 +05:30
Kovid Goyal
26f0b53bb2 Dont compress already compressed files 2021-09-14 20:11:34 +05:30
Kovid Goyal
101377d7f2 Better fix for reflow with last line being empty output start line 2021-09-14 14:18:47 +05:30
Kovid Goyal
2487f55bbc Merge branch 'patch-1' of https://github.com/vincentbernat/kitty 2021-09-14 13:06:57 +05:30
Vincent Bernat
f69e718151 Fix typo in documentation
"programmble" → "programmable"
2021-09-14 09:04:06 +02:00
Kovid Goyal
5d516a8584 ... 2021-09-13 13:26:30 +05:30
Kovid Goyal
b1322fbe04 Prompt for permission when reading from clipboard by default
Fixes #4022
2021-09-13 12:32:40 +05:30
Kovid Goyal
38a5e38f88 Transmit hashed password 2021-09-13 12:00:38 +05:30
Kovid Goyal
78fd05c1c6 ... 2021-09-13 11:49:17 +05:30
Kovid Goyal
6993c905e3 Disallow empty ids in file transfer commands 2021-09-13 09:53:59 +05:30
Kovid Goyal
14f8ce6e15 Add a python wrapper to play arbitrary sounds 2021-09-13 08:59:34 +05:30
Kovid Goyal
d726eb354d Play with human size some more 2021-09-12 13:41:51 +05:30
Kovid Goyal
1136c64d49 Make human_size() a little nicer 2021-09-12 13:28:07 +05:30
Kovid Goyal
3f3179db0c ... 2021-09-12 12:47:58 +05:30
Kovid Goyal
d224a4c39f When receiving a long delayed cancel request process it before pruning 2021-09-12 12:46:30 +05:30
Kovid Goyal
3eee442f28 Output total transfer size when confirming 2021-09-12 12:41:48 +05:30
Kovid Goyal
7c90812e51 ... 2021-09-12 12:21:03 +05:30