Commit graph

1094 commits

Author SHA1 Message Date
pagedown
7cc3d5907f
Docs: Prefer namespaced launch points 2022-02-08 01:07:23 +08:00
pagedown
80a62c8d71
Add preamble to generated file and fix gen-config.py filename 2022-02-05 13:05:13 +08:00
Kovid Goyal
1e7edd0218
... 2022-02-03 20:14:52 +05:30
Kovid Goyal
2fd8ef389e
Fix use-python not working reliably with SSH kitten 2022-02-03 19:58:10 +05:30
Kovid Goyal
53589c3954
ssh kitten: Fix location of generated terminfo files on NetBSD
Fixes #4622
2022-02-03 19:51:37 +05:30
pagedown
4a3ed62809
Refactor: More f-string for kittens 2022-01-29 20:23:34 +08:00
pagedown
dc61adf9d8
Refactor: More f-string 2022-01-28 19:34:13 +08:00
Kovid Goyal
5cdff7d6d0
themes kitten: Allow writing to a different file than kitty.conf 2022-01-27 20:24:39 +05:30
Kovid Goyal
0a3acd9738
ask kitten: Use buttons for choices as well 2022-01-22 13:57:25 +05:30
Kovid Goyal
08f159c2ba
TypeCheck underline style names 2022-01-22 12:41:26 +05:30
Kovid Goyal
d4e7587686
use underline instead of color for default choice 2022-01-22 12:35:43 +05:30
Kovid Goyal
32e31a3c6b
Cancelling the choice kitten should return the empty response 2022-01-22 12:13:32 +05:30
Kovid Goyal
9419125387
Highlight the default choice in yellow 2022-01-22 11:45:01 +05:30
Kovid Goyal
1bbab217d0
ask kitten: Always have a default choice 2022-01-22 11:39:54 +05:30
Kovid Goyal
05d648d411
ask kitten: Draw yes/no buttons 2022-01-22 11:32:26 +05:30
Kovid Goyal
5c832d3190
Allow multiple clickable ranges 2022-01-22 10:52:44 +05:30
Kovid Goyal
0d33380e6a
Cleanup previous PR
yesno default should be yes.
Pressing q to quit is undiscoverable
Clicking empty cells should not trigger buttons as that is
undiscoverable and possibly surprising
2022-01-22 10:44:01 +05:30
Kovid Goyal
9944b895a6
Merge branch 'kitten-ask' of https://github.com/page-down/kitty 2022-01-22 10:06:52 +05:30
Kovid Goyal
fe7045dd2f
Ask kitten: Fix rendering of multiline messages 2022-01-22 09:40:05 +05:30
pagedown
7ef73babdd
Use fixed values for unchanging dict to replace split and for loops 2022-01-22 11:36:04 +08:00
pagedown
a47aca6fdb
Add new dotted and dashed underline enum
Also use "straight" for single underline, consistent with the protocol
extension document.
2022-01-22 11:00:49 +08:00
pagedown
4fe10fadb0
... 2022-01-22 09:45:32 +08:00
pagedown
88ee5e95fc
Add default choices for features that use ask kitten 2022-01-22 03:21:59 +08:00
pagedown
9a119255fe
ask kitten: Use the default value as input text
Prefill the current value when changing the tab title.
2022-01-22 03:11:39 +08:00
pagedown
7ce11050cd
ask kitten: Esc to abort and Enter to confirm the default choice 2022-01-22 02:50:50 +08:00
pagedown
9b4d1219b8
Add default choice option for ask kitten 2022-01-22 02:46:37 +08:00
pagedown
4dd29c726a
Make the clickable range of No the same as Yes
Since the two options are treated equally, the same amount of mouse
clickable range are given.
2022-01-22 02:41:52 +08:00
Kovid Goyal
17e31565e2
Get it working even with 2 row windows assuming they are wide enough to fit the title on a single line 2022-01-21 21:46:27 +05:30
Kovid Goyal
dd72deb546
Allow ask kitten to function in a 3 line window 2022-01-21 21:43:25 +05:30
Kovid Goyal
cd0ca95877
Improve the UI of the ask kitten
Center the text in the window and allow pressing enter/esc when doing a
yes/no question

