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
Kovid Goyal
2a637e4220
Simplify sending of async response
2021-10-30 14:10:09 +05:30
Kovid Goyal
816360c275
A new remote control command to visually select a window
...
Fixes #4165
2021-10-30 13:56:48 +05:30
Kovid Goyal
df70d8661a
Pass the peer id to commands
2021-10-30 12:29:27 +05:30
Kovid Goyal
c3daa969fa
Allow individual commands to control the response timeout
2021-10-30 12:20:37 +05:30
Kovid Goyal
66a7c3bc4d
Simplify handling of --no-response
2021-10-30 12:15:37 +05:30
Kovid Goyal
a26f041964
Add more type annotations
2021-10-27 12:31:10 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
1d1d55e2b4
Fix #4084
2021-10-02 05:10:59 +05:30
Kovid Goyal
850bc12929
DRYer
2020-11-30 22:16:21 +05:30
Kovid Goyal
382c31ddf2
Use a stub rather than TYPE_CHECKING
2020-03-15 13:27:40 +05:30
Kovid Goyal
a348f64833
more typing work
2020-03-13 21:41:07 +05:30
Kovid Goyal
b6692849d6
more typing work
2020-03-12 14:52:11 +05:30
Kovid Goyal
ac2c21e046
more typing work
2020-03-09 16:13:00 +05:30
Kovid Goyal
cc1336a616
More typing work
...
Also use a mypy based linter when editing
2020-03-08 11:02:14 +05:30
Kovid Goyal
9b32f18109
Refactor remote control commands into individual modules
...
Also add type information
2020-03-08 08:39:26 +05:30
Kovid Goyal
f05890719d
Add type checking for the various CLI options objects
2020-03-05 15:47:12 +05:30
Kovid Goyal
cf1b7c0adb
Allow set_background_image to work over SSH
2020-02-01 11:35:12 +05:30
Luflosi
527ff0238a
Replace all instances of EnvironmentError with OSError
...
According to the text just above https://docs.python.org/3/library/exceptions.html#EnvironmentError , `EnvironmentError` has been an alias of `OSError` since Python 3.3. Replacing it makes the code more consistent since `OSError` is used in other places in the code too.
2020-01-11 16:47:36 +01:00
Kovid Goyal
658be9405f
Document the kitty remote control protocol
...
Fixes #1646
2019-06-12 13:12:53 +05:30
Luflosi
2b095f720e
Use "with suppress()" to suppress python exceptions
...
Using
```Python
with suppress(OSError):
os.remove('somefile.tmp')
```
instead of
```Python
try:
os.remove('somefile.tmp')
except OSError:
pass
```
makes the code more compact and more readable IMO.
This pattern was recommended by Raymond Hettinger, a Python Core
Developer in his talk "Transforming Code into Beautiful, Idiomatic Python" at https://www.youtube.com/watch?v=OSGv2VnC0go . The transcript is available at https://github.com/JeffPaine/beautiful_idiomatic_python
2019-06-03 12:27:43 +02:00
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Luflosi
1d91edfb00
dont -> don't
2018-08-29 03:18:25 +02:00
Kovid Goyal
9235d2b8e4
...
2018-08-06 18:38:23 +05:30