Kovid Goyal
5e6d020275
Show proper error message in diff when failing to load image
2023-05-24 22:47:14 +05:30
Kovid Goyal
c101a6acb0
Implement a dedicated function for word matching rather than relying on a regex and being at the mercy of the vagaries of regex implementations
2023-05-12 15:43:56 +05:30
Kovid Goyal
65f8bb7397
hints kitten: Switch to using a regex engine that supports lookaround
...
Note that we loose unicode char matching for --type=word because of
https://github.com/dlclark/regexp2/issues/65 and of course user regexps
cant use \p{N} escapes any more. Hopefully regexp2 will add support for
these soon-ish. IMO lookaround is more important than \p.
Fixes #6265
2023-05-12 12:24:59 +05:30
Kovid Goyal
a1d791083b
ssh_kitten: Proper exit code for termination by SIGINT
2023-05-08 16:27:07 +05:30
Kovid Goyal
454acd4f5c
ssh kitten: Fix a regression in 0.28.0 that caused interrupt during setup to not be handled gracefully
...
Fixes #6254
2023-05-08 16:18:05 +05:30
Kovid Goyal
537cabca71
kitty +open: Ask for permission before executing script files that are not marked as executable
...
This prevents accidental execution of script files via MIME type
association from programs that unconditionally "open"
attachments/downloaded files via MIME type associations.
2023-05-07 08:11:39 +05:30
Kovid Goyal
ce70320a62
...
2023-05-04 10:26:18 +05:30
Kovid Goyal
3eb18a416a
Entry point for parsing theme metadata
2023-05-04 10:14:58 +05:30
Kovid Goyal
8f96395f74
diff kitten: Fix a regression in 0.28.0 that broke using relative paths as arguments to the kitten
...
Fixes #6235
2023-05-03 08:34:46 +05:30
Kovid Goyal
1fc4e53bea
hints kitten: Fix a regression in 0.28.0 that broke using sub-groups in regexp captures
...
Fixes #6228
2023-04-30 21:16:24 +05:30
Kovid Goyal
73f10aaf43
clipboard kitten: Fix a bug causing the last MIME type available on the clipboard not being recognized when pasting with arbitrary MIME types
2023-04-30 06:48:09 +05:30
Kovid Goyal
019359b219
show_key kitten: In kitty mode show the actual bytes sent by the terminal rather than a re-encoding of the parsed key event
...
Also port the kitten to Go
2023-04-26 21:48:53 +05:30
Kovid Goyal
7b6d11fd1e
Fix rendering of :doc: links with explicit titles in help text in the terminal
2023-04-26 16:46:20 +05:30
Kovid Goyal
bb33c66570
Fix #6213
2023-04-26 16:38:25 +05:30
Kovid Goyal
c2fc4eadc8
unicode_input: Only serialize favorites if no user config exists
2023-04-26 16:02:18 +05:30
Kovid Goyal
a7b4d07601
unicode_input kitten: Fix a regression in 0.28.0 that caused the order of recent and favorites entries to not be respected
...
Fixes #6214
2023-04-26 15:55:56 +05:30
Kovid Goyal
6a07435bb0
hints kitten: Fix regression causing editing of favorites to sometimes hang
2023-04-26 15:23:38 +05:30
Kovid Goyal
93a5107e79
Fix #6202
2023-04-21 21:35:59 +05:30
Kovid Goyal
6269f78ed2
Make it clearer that exclude operates only on directories
2023-04-18 09:22:34 +05:30
Kovid Goyal
92e68a6e0c
Fix #6193
2023-04-18 09:05:28 +05:30
Kovid Goyal
d9d2e31318
Another place where [:max_length] is used without checking
2023-04-07 18:08:38 +05:30
Kovid Goyal
1dd3490611
Fix #6160
2023-04-06 15:14:21 +05:30
Kovid Goyal
3ee77a3a57
Fix #6154
2023-04-04 21:18:27 +05:30
Kovid Goyal
e07f2df8d0
Fix rendering of file added/removed lines
2023-04-03 11:07:51 +05:30
Kovid Goyal
bca67cde6f
Fix default for syntax_aliases not being respected
2023-04-02 15:07:41 +05:30
Kovid Goyal
dfa41f01fd
Fix panic caused by incorrectly constructed empty line
...
Also be more defensive in draw_screen() about rendering lines.
2023-04-02 10:18:23 +05:30
Kovid Goyal
e0cdc26e68
Fix placement of images in diff broken by new render layout
2023-03-30 11:21:28 +05:30
Kovid Goyal
e73282ceb0
Only send graphics protocol commands if there are actual images to diff
2023-03-30 11:06:44 +05:30
Kovid Goyal
9919767aef
Remove unused code
2023-03-30 10:26:39 +05:30
Kovid Goyal
c767f7b57f
...
2023-03-30 07:58:00 +05:30
Kovid Goyal
34526517de
Allow passing multiple options to control how wrapping is done
2023-03-29 20:56:24 +05:30
Kovid Goyal
7169a89591
Add shortcuts for copying to clipboard
2023-03-29 19:56:08 +05:30
Kovid Goyal
37edc728a9
Implement drag scrolling for the diff kitten
2023-03-29 17:14:13 +05:30
Kovid Goyal
aebfdaa69a
Refactor diff mouse selection to use new render layout
2023-03-29 14:32:36 +05:30
Kovid Goyal
468168b9de
Refactor diff search to use new render layout
2023-03-29 13:22:34 +05:30
Kovid Goyal
3dbb830a0e
Refactor diff rendering
...
Dont store full rendered lines, instead fill them up at actual draw
time. Makes implementing mouse selection and searching more robust.
2023-03-29 11:55:03 +05:30
Kovid Goyal
e095a2ab43
Fix #6142
2023-03-28 21:06:39 +05:30
Kovid Goyal
7ed7e82637
Use a filler char other than space
2023-03-28 18:01:04 +05:30
Kovid Goyal
67a9def013
Get copy to primary selection working
2023-03-28 17:15:28 +05:30
Kovid Goyal
8867818dfe
DRYer
2023-03-28 11:55:08 +05:30
Kovid Goyal
00d4841304
Make the mouse selection code re-useable
2023-03-28 11:48:22 +05:30
Kovid Goyal
277dea647e
More work on mouse selection
2023-03-28 10:29:45 +05:30
Kovid Goyal
45c1e36de9
More work on mouse selection
2023-03-28 08:10:29 +05:30
Kovid Goyal
d19f28f2b4
More work on mouse selection in the diff kitten
2023-03-27 21:23:31 +05:30
Kovid Goyal
80204c6056
Use join_half_lines in a few more places
2023-03-27 18:01:53 +05:30
Kovid Goyal
d33b83e6ea
More work on mouse selections
2023-03-27 17:56:00 +05:30
Kovid Goyal
a22933afbc
DRYer
2023-03-27 17:19:13 +05:30
Kovid Goyal
840caf5fd5
Start work on mouse handling in diff kitten
2023-03-27 17:06:56 +05:30
Kovid Goyal
ff55121094
Move the kittens Go code into the kittens folder
2023-03-27 13:06:02 +05:30
Kovid Goyal
d30091034a
Remove the python diff kitten
2023-03-27 11:46:22 +05:30
Kovid Goyal
2ac170c1b1
Allowing using the anchored diff from the Go stdlib as the diff implementation
2023-03-27 07:53:56 +05:30
Kovid Goyal
44ff6bd1dd
Start work on porting diff kitten
2023-03-27 07:53:53 +05:30
Kovid Goyal
073b47a236
Revert #6114
...
Frozen kitty builds dont have python files (they are loaded from a
single mmmaped archive), so the test will prevent any
kittens from being found.
Have make clean remove leftover kittens directories
2023-03-18 15:26:33 +05:30
Kovid Goyal
e4611d0c81
...
2023-03-17 09:02:58 +05:30
pagedown
97ef09b633
Fix empty folders being considered as kitten
...
When pulling a git commit that contains delete folder actions, the local
folders will not be deleted.
2023-03-16 08:20:05 +08:00
Kovid Goyal
9443b0e361
Remove themes python code
2023-03-14 20:28:45 +05:30
Kovid Goyal
6794ec1de7
Wire up the new subseq match code
2023-03-14 12:29:44 +05:30
Kovid Goyal
29dd2438c9
Port the subseq matcher to Go
2023-03-14 12:29:44 +05:30
Kovid Goyal
f9b0b54ee5
Start work on porting themes kitten to Go
2023-03-14 12:29:44 +05:30
pagedown
2416122647
...
2023-03-14 14:30:11 +08:00
Kovid Goyal
7acc6bdeb8
Move splitlines_like_git to a more appropriate home
2023-03-10 17:26:06 +05:30
Kovid Goyal
b76b0c61ed
Port custom processor for hints
2023-03-10 10:45:37 +05:30
Kovid Goyal
69916ca4e8
Remove python implementation of hints
2023-03-10 07:16:25 +05:30
Kovid Goyal
5b3f5dd02d
Port all remaining hints matching tests
2023-03-09 20:53:46 +05:30
Kovid Goyal
0e5ed29d83
Fix generation of url regex for Go
2023-03-09 19:00:56 +05:30
Kovid Goyal
09ceb3c0be
Start work on porting hints kitten to Go
2023-03-09 19:00:56 +05:30
Kovid Goyal
88443ef8a5
icat: allow specifying image ids
2023-03-09 10:17:53 +05:30
Kovid Goyal
f157882856
Finish porting of ask kitten to Go
2023-03-07 17:06:00 +05:30
Kovid Goyal
0aa55fb755
Start work on porting the ask kitten
2023-03-07 13:55:44 +05:30
Kovid Goyal
16c7681c7c
diff kitten: Speedup patch parsing by working with bytes rather than unicode
...
Also change the line split algorithm to only split on \n, \r and \r\n.
This is hopefully closer to what git/diff generate in their patch files.
I cant find any documentation specifying this however.
Fixes #6052
Fixes #6092
2023-03-06 09:55:55 +05:30
Kovid Goyal
6660071d3a
Port the hyperlinked_grep kitten to Go
2023-03-05 13:41:57 +05:30
Kovid Goyal
ed8a88e009
Add new unicode placeholder and tmux passthrough options to icat
2023-03-03 22:06:35 +05:30
pagedown
4c9d90efbb
hints kitten: Perform copy action with --program when matching linenum
2023-03-02 10:30:17 +08:00
Kovid Goyal
eb6d777790
...
2023-03-01 20:34:09 +05:30
Kovid Goyal
81f8ed6b45
Use @ rather than # for named buffers prefix char
...
Matches existing use of @ for clipboard. Also @ doesnt need to be quoted
in most shells.
2023-03-01 19:54:03 +05:30
pagedown
854529c443
hints kitten: Allow copying matches to named buffers
2023-03-01 22:10:24 +08:00
pagedown
3d50c1ea5a
Fix cursor misalignment after displaying detailed traceback
2023-03-01 12:04:04 +08:00
Kovid Goyal
00b3437a05
Remove python implementation of SSH kitten
2023-02-28 12:42:30 +05:30
Kovid Goyal
6de77ce987
Clean up exclude pattern handling
2023-02-26 09:12:12 +05:30
Kovid Goyal
5cc3d3cbfe
Fix remaining failing tests
2023-02-26 08:01:04 +05:30
Kovid Goyal
e4002b5691
Switch to a more capable glob implementation that supports **
2023-02-26 08:01:04 +05:30
Kovid Goyal
525caff938
Move get_connection_data to utils module as it is not needed for the actual kitten
2023-02-26 08:01:03 +05:30
Kovid Goyal
9870c94007
More work on porting the SSH kitten
2023-02-26 08:01:03 +05:30
Kovid Goyal
747411be00
Finish implementation of config file parsing
...
Still needs tests
2023-02-26 08:01:01 +05:30
Kovid Goyal
32aa580984
Store parsed multi option values on the config object
2023-02-26 08:01:01 +05:30
Kovid Goyal
1470b11024
Dont parse default values
2023-02-26 08:01:01 +05:30
Kovid Goyal
5822bb23f0
Work on porting config file parsing to Go
2023-02-26 08:01:01 +05:30
Kovid Goyal
fbfb779a19
Clarify what pygments style does
2023-02-20 16:38:22 +05:30
Kovid Goyal
ac5298ce76
Finish porting unicode input
2023-02-15 17:42:31 +05:30
Kovid Goyal
53e33a80ba
Start work on porting unicode input kitten to Go
2023-02-14 21:33:21 +05:30
pagedown
cc18a4c192
transfer kitten: Use guess_type with custom MIME
2023-02-12 17:34:09 +08:00
Luofan Chen
130315ce8d
Use strict function prototypes
...
Fixes clang error:
error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
2023-02-09 13:16:00 +08:00
Kovid Goyal
7c8c7fe3a2
launch: When using --cwd=current for a remote system support running non shell commands as well
2023-02-08 17:52:28 +05:30
Kovid Goyal
244507336b
Function to change the remote command in an ssh kitten cmdline
2023-02-08 16:34:33 +05:30
Kovid Goyal
5338fcdc1e
Add a note about why we play with file descriptors
2023-01-26 21:50:10 +05:30
Kovid Goyal
f8991ce3c8
ask kitten: Get readline to work even when stdout is redirected
2023-01-26 21:47:43 +05:30
Kovid Goyal
3a126ffa9d
Restore permissions check on pwfile
...
just use RW instead of R as the expected mode
2023-01-26 08:48:35 +05:30
Kovid Goyal
dd6e206f9b
Remove unused import
2023-01-26 08:29:37 +05:30
Loren Schlomer
366d65f592
Fixes the ssh kitten
...
kovidgoyal@5e645a7 fixes the password file creation, allowing it to be
unlinked, but read_data_from_shared_memory/1 rejects the shared object
if it is not read only, and will break the ssh kitten for all
platforms.
This change removes the read only check, relying only on the file
ownership check.
This fully fixes #5928
Signed-off-by: Loren Schlomer <me@schlomie.com>
2023-01-25 11:14:12 -08:00
Kovid Goyal
5e645a7be7
Fix ssh kitten not working on FreeBSD
...
Apparently on FreeBSD one cannot unlink shared mem if it is not created
with write permissions.
Adding IWRITE to the permissions when creating the shared memory is
harmless. It means any process running as the user can either write to
the file or delete it. Deleting was already possible except on FreeBSD.
As for writing, it's needed on FreeBSD for shared memory to be useable
at all, and since processes running as the user can already completely
access all their data, kitty config files, tty pipes, etc. allowing them
to write to the SHM used here doesnt grant any significant new
capability, since they could just write to ssh.conf in the kitty config
folder to get the ssh kitten to do whatever they like.
Fixes #5928
2023-01-25 23:34:31 +05:30
Kovid Goyal
1f00c27097
Also create an automatic text/plain alias when reading from clipboard
2023-01-22 22:04:53 +05:30
Kovid Goyal
5b4e4f032d
ask kitten: Output JSON when used standalone
2023-01-22 11:48:51 +05:30
Kovid Goyal
0a1b399447
...
2023-01-22 08:58:14 +05:30
Kovid Goyal
6a64df1afb
Abort show_error kitten if stdin is a tty
2023-01-22 08:48:55 +05:30
Kovid Goyal
dc1851acdb
Add some messages to kitten help for kittens that are not meant to be run by end users.
2023-01-22 08:46:29 +05:30
Kovid Goyal
dc03c14af2
Fix #5896
2023-01-18 08:51:17 +05:30
Kovid Goyal
6b8e5ea225
Rename kitty-tool to kitten
...
It's easier to type, and cuter.
Also, most, if not all of the TUI parts of
kitty's kittens will eventually be re-written into kitten.
The only downside I can see is that we cant tab complete kitty
anymore, but hopefully there will be less reason to run kitty
from the shell as command line tools migrate to kitten.
Meowrrrr!!!
2023-01-14 15:44:52 +05:30
Kovid Goyal
d4e34a4c31
themes kitten: Nicer error message when no internet connection is present
...
Fixes #5877
2023-01-11 09:00:58 +05:30
Kovid Goyal
836b652f4d
Enable checks for unused noqa
2023-01-09 17:28:35 +05:30
Kovid Goyal
69255f7525
broadcast kitten: Allow pressing a key to stop echoing of input into the broadcast window itself
2023-01-09 17:19:35 +05:30
Kovid Goyal
6e41409a3f
Dont run isort on generated conf files
2023-01-09 16:51:59 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
a068e3e655
Fix issues reported by ruff
2023-01-09 15:54:41 +05:30
Kovid Goyal
1b5fac3189
Cleanup previous PR
2023-01-06 14:25:21 +05:30
Kovid Goyal
dab7f71d2f
Merge branch 'master' of https://github.com/TrellixVulnTeam/kitty_864P
2023-01-06 14:17:38 +05:30
TrellixVulnTeam
1223130ef7
Adding tarfile member sanitization to extractall()
2023-01-06 08:07:51 +00:00
Kovid Goyal
4e90ae68a4
...
2023-01-06 11:33:47 +05:30
Kovid Goyal
e16e3c1582
Clarify the common use case for --config-file-name
2023-01-06 10:42:46 +05:30
Kovid Goyal
5d42d1f955
Remove the old python icat implementation
...
Keep the python backend code as it is used by the diff kitten to display
image diffs.
2023-01-05 19:34:12 +05:30
Kovid Goyal
a2c68a927e
icat: When using --place ensure screen doesnt scroll by leaving cursor at top-left corner of image.
2023-01-05 19:15:13 +05:30
Kovid Goyal
c317c934f3
More work on ImageMagick
2023-01-05 19:15:13 +05:30
Kovid Goyal
df06578c2d
Implement --scale-up and --place
2023-01-05 19:15:12 +05:30
Kovid Goyal
7a1140cd03
Start work on porting icat to Go
2023-01-05 19:15:10 +05:30
Kovid Goyal
035c3de4bb
Add completion for file args to clipboard kitten
2023-01-04 10:39:24 +05:30
pagedown
2f292bb5d2
DRYer
2022-12-10 15:13:19 +08:00
Kovid Goyal
1289dd2ff0
Cleanup previous PR
2022-12-08 13:30:54 +05:30
pagedown
8c7a5288ae
hyperlinked_grep kitten: Handle more rg command line options
...
Skip for unsupported options.
2022-12-08 14:51:13 +08:00
Kovid Goyal
a3ba8647ba
Document the new OSC 5522 protocol
2022-12-06 12:18:55 +05:30
Kovid Goyal
fe53555dba
Document the additions to the clipboard kitten
2022-12-04 11:37:02 +05:30
Kovid Goyal
b644a42a48
Allow using wildcard mime types when copying from clipboard
2022-12-03 14:06:16 +05:30
Kovid Goyal
6422b323c6
Implement MIME aliases for clipboard
2022-12-03 12:20:03 +05:30
Kovid Goyal
f29ce19097
Reading arbitrary MIME from clipboard now works
2022-12-01 13:35:44 +05:30
Kovid Goyal
375fa73826
Delegate kitty +kitten clipboard to kitty-tool
2022-11-26 20:09:43 +05:30
pagedown
6a1b456bac
DRYer: Get hostname
2022-11-26 16:08:40 +08:00
Kovid Goyal
4d3f3b5e91
Start moving clipboard kitten to kitty-tool
2022-11-25 12:58:10 +05:30
pagedown
a131f9a82e
Refactor: Use a consistent name for beam cursor shape
2022-11-19 10:34:50 +08:00
pagedown
76669ad14d
Note the Unicode version in the generated files
...
Files generated from the same Unicode version will be consistent
regardless of the date they were built.
2022-11-18 13:01:32 +08:00
Kovid Goyal
e5e8cc72c6
Make the Unicode database version used available
2022-11-17 20:11:50 +05:30
Kovid Goyal
16775c5539
ssh kitten: Add a kitty-tool wrapper script to auto-download and use kitty-tool
...
Needs testing.
2022-11-15 13:26:48 +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
6b04c42730
update wcswidth go version to match unicode 15 update in master
2022-11-14 15:42:03 +05:30
Kovid Goyal
97716fea8b
More work on merging completions with parse tree
2022-11-14 15:42:02 +05:30
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
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