Fixes #4545
2022-01-21 20:02:13 +05:30
Kovid Goyal
f9a4b6bb0d
Use an enum for state as well 2022-01-18 13:58:55 +05:30
Kovid Goyal
f1fbfe297d
Use an enum for background work 2022-01-18 13:50:05 +05:30
Kovid Goyal
2c0ac895e6
diff kitten: Fix exiting while highlighting is incomplete causes kitten to hang until highlighting is done 2022-01-18 13:43:39 +05:30
Kovid Goyal
b32edf54f8
hints kitten: Document how to choose the empty hint for multi key hints 2022-01-15 15:17:30 +05:30
Kovid Goyal
58da5d4d29
Placate mypy 2022-01-14 22:26:05 +05:30
Kovid Goyal
4ce6d718c9
icat kitten: Add options to mirror images and remove their transparency before displaying them
Fixes #4513
2022-01-14 22:02:35 +05:30
Kovid Goyal
8bb2da3c37
Use with instead of closing manually 2022-01-14 21:12:08 +05:30
Kovid Goyal
b2bfc4408e
Fix common single letter extension files not being detected
Fixes #4491
Fixes #4492
2022-01-10 14:20:18 +05:30
Kovid Goyal
5b8aca3a2f
Use an f-string 2022-01-10 08:35:43 +05:30
Kovid Goyal
9b9eae7923
icat: Fix --hold not working with critical errors 2022-01-08 10:22:22 +05:30
Kovid Goyal
d875615c03
Fix a regression in the handling of some combining characters such as zero width joiners
Fixes #4439
2022-01-05 08:50:55 +05:30
Kovid Goyal
9aefcfe56f
Make --hold a bit more robust 2022-01-05 08:14:22 +05:30
Kovid Goyal
dae8ae33f0
hints kitten: Fix matching of filenames enclosed in quotes or brackets not stripping the surrounding quotes properly. Fixes #4419 2022-01-04 10:58:31 +05:30
pagedown
afa0bb4c1d
Avoid using the same variable name in different scopes
Variable names such as a and b are also used in the MIN and MAX macros.
2022-01-03 16:11:20 +08:00
Kovid Goyal
e228f5105e
Merge branch 'refactor' of https://github.com/page-down/kitty 2022-01-02 09:23:25 +05:30
Kovid Goyal
be771456e1
Dont shadow global variable name 2022-01-02 08:59:34 +05:30
Kovid Goyal
8514782ad2
Remove unused code
icat already scales images to fit the screen in process_image() so dont
have to consider the case of the image being wider than the screen in
set_cursor()
2022-01-02 08:56:17 +05:30
pagedown
15615a4cd1
Avoid defining variables with the same name that already exist
Avoid using existing parameter names for local variables.
Avoid using variable names from upper level for nested loops.
Avoid local variables hiding existing global variables.
2022-01-01 21:29:32 +08:00
pagedown
7246fb347c
Remove the unused function 2022-01-01 21:29:06 +08:00
Kovid Goyal
f71e0a6ee8
... 2021-12-21 10:39:06 +05:30
Kovid Goyal
90f2ba474c
Fix icat for GIF images broken 2021-12-20 17:54:55 +05:30
Kovid Goyal
8f0825bc5c
Various fixes for mypy 0.920 2021-12-17 05:56:19 +05:30
Kovid Goyal
2c6d888b3d
... 2021-12-10 07:36:09 +05:30
pagedown
98e44a8907
Unify resolution of absolute paths or config dir paths 2021-12-09 20:43:07 +08:00
pagedown
02a7316342
Use the unified PATH search function 2021-12-09 11:32:30 +08:00
Kovid Goyal
32768e7939
Unify the PATH searching algorithm for launch and running children 2021-12-08 20:10:34 +05:30
pagedown
4a7ae0f524
Docs: use pygments styles official website url 2021-12-08 17:20:13 +08:00
Kovid Goyal
c0b73986cb
Fix #4302 2021-11-30 20:47:16 +05:30
Kovid Goyal
4448444d4b
Fix #4289 2021-11-28 11:47:25 +05:30
Kovid Goyal
e5de16bb01
Use fid_abs prefix for absolute symlinks 2021-11-24 08:41:16 +05:30
Kovid Goyal
56ea741126
Nicer repr for key definitions 2021-11-23 18:19:34 +05:30
Kovid Goyal
b7a28afe7e
missed a couple of options 2021-11-21 22:41:30 +05:30
Kovid Goyal
f3376601f2
Mark various options in text correctly 2021-11-21 22:37:11 +05:30
Kovid Goyal
ecea1ba241
... 2021-11-21 10:05:47 +05:30
Kovid Goyal
ddb1fcf430
Forgot to end receive sessions 2021-11-18 22:31:05 +05:30
Kovid Goyal
ca214ffe78
transfer receive: ensure open files are closed 2021-11-17 15:45:13 +05:30
Kovid Goyal
715925795f
Ignore errors in various finalizers during exit
This was needed for tui loop to exit cleanly when terminal i/o breaks
2021-11-17 15:43:26 +05:30
Kovid Goyal
17a48f6b9f
TUI: exit cleanly when I/O to terminal fails 2021-11-17 15:33:23 +05:30
Kovid Goyal
5c7a1d1b05
Fix typo 2021-11-17 15:19:17 +05:30
Kovid Goyal
46e51811e8
Dont rise an exception in patchfile close()
This allows partial transfers, by overwriting the dest file with the
tempfile even if the transfer was not completed
2021-11-17 14:34:14 +05:30
Kovid Goyal
1a92f99831
... 2021-11-17 13:55:33 +05:30
Kovid Goyal
14142c320a
fix incorrect repeat counts 2021-11-17 13:24:35 +05:30
Kovid Goyal
727260e69b
... 2021-11-17 13:16:50 +05:30
Kovid Goyal
ad804cc01e
Redraw progress bar on resize 2021-11-17 13:04:07 +05:30
Kovid Goyal
dab51d33f5
... 2021-11-17 12:40:06 +05:30
Kovid Goyal
77d7a6180f
unicode input kitten: Also allow using ctrl+number to switch tabs and pressing any modifier with the function keys 2021-11-17 12:17:46 +05:30
Kovid Goyal
185669ec72
Use a shorter random id for transfers
Reduces overhead and we dont actually need protection against malicious
actors, only accidental collisions
2021-11-17 11:47:46 +05:30
Kovid Goyal
18ed56b639
Handle all failed using rsync while waiting for path confirmation 2021-11-17 11:28:19 +05:30
Kovid Goyal
dc2bac0068
Only print rsync stats if some data was transferred 2021-11-17 11:18:31 +05:30
Kovid Goyal
005ab58b15
Fix single file transfer path name mapping for receive 2021-11-17 11:07:50 +05:30
Kovid Goyal
b11b04ef67
Start documenting the file transfer kitten 2021-11-17 10:33:37 +05:30
Kovid Goyal
d936ede790
Finish up rsync for file receives 2021-11-16 15:10:37 +05:30
Kovid Goyal
1603b4b522
More work on rsync based receive 2021-11-16 14:21:42 +05:30
Kovid Goyal
0eac514e52
More rsync integration work 2021-11-16 13:06:16 +05:30
Kovid Goyal
63399fe975
Start work on rsync integration for receiving files 2021-11-16 10:58:32 +05:30
Kovid Goyal
0830e66e76
broadcast kitten: Show a "fake" cursor in all windows being broadcast too
Fixes #4225
2021-11-12 22:59:20 +05:30
Kovid Goyal
a1ca607f35
More work on file transmission 2021-11-11 20:05:54 +05:30
Kovid Goyal
a2533e9a46
Render the progress bar for file receives 2021-11-11 16:32:06 +05:30
Kovid Goyal
0f23edeec3
Fix breakage caused by Color no longer being iterable 2021-11-07 07:15:55 +05:30
Kovid Goyal
69e54cb9c1
More work on file transfer 2021-11-06 20:11:11 +05:30
Kovid Goyal
60b8023928
Ensure transfer is canceled on error 2021-11-06 12:59:13 +05:30
Kovid Goyal
8099ae44d7
create fid_map after collecting files not before 2021-11-06 12:54:20 +05:30
Kovid Goyal
8e8a0d2df6
Fix rel path logic when transferring symlinks 2021-11-05 21:39:07 +05:30
Kovid Goyal
d9f4fadf2d
More work on file transfer 2021-11-05 21:33:47 +05:30
Kovid Goyal
c4b3723372
More work on file transfer 2021-11-05 13:10:04 +05:30
pagedown
b4a6ed8d8f
Allows the visual bell color to be configured 2021-11-02 19:38:36 +08:00
Kovid Goyal
39dcfb4e5d
Auto generate the list of all color config keys 2021-11-02 15:16:55 +05:30
Kovid Goyal
218582ced8
More work on file transfer 2021-10-31 20:05:48 +05:30
Kovid Goyal
4ff3d6a645
More work on file transfer 2021-10-31 13:12:23 +05:30
Kovid Goyal
32805ca968
More work on file transfer 2021-10-31 09:28:20 +05:30
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
60472fcee3
Add more type annotations 2021-10-27 14:00:29 +05:30
Kovid Goyal
d090db380f
Add more type annotations 2021-10-27 13:26:18 +05:30
Kovid Goyal
a26f041964
Add more type annotations 2021-10-27 12:31:10 +05:30
Kovid Goyal
b22bda3cba
Add more type annotations 2021-10-27 11:36:34 +05:30
Kovid Goyal
6f19fd5912
Add more type annotations 2021-10-27 10:50:24 +05:30
Kovid Goyal
4494ddd8ff
mypy: Turn on return value checks
Its a shame GvR is married to "return None"
https://github.com/python/mypy/issues/7511
2021-10-26 22:39:14 +05:30
Kovid Goyal
5cb36a4632
More work on file transfer 2021-10-26 22:05:38 +05:30
Kovid Goyal
4385acd3c6
A new option to set the tab bar margin color independently 2021-10-25 12:21:46 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6 2021-10-21 12:43:55 +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
ed5accd702
Add some common readline bindings to the line editor 2021-10-14 14:29:44 +05:30
Kovid Goyal
e13c34c2b8
Use a bar cursor for LineEdit 2021-10-12 09:13:06 +05:30
Kovid Goyal
da3f34603a
DRYer 2021-10-12 07:41:52 +05:30
Kovid Goyal
97a8ff3478
Fix #4113 2021-10-12 07:35:11 +05:30
Kovid Goyal
5e033773dd
More work on transfer sending 2021-10-10 13:04:47 +05:30
Kovid Goyal
855681200f
... 2021-10-08 15:51:45 +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
34d6c69b2a
fix forgotten import 2021-10-04 21:40:07 +05:30
Kovid Goyal
14d36e3727
Stub for receive in the transfer kitten 2021-10-04 21:31:02 +05:30
Kovid Goyal
31e623afb3
Add support for Unicode 14
Fixes #3542
2021-10-04 14:00:35 +05:30
Kovid Goyal
2080b3d7fa
Print out rsync stats 2021-10-03 13:40:53 +05:30
Kovid Goyal
a8e06a67c2
Better message when transferring rsync signatures 2021-10-03 13:29:50 +05:30
Kovid Goyal
5699c3ae7d
Dont spin report done files 2021-10-03 11:58:24 +05:30
Kovid Goyal
1877a02378
Dont count dirs in transfer stats 2021-10-03 11:30:08 +05:30
Kovid Goyal
e9f344c53f
Improve progress reporting for individual files 2021-10-03 11:26:49 +05:30
Kovid Goyal
d15763f2ad
Dont show transfer stats for non regular files 2021-10-03 11:16:07 +05:30
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
Kovid Goyal
fcd4649642
Use pending mode for progress bar updates 2021-09-16 19:54:48 +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
33a6abfc07
More work on the transfer kitten 2021-09-16 07:39:07 +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
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
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
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
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
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
Kovid Goyal
5c8bcf9379
Implement confirm paths 2021-09-12 12:12:23 +05:30
Kovid Goyal
31ead3f088
Basic file transfer works for sending 2021-09-12 10:02:23 +05:30
Kovid Goyal
efaeb0f0b2
Remove backslashes from CLI theme names if no theme with the name is found 2021-09-12 09:35:31 +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
24255be0bd
Add a permission password to the transfer kitten 2021-09-10 18:09:59 +05:30
Kovid Goyal
0d89eb2c40
When not using alternate screen dont restore cursor position to what it was before initialization 2021-09-10 17:26:01 +05:30
Kovid Goyal
2350952d05
More work on the transfer kitten 2021-09-10 16:54:36 +05:30
Kovid Goyal
f9c99a61d4
More work on file transfer 2021-09-09 12:59:31 +05:30
Kovid Goyal
2178c8e4af
... 2021-09-09 08:43:44 +05:30
Kovid Goyal
8aacf30f19
Centralize definition of file transfer OSC code 2021-09-08 13:43:59 +05:30
Kovid Goyal
af5c0b3b71
More work on transmission kitten 2021-09-08 08:56:14 +05:30
Kovid Goyal
fb0b94eaa1
... 2021-09-03 09:06:03 +05:30
Kovid Goyal
1d9425ecdc
Change transmission protocol to not need container formats 2021-08-29 06:27:07 +05:30
Kovid Goyal
672cf9fffe
Start work on transfer kitten 2021-08-25 11:38:41 +05:30
Kovid Goyal
89f8151579
hints kitten: Fix a regression that caused using the default open program to trigger open actions instead of running the program
Fixes #3968
2021-08-23 11:56:16 +05:30
Kovid Goyal
aa0b344b55
kitten to confirm file transfer requests 2021-08-22 07:23:49 +05:30
Kovid Goyal
7f1c5d8534
DRYer 2021-08-21 17:32:55 +05:30
Kovid Goyal
9a50dfc4b5
broadcast kitten: Allow broadcasting ctrl+c
Fixes #3956
2021-08-19 22:05:29 +05:30
Kovid Goyal
09c18f474f
Broadcast kitten: Fix --match and also remove a useless print 2021-08-19 21:58:04 +05:30
Kovid Goyal
34ec3eac44
icat kitten: Fix display of JPEG images that are rotated via EXIF data and larger than available screen size
Fixes #3949
2021-08-19 09:08:35 +05:30
Kovid Goyal
dbce9a8f29
themes kitten: Fix only the first custom theme file being loaded
Fixes #3938
2021-08-16 20:27:21 +05:30
Kovid Goyal
8cfb1efb01
hints kitten: Make the --program option work with --linenum-action=self
Fixes #3931
2021-08-15 08:27:25 +05:30
Kovid Goyal
f3333ce941
Fix getting connection data from ssh command line when -- is used in the command line
This broke the remote file kitten when using the ssh kitten as the later
was changed to use -- recently.

