Kovid Goyal
54d2f06abe
remote files kitten: Fix working with files whose names have characters that need to be quoted in shell scripts
...
Fixes #5313
2022-07-26 08:06:25 +05:30
Kovid Goyal
d9371dc265
ssh kitten: Better handling of exit on keyboard interrupt
2022-07-20 21:40:51 +05:30
Kovid Goyal
ef2a12fbdf
Ignore sigint while draining the tty
2022-07-20 19:40:23 +05:30
Kovid Goyal
7215c6d6be
ssh kitten: Allow pressing Ctrl-C to abort ssh before the connection is completed
...
Fixing this involved adding a new mode to kitty where it handles
ctrl-c/z/q by sending signals to the tty foreground process group
instead of delegating to the kernel to do that. Since the pipe may be
full we have no way of knowing when the kernel will get around to
reading the signal byte. So send the signal ourselves.
Fixes #5271
2022-07-20 19:11:14 +05:30
Kovid Goyal
bd9e1f58fe
ssh kitten: Make discarding of garbage data after ssh fails more robust
...
We now roundtrip an UUID via the terminal and only exit after receiving
it back. This guarantees that any pending data in the pipe is discarded.
2022-07-20 13:28:51 +05:30
Kovid Goyal
3a17f54bca
Add a note about how to exclude directories in the copy command
2022-07-12 16:23:48 +05:30
Kovid Goyal
a8b756f040
ssh kitten: A new option :code:--symlink-strategy to control how symlinks are copied to the remote machine
...
Fixes #5249
2022-07-03 14:03:56 +05:30
Kovid Goyal
b3fcb53625
ssh kitten: Allow ssh kitten to work from inside tmux, provided the tmux session inherits the correct KITTY env vars
...
Fixes #5227
2022-06-29 18:40:22 +05:30
Kovid Goyal
4f29dea8ef
Utility function to detect when running inside tmux
2022-06-29 17:51:38 +05:30
pagedown
c3df6d2fe3
Remove executable perms from kitten files
2022-06-28 11:59:47 +08:00
Kovid Goyal
a89e1b5573
Fix horizontal wheel events not being reported to client programs when they grab the mouse
...
Fixes #2819
2022-06-18 06:47:42 +05:30
Kovid Goyal
2dd1201c3f
Dont use a kitten for prewarm
2022-06-09 06:53:51 +05:30
Kovid Goyal
9be68966b4
Also detect ssh kitten run as an overlay
2022-06-08 18:53:54 +05:30
Kovid Goyal
9dbafcc368
Remove unneccessary argument to connection_sharing_args()
2022-06-07 20:40:01 +05:30
Kovid Goyal
9f5f113840
...
2022-06-07 13:05:07 +05:30
Kovid Goyal
6afbdbe94f
Use correct kitty config in prewarmed process
2022-06-07 12:53:39 +05:30
Kovid Goyal
cc3c7b0286
Fix waitpid() call on python 3.8
2022-06-06 21:22:04 +05:30
Kovid Goyal
4c9a75c1ba
Remove unused code
2022-06-06 20:45:40 +05:30
Kovid Goyal
98f46f8bd7
Start work on prewarming
...
The prewarm process and its controller are implemented with some basic
tests.
2022-06-06 20:39:36 +05:30
Kovid Goyal
79f7954048
Cleanup previous PR
2022-06-06 17:19:52 +05:30
Kovid Goyal
fc217dafba
Merge branch 'master' of https://github.com/suvayu/kitty
2022-06-06 16:55:08 +05:30
Suvayu Ali
20b6a97159
Update in response to feedback
...
- one configuration option: ignore_paths
- use shlex to parse option to support whitespace and in-line comments
- change option type to Tuple[str, ...]
- remove ignored directories from dirnames to prevent scanning
2022-06-06 11:00:45 +02:00
Kovid Goyal
98f6e24106
Move block outside try/except as it doesnt need to be in there
2022-06-06 08:17:15 +05:30
Kovid Goyal
cd7751681d
hints kitten: Fix surrounding quotes/brackets and embedded carriage returns not being removed when using line number processing
...
Fixes #5170
2022-06-05 18:07:16 +05:30
Suvayu Ali
eea652f1d0
kittens/diff: move empty pattern check to dir tree walk
2022-06-05 10:11:21 +02:00
Suvayu Ali
fbf1ec43c7
diff kitten: add options to ignore paths when comparing directories
...
Tested locally & over SSH:
$ kitty +kitten diff /local/path /local/path2
$ kitty +kitten diff /local/path ssh:remote:/path
2022-06-05 00:11:30 +02:00
Kovid Goyal
0828096e9e
...
2022-06-03 18:30:14 +05:30
Kovid Goyal
ebcbed290f
Make loading of kitty options in kitten re-useable
2022-06-03 17:49:58 +05:30
Kovid Goyal
55eeb9c11e
Dont import kitty.complete in ssh.main
2022-06-02 08:08:33 +05:30
James Reid
0b79cbdb3b
Add "user" tab to themes kitten
...
Add new tab named "user" to the built-in themes kitten - new tab
filters and displays only user-defined color themes, identified by
adding "is_user_defined" property to "Theme" class which defaults
to False, and is set True when a theme is fetched using the
"load_from_dir" method.
2022-05-30 19:25:09 +01:00
James Reid
1dc6b49e02
Remove hard coded tab string in ThemesHandler
...
Remove hard coded tab string and replace with self.tabs, which is
a reference to the same tab string defined in the __init__ of
ThemesHandler
2022-05-30 19:17:07 +01:00
Kovid Goyal
8540ca3990
Workaround for nix package messing with kitty file permissions
2022-05-28 08:03:17 +05:30
Kovid Goyal
ea8bed2a71
Fix #5113
2022-05-20 20:45:08 +05:30
Jakub Kuczys
a9a9ec80b5
Support the short pretty flag (-p) in hyperlinked_grep kitten
2022-05-20 10:57:42 +02:00
Kovid Goyal
bba1455e28
Dont import all of the ssh kitten just to detect commandlines
2022-05-18 15:58:06 +05:30
Kovid Goyal
1b4cf1fea7
Remote file kitten: Integrate with the ssh kitten
2022-05-14 10:31:18 +05:30
Kovid Goyal
aaffec1cbc
Better error message
2022-05-13 19:25:37 +05:30
Kovid Goyal
99409f0a8b
Merge branch 'docs' of https://github.com/page-down/kitty
2022-04-30 14:41:12 +05:30
Kovid Goyal
9811d677e5
query terminal kitten: Return fast when run in non-kitty terminals
2022-04-30 14:25:39 +05:30
pagedown
6c1f20bb27
Docs: Mention close_shared_ssh_connections in ssh kitten config docs
2022-04-30 16:54:46 +08:00
Kovid Goyal
4a7125ec92
ssh kitten: Suppress error prints about invalid items in kitty.conf
...
Fixes #4985
2022-04-29 20:39:32 +05:30
pagedown
bb78dc5ccb
Docs: Fix the help text of query_terminal and other minor tweaks
...
Use --match-tab in broadcast kitten example.
2022-04-29 01:30:45 +08:00
Kovid Goyal
1a2d9c6fba
Fix a couple of issues highlighted by updated mypy
2022-04-28 07:03:35 +05:30
pagedown
510022c3c1
Docs: Improve the documentation for kittens
...
Add more text roles and links.
Add an example that broadcasts only to other windows in the current tab.
Initial capitalization of the key names in the kbd text role.
Add Python type hints for custom kittens.
Note about hyperlink support for ls on macOS.
Add description text for show_key.
2022-04-27 16:14:54 +08:00
Kovid Goyal
627c79ffbb
Show detailed traceback when using show_error()
2022-04-26 13:58:57 +05:30
Kovid Goyal
ee94114eb2
Fix #5016
2022-04-26 08:20:24 +05:30
pagedown
7282f1f684
Docs: Improve ssh kitten documentation
...
Add more text roles.
Put the env example at the end.
The alias syntax of fish and bash requires quotation marks.
Document `SSH_ASKPASS` in the glossary.
2022-04-25 15:36:37 +08:00
pagedown
288d16f7be
Docs: Minor tweaks to the help documentation of hints kitten
2022-04-24 17:18:45 +08:00
Kovid Goyal
6174c2008f
...
2022-04-20 10:10:05 +05:30
Kovid Goyal
402fac3edf
...
2022-04-19 10:53:18 +05:30