Kovid Goyal
928a4db817
Implement delegate based completion fof the ssh and hyperlinked_grep kittens
2022-11-14 15:41:59 +05:30
Kovid Goyal
7737369fc9
Add completion for the kittens
2022-11-14 15:41:58 +05:30
Kovid Goyal
3847837bd0
Forgot to run gen-config.py
2022-10-19 20:50:53 +05:30
Kovid Goyal
1747bbbbcb
ssh kitten: Allow using absolute paths for the location of transferred data
...
Fixes #5607
2022-10-19 20:43:53 +05:30
pagedown
13a3c6b5b2
Update to Unicode 15.0
2022-09-29 10:13:21 +08:00
Kovid Goyal
98eacb2067
panel kitten: Do not depend on xprop
2022-09-24 15:44:54 +05:30
Kovid Goyal
2cef9abbd3
Get rid of one call to xprop in the panel kitten
2022-09-24 15:17:11 +05:30
Kovid Goyal
b247759d30
DRYer
2022-09-11 13:15:42 +05:30
Kovid Goyal
89570d3b52
ssh kitten: Fix KITTY_PUBLIC_KEY not being encoded properly when transmitting
...
Fixes #5496
2022-09-10 07:09:58 +05:30
Kovid Goyal
7e1380cc0d
Start work on giving GLFW a proper clipboard API
2022-09-08 12:45:34 +05:30
Kovid Goyal
5bf5454dbe
Nicer fix for #5469
2022-09-04 22:15:17 +05:30
Kovid Goyal
31fe35cd38
Fix #5469
2022-09-04 13:58:16 +05:30
Kovid Goyal
295743a96e
Fix ref to launch doc
2022-09-02 16:31:21 +05:30
Kovid Goyal
9cec924f32
hints kitten: Allow using launch
as the program to run, to open the result in a new kitty tab/window/etc.
...
Fixes #5462
2022-09-02 16:23:00 +05:30
Kovid Goyal
afada84f52
Cleanup previous PR
...
Use wcswidth() for line width calculation. Works with emoji and ignores
escape codes automatically. Add changelog entry.
2022-08-31 08:01:52 +05:30
Trygve Aaberge
03720402a7
Fix hints sometimes matching next line as part of URL
...
For URLs where there's fewer characters left to the right edge of the
window than the number of escape characters in the line, the next line
would be included in the URL, as if the URL went all the way to the
right edge.
For example with a 40 chars wide terminal, if you run:
echo -e '\e[31m1\e[m https://github.com/kovidgoyal/kitty\ntest '
And launch the hints kitten, you'll see that test on the next line will
be included in the URL.
This happened because the calculation for filling the rest of the line
with NUL characters counted the escape characters as well as the visible
characters, so it filled in too few characters.
This is a regression introduced in commit 91966712
.
2022-08-30 22:24:58 +02:00
Kovid Goyal
fca0999814
Eureka! Figured out why libedit is breaking in prewarm on macOS via launchd
...
The prewarm zygote imports the world. shell.py had a top level import
for readline. Which means readline was being imported pre-fork. And of
course as is traditional with Apple libedit is not fork safe. Probably
because it initializes its internal IO routines based on the stdio
handles at time of import which are the handles kitty gets from launchd
2022-08-30 19:35:17 +05:30
Kovid Goyal
78056c659c
Another place we cant use readline on macOS
2022-08-30 19:27:55 +05:30
Kovid Goyal
d8e43a3412
macOS: Fix regression in 0.26.0 that caused asking the user for a line of input such as for set_tab_title to not work
...
Apparently libedit doesn't work in the forked process when the parent
process is run via Launch Services. I cant be bothered to investigate
why, given that libedit is closed source. macOS users will just have to
live without history/completion in the ask kitten until I get around to
writing a replacement for readline/libedit.
And on a personal note, macOS >> Necrotizing fasciitis
Fixes #5447
2022-08-30 16:45:14 +05:30
Kovid Goyal
89a2545855
Cleanup previous PR
...
Allow disabling hyperlinking of rg output. Also parse
--kitten=hyperlink=... form of CLI args.
2022-08-30 07:41:14 +05:30
Charlie Groves
db5b4da388
Add options for linking different parts of ripgrep output
2022-08-29 13:23:42 -04:00
Charlie Groves
f5a70adf0b
Add a --hyperlink-only-matches flag to hyperlinked_grep
...
If it's active, only matching lines get links, not file headers or context lines.
2022-08-26 17:05:50 -04:00
Kovid Goyal
e330c38d4a
ssh kitten: Delegate to ssh when -T is used
...
Fixes #5411
2022-08-24 15:23:41 +05:30
pagedown
0f4cb1955f
Use the plus sign to connect shortcut keys consistently
2022-08-18 17:05:00 +08:00
Kovid Goyal
bfcd324993
ask kitten: allow having hidden text in the message
2022-08-16 13:57:58 +05:30
Kovid Goyal
d0c50248ea
Graphics protocol: Only delete temp files if they have the string tty-graphics-protocol
in their file paths.
...
This prevents deletion of arbitrary files in /tmp via the graphics
protocol.
2022-08-16 11:25:33 +05:30
Kovid Goyal
6961845167
ask kitten: fix button click area offset vertically
2022-08-16 10:35:51 +05:30
Kovid Goyal
cd3eeb7a95
Center choice message correctly when it is multi-line
...
Also fix button wrap calculation. It was not taking the borders into
account.
2022-08-10 20:34:25 +05:30
Kovid Goyal
7be6b28011
Preserve blanks lines and per line formatting in the ask kitten for the message with choices
2022-08-10 20:10:17 +05:30
Kovid Goyal
1a643441f3
Make the kitty public key available as an env var to child processes
2022-08-10 12:36:04 +05:30
pagedown
5f180dbd9a
...
2022-08-09 12:29:22 +08:00
pagedown
9f1c9529aa
Allow completion for show_key kitten
...
Use the lowercase form of kitty.
2022-08-09 12:15:48 +08:00
pagedown
0d116e6ef0
Use four spaces to indent
2022-08-08 22:31:55 +05:30
pagedown
06108d66b1
Replace tab with four spaces indent
2022-08-08 22:31:55 +05:30
Kovid Goyal
3463931dad
Rewrite clipboard kitten to only change termios settings while it is actually reading from terminal
2022-08-02 17:14:27 +05:30
Kovid Goyal
132f87d152
show_key: use a better representation of the space key when
2022-08-01 13:25:56 +05:30
Kovid Goyal
e2117ee8a4
ssh kitten: Allow completion of ssh options between the destination and command
...
This contravenes the documented command line parsing behavior of ssh but
matches its actual implementation. Sigh.
Fixes #5322
2022-07-29 08:29:49 +05:30
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