Fixes #3929
2021-08-13 17:14:43 +05:30
Kovid Goyal
97a9261096
... 2021-08-13 17:04:49 +05:30
Kovid Goyal
5a76dab3c6
ControlMaster must not suppress exceptions 2021-08-13 17:02:27 +05:30
Kovid Goyal
b173dd1c39
Fix error getting editor in remote file kitten not being reported 2021-08-13 16:57:01 +05:30
Kovid Goyal
477a652b44
Function to update a theme file 2021-08-11 09:09:07 +05:30
Kovid Goyal
15e0b42f04
Make the regex for commenting settings more robust 2021-08-11 08:46:42 +05:30
Kovid Goyal
ba9adc127e
Use realpath when creating conf.bak as well 2021-08-08 10:49:41 +05:30
Kovid Goyal
80db2f6558
Completion for theme names 2021-08-08 09:57:57 +05:30
Kovid Goyal
e376c79dda
Show the current theme name in kitty.conf as well 2021-08-08 09:42:07 +05:30
Kovid Goyal
5a47e0d2e4
Make reload_conf_in_all_kitties re-useable 2021-08-08 09:38:29 +05:30
Kovid Goyal
ca9143bebc
Allow reloading conf in all kitty instances as well 2021-08-08 09:33:36 +05:30
Kovid Goyal
d916ecc4f3
Add a non-interactive mode to the themes kitten 2021-08-08 07:57:14 +05:30
Kovid Goyal
4645e78fa7
Reload config in parent kitty when running the themes kitten 2021-08-07 16:54:47 +05:30
Kovid Goyal
94575a5cf6
Implement modifying of kitty.conf
An include for the current theme is added and
all existing color related settings are commented out
so that the theme overlays on kitty's default settings.
2021-08-07 16:34:41 +05:30
Kovid Goyal
a597a8d86b
Make the recent list functional 2021-08-07 15:31:03 +05:30
Kovid Goyal
d01ac17334
Implement placing of selected theme in kitty config dir 2021-08-07 15:04:32 +05:30
Kovid Goyal
2c96727c45
Implement searching in the themes kitten 2021-08-07 11:17:32 +05:30
Kovid Goyal
ca1b2454bd
Fix position output in matcher 2021-08-07 10:45:50 +05:30
Kovid Goyal
064fc17ce3
More work on themes kitten 2021-08-05 21:38:39 +05:30
Kovid Goyal
43ccf9cb41
Draw theme demo 2021-08-05 13:17:16 +05:30
Kovid Goyal
96857a197c
Allow default theme to have no settings 2021-08-05 11:20:01 +05:30
Kovid Goyal
2486cfd45d
Move match() into a more re-useable location 2021-08-05 06:59:24 +05:30
Kovid Goyal
3c3662b032
Limit display length for theme names 2021-08-04 23:18:57 +05:30
Kovid Goyal
c7ccedae95
... 2021-08-04 22:27:48 +05:30
Kovid Goyal
03517459db
Type check set_mode and reset_mode 2021-08-04 22:25:27 +05:30
Kovid Goyal
96326280e5
Use a pending update when drawing the screen 2021-08-04 22:06:05 +05:30
Kovid Goyal
9b7899780b
Implement drawing the list of themes 2021-08-04 21:56:33 +05:30
Kovid Goyal
e01cd057e8
Fix timestamp not being updated in downloaded zip file comment
Also clean up tab bar formatting
2021-08-04 20:34:00 +05:30
Kovid Goyal
ba85ca1991
Finish the tab bar for the themes kitten 2021-08-04 19:06:07 +05:30
Kovid Goyal
92a9b71f21
More work on the themes kitten 2021-08-04 18:43:26 +05:30
Kovid Goyal
e50c26d1b9
Allow using a non-toal dict to init Options objects 2021-08-04 17:06:50 +05:30
Kovid Goyal
7090c24321
More work on the themes kitten 2021-08-04 14:13:09 +05:30
Kovid Goyal
8a6b51441c
More work on themes kitten 2021-08-04 07:36:09 +05:30
Kovid Goyal
36670b49a0
Make creation of kitty-themes.zip atomic 2021-08-03 17:47:47 +05:30
Kovid Goyal
a402d848d2
Work on themes kitten UI 2021-08-03 17:32:15 +05:30
Kovid Goyal
be34af4555
Remove inline from .c files
It is ignored by compilers and hides unused static functions
2021-08-03 09:11:17 +05:30
Kovid Goyal
5f6cb34f77
placeholder 2021-08-02 21:54:06 +05:30
Kovid Goyal
a99a080c50
More work on theme loading 2021-08-02 21:46:33 +05:30
Kovid Goyal
4a1ca8d582
Move theme parser into kitty code 2021-08-02 18:54:48 +05:30
Kovid Goyal
050eb5660d
Start work on themes kitten 2021-08-02 17:56:31 +05:30
Kovid Goyal
a22404abe6
Better names 2021-07-28 15:44:17 +05:30
Kovid Goyal
7c06313750
A couple more useful aliases 2021-07-28 15:40:48 +05:30
Kovid Goyal
6f265f448d
DRYer 2021-07-28 15:39:21 +05:30
Kovid Goyal
acdc41bd03
Allow sending no payload 2021-07-28 13:39:15 +05:30
Kovid Goyal
bcff2a7fb6
Add aliases to GraphicsCommand to make it more useable 2021-07-28 13:28:21 +05:30
Kovid Goyal
1bd39ff935
Use new URL scheme and define the kitty website centrally as much as possible 2021-07-27 09:03:11 +05:30
Kovid Goyal
ff191c9404
clipboard kitten: fix copies to clipboard not working without the --wait-for-completion option 2021-07-24 07:55:50 +05:30
Kovid Goyal
31da01d4df
Add clipboard_control to query_terminal 2021-07-24 07:26:12 +05:30
Kovid Goyal
8f214c51c0
Get rid of kitty's special OSC 52 protocol
A better solution from an ecosystem perspective is to just work with the
original protocol. I have modified kitty's escape parser to special case
OSC 52 handling without changing its max escape code size.

Basically, it works by splitting up OSC 52 escape codes longer than the
max size into a series of partial OSC 52 escape codes. These get
dispatched to the UI layer where it accumulates them upto the 8MB limit
and then sends to clipboard when the partial sequence ends.

See https://github.com/ranger/ranger/issues/1861
2021-07-23 22:18:02 +05:30
Kovid Goyal
075fb2eaf2
DRYer 2021-07-22 17:56:21 +05:30
Kovid Goyal
21a2768ec3
... 2021-07-22 17:31:54 +05:30
Kovid Goyal
554c840d4e
ssh kitten: exit with 255 for unknown arg to match ssh 2021-07-22 17:30:07 +05:30
Kovid Goyal
9c28a1ba31
ssh kitten: handle -- 2021-07-22 17:03:47 +05:30
Kovid Goyal
93e3e4d2b1
Also strip \r from marked text 2021-07-19 18:12:29 +05:30
Kovid Goyal
3633049ba5
Forgot to include \r in the url regex 2021-07-19 18:09:00 +05:30
Kovid Goyal
c566ed4643
hints kitten: Detect paths and hashes that appear over multiple lines
Fixes #3845
2021-07-19 17:35:48 +05:30
Kovid Goyal
af956f4d84
Fix debug print for long strings 2021-07-19 16:56:10 +05:30
Kovid Goyal
d912d96f00
More docs cleanups 2021-07-19 09:08:55 +05:30
Kovid Goyal
8e5175e56b
Revert "icat: Use scandir for slightly better performance"
This reverts commit 2e893690bd.
scandir is not recursive
2021-07-17 09:51:06 +05:30
Kovid Goyal
2e893690bd
icat: Use scandir for slightly better performance 2021-07-16 21:55:15 +05:30
Kovid Goyal
d052b020fa
Check for dirs when getting mimetypes in a couple more places 2021-07-16 21:49:02 +05:30
Kovid Goyal
cdd8e52116
DRYer 2021-07-11 21:39:08 +05:30
Kovid Goyal
1ec07eb17a
diff kitten: Remove limit on max line length of 4096 characters
Fixes #3806
2021-07-07 07:27:42 +05:30
Kovid Goyal
3dee3aba59
Fix #3794 2021-07-04 18:05:54 +05:30
Kovid Goyal
3d51835b9b
Avoid unneccessary mallocs and copying when return code points for word 2021-06-28 05:56:49 +05:30
Kovid Goyal
f358d76409
Fix type sig 2021-06-28 05:51:49 +05:30
Kovid Goyal
ce486e9244
Move the if condition out of the inner loops 2021-06-27 21:09:06 +05:30
Kovid Goyal
691b7215a0
Unicode input kitten: Fix searching when a word has more than 1024 matches
Fixes #3773
2021-06-27 21:04:43 +05:30