Kovid Goyal
da1626090a
Update codebase to Python 3.10 using pyupgrade
2025-02-03 10:56:50 +05:30
Kovid Goyal
cf2aaaf52f
remote_control_password: Fix using a password without any actions not working
...
Fixes #8082
2024-11-27 01:56:17 +05:30
Kovid Goyal
af83d855de
Add a framework for easily and securely using remote control from the main function of a custom kitten
2024-09-29 20:36:12 +05:30
Kovid Goyal
f1d0d0949b
Run pyupgrade to update the codebase to python 3.9
...
Gets rid of a lot of typing ugliness by using type annotations on
builtin types
2024-07-31 07:55:27 +05:30
Kovid Goyal
f4bec5f4ab
Remote control: Fix empty password not working
...
Fixes #7538
2024-06-15 11:15:19 +05:30
Kovid Goyal
ede332fecf
Use our monotonic everywhere
...
Gives nicer times relative to process start time than the python stdlib
monotonic
2024-03-26 13:26:18 +05:30
Kovid Goyal
a6da0ac6ca
Log bad remote commands
2024-02-25 09:57:24 +05:30
Kovid Goyal
5c9aa6a21a
json.loads() stupidly does not accept memoryview
2024-02-25 09:57:24 +05:30
Kovid Goyal
5f809bf249
Get kitty building with the new VT parser
2024-02-25 09:57:22 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
...
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.
Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
5ea9700c82
More kitty @ -> kitten @
2023-10-18 20:40:39 +05:30
Kovid Goyal
314fe4fe4a
Allow launched background process to work with --allow-remote-control
...
Use a dedicated socketpair for such processes. Fixes #6712
2023-10-18 19:56:58 +05:30
olzhasar
d0a5d1b3a4
Fix misspellings
2023-06-14 03:39:53 +06:00
Kovid Goyal
5066623089
better fix for file completion in Go
...
When neither extensions for mime are specified assume we want to match
all files.
2023-01-23 18:01:17 +05:30
Kovid Goyal
8e98b4123e
Fix completion for --password-file not completing file names
2023-01-23 17:58:31 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
456af90ad2
Remote control: Allow matching for self window even over sockets when run inside a kitty window
...
Have kitty-tool send the value of KITTY_WINDOW_ID if present.
2022-12-30 12:17:31 +05:30
Kovid Goyal
018811c96c
Remove unused code
...
Completion and remote control have moved into kitty-tool
2022-11-14 15:42:09 +05:30
Kovid Goyal
4396dede85
Get rid of the cobra dependency
2022-11-14 15:42:02 +05:30
Kovid Goyal
7325921070
Allow cancel async commands without auth
2022-11-14 15:41:55 +05:30
Kovid Goyal
364533b1ed
Work on supporting streaming remote commands with passwords
2022-11-14 15:41:54 +05:30
Kovid Goyal
77f7ce82c0
Parse global options
2022-11-14 15:41:45 +05:30
Kovid Goyal
10b74d0703
Update documentation of --to
2022-11-14 15:41:45 +05:30
pagedown
b01ad4bb3b
...
2022-08-18 17:05:35 +08:00
Kovid Goyal
ca2a121696
Nicer error when listen on socket is not found
2022-08-16 10:59:51 +05:30
Kovid Goyal
572e920466
Allow restricting the remote control actions in specific windows
2022-08-16 07:08:51 +05:30
Kovid Goyal
1619687d1d
Allow specifying allowed actions when no password is sent
2022-08-15 21:05:53 +05:30
Kovid Goyal
c07178f43a
Avoid transmitting the currently un-needed enc_proto
2022-08-11 06:48:35 +05:30
Kovid Goyal
331f6d4903
Document remote_control_password more thoroughly
...
Also ignore failures in custom auth functions
2022-08-11 05:58:02 +05:30
Kovid Goyal
2e422e5ba8
Use getpass() to read the password from STDIN when it is a tty
2022-08-11 05:20:05 +05:30
Kovid Goyal
20cffc728e
Close tty_fd after dup2
2022-08-11 05:10:15 +05:30
Kovid Goyal
34a7b42063
Dont print traceback when socket is unexpectedly closed
2022-08-10 19:06:57 +05:30
Kovid Goyal
963d1b58f8
Better error message when socket is closed without response
2022-08-10 18:53:15 +05:30
Kovid Goyal
0fe4f5a686
Fix password based rc not working with generator responses
2022-08-10 17:24:10 +05:30
Kovid Goyal
e9ce5c02d0
Allow remote control commands to be interrupted by ctrl-c while waiting for a response
2022-08-10 17:00:04 +05:30
Kovid Goyal
2c83b9902e
Implement the permissions system for password based rc requests
2022-08-10 15:49:50 +05:30
Kovid Goyal
fe07825ad9
Work on new permissions framework for rc commands
2022-08-10 12:36:04 +05:30
Kovid Goyal
56e83d7d07
Write code to decrypt commands received in kitty
2022-08-10 12:36:04 +05:30
Kovid Goyal
2aee746da9
Write the code to encrypt rc messages to kitty
2022-08-10 12:36:04 +05:30
Kovid Goyal
e64b1ba67c
Start work on remote control passwords
2022-08-10 12:36:04 +05:30
Kovid Goyal
8202247b27
DRYer
2022-07-29 12:51:36 +05:30
Kovid Goyal
fe91b74ba7
...
2022-01-02 09:38:14 +05:30
Kovid Goyal
3f0ecbb241
Use the new async response framework when setting background/logo images via RC. Avoids having to use --no-response
2021-12-05 18:02:09 +05:30
Kovid Goyal
e91c008357
...
2021-12-05 17:42:54 +05:30
pagedown
1cb6250f14
Remove duplicate imports
2021-11-30 18:54:44 +08:00
Kovid Goyal
b3a9c1a100
Better error message when KITTY_LISTEN_ON is invalid
2021-11-10 08:27:45 +05:30
Kovid Goyal
d53d92b890
Proper handling of async responses to peers
2021-10-31 21:09:24 +05:30
Kovid Goyal
23570cc5f7
...
2021-10-31 11:55:00 +05:30
Kovid Goyal
70a01955b8
Fix timeout of @ select-window not canceling the visual select
2021-10-31 09:38:55 +05:30
Kovid Goyal
6241369b6c
Cancel an async request on timeout so no spurious data is sent to the tty
2021-10-30 14:46:48 +05:30