Commit Graph
11508 Commits
Author SHA1 Message Date
Kovid Goyal df45a4e759 Add a note that --detach is not available on macOS 2023-01-31 17:52:36 +05:30
Kovid Goyal 70111d130e version 0.27.0 v0.27.0 2023-01-31 10:48:56 +05:30
Kovid Goyal ce6dacd0d4 Also build 32-bit kitten for Linux 2023-01-31 10:48:56 +05:30
Kovid Goyal f3c434b7c1 Now that we are releasing 0.27.0 dont need to fetch release version to download latest kitten 2023-01-31 10:48:56 +05:30
Kovid Goyal 54b6344985 Add a note that --spacing is ignored for overlay windows 2023-01-30 12:00:41 +05:30
Kovid Goyal 18fc8dad37 Instead of calling insertText duplicate some of its code so we arent limited in the size of text we can insert 2023-01-29 19:56:53 +05:30
Kovid Goyal 9b5034f904 macOS: Integrate with system services 2023-01-29 19:47:50 +05:30
Kovid Goyal f2c8819d25 Add an example for displaying a PNG with bash 2023-01-29 10:27:03 +05:30
Kovid Goyal 53482f4c84 Show bad length in base64 decode error message 2023-01-29 10:17:00 +05:30
Kovid Goyal e1c50cf124 Merge branch 'revert' of https://github.com/page-down/kitty 2023-01-27 21:12:53 +05:30
pagedown aacb4db2dc Remote control: Improve create-marker error messages
No more missing color errors when text/regex are missing.
Use `mark group` in error messages instead of `color`.
2023-01-27 23:31:06 +08:00
pagedown 8638e42135 Revert "Fix #5937"
This reverts commit 4b322560c3.
Only two arguments are required to create a marker.
2023-01-27 23:15:13 +08:00
Kovid Goyal 4b322560c3 Fix #5937 2023-01-27 15:15:47 +05:30
Kovid Goyal 0a4ad1fe12 Merge branch 'indent' of https://github.com/page-down/kitty 2023-01-27 11:19:54 +05:30
pagedown 907f658fcc ... 2023-01-27 13:40:31 +08:00
pagedown 1e7e10f96f Docs: Fix mixed tab and space indentation in the example code 2023-01-27 13:39:27 +08:00
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 b408abe304 Move compile_commands.json to build directory 2023-01-26 14:25:22 +05:30
Kovid Goyal 084671b26e Also preread STDIN when using /dev/stdin as the source 2023-01-26 12:57:12 +05:30
Kovid Goyal 1cc69b3edd Move pre-read code into a separate function for clarity 2023-01-26 12:49:21 +05:30
Kovid Goyal d88105319d clipboard kitten: Allow STDIN to be connected to a program that itself uses the tty directly
Read in STDIN first, and only then start terminal IO, hopefully allowing
the other program to finish its terminal IO before we start.

Fixes #5934
2023-01-26 12:40:08 +05:30
Kovid Goyal eb50fac8de Add a test for creation of anonymous tempfiles 2023-01-26 11:51:02 +05:30
Kovid Goyal 4185e30d73 Code to more securely create anonymous temp files on Linux 2023-01-26 11:41:01 +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 4f5e3f6cf1 Fix ruff invocation in ALE 2023-01-26 08:44:16 +05:30
Kovid Goyal dd6e206f9b Remove unused import 2023-01-26 08:29:37 +05:30
Kovid Goyal ea920ffdf9 Merge branch 'master' of https://github.com/schlomie/kitty 2023-01-26 08:21:16 +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 e3040a9c91 Make the various path finding functions thread safe and cache their results 2023-01-25 16:24:27 +05:30
Kovid Goyal a01d68ed85 ... 2023-01-25 16:12:47 +05:30
Kovid Goyal f070b17fee Also load ~/.config/kitty/mime.types in Go code 2023-01-25 16:08:12 +05:30
Kovid Goyal 22d562ca41 DRYer 2023-01-25 15:38:23 +05:30
Kovid Goyal 102197fabe Merge branch 'mime-types' of https://github.com/page-down/kitty 2023-01-25 15:28:40 +05:30
pagedown 83f505e209 Update known textual mimes to Python
Also add default aliases for JavaScript and XML in Go.
2023-01-25 16:42:15 +08:00
Kovid Goyal 5a86bc2411 Add default aliases for YAML and TOML 2023-01-25 11:54:09 +05:30
Kovid Goyal b9c324586e Also recognize a few well known MIME types as being textual 2023-01-24 18:30:46 +05:30
Kovid Goyal 41fb3c79c5 DRYer 2023-01-24 18:26:01 +05:30
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 8f88aab9d2 remove unused code 2023-01-23 17:51:10 +05:30
Kovid Goyal d8bbb16d5e Make the single instance data type checked 2023-01-23 17:45:11 +05:30
Kovid Goyal 60791bb57b Session files: Expand environment variables 2023-01-23 17:34:53 +05:30
Kovid Goyal 11f98592f7 We still need full keyboard protocol for @ send-text 2023-01-23 16:33:08 +05:30
Kovid Goyal 97467acb1f kitten @ cmd: Dont generate key release events
We dont need them and they sometimes can spill over into the prompt if
the command is very fast.
2023-01-23 16:18:46 +05:30
Kovid Goyal cc1f0bc3fe Function to drain controlling tty 2023-01-23 16:07:00 +05:30
Kovid Goyal a009d6b258 kitty shell: Add completion for help and exit commands 2023-01-23 15:34:45 +05:30
Kovid Goyal 0903ae7b4d Do not use prewarming for wrapped kittens 2023-01-23 15:21:04 +05:30
Kovid Goyal 35c1ebd3f9 Merge branch 'fix-open-actions-shell' of https://github.com/page-down/kitty 2023-01-23 14:03:54 +05:30