Commit Graph

8439 Commits

Author SHA1 Message Date
Kovid Goyal
f530aba366 Use a non-zero size read to ensure it blocks 2025-05-29 12:33:48 +05:30
Kovid Goyal
3a46e2fe0b Fix #8692 2025-05-29 08:17:45 +05:30
Kovid Goyal
26b3a1e7f3 only loop on EINTR 2025-05-27 17:12:01 +05:30
Kovid Goyal
57c1d9334d ... 2025-05-27 17:11:02 +05:30
Kovid Goyal
94f90479a3 Fix #8680 2025-05-27 17:02:30 +05:30
Kovid Goyal
95f840fd56 Fix #8683 2025-05-27 13:10:11 +05:30
Kovid Goyal
61fd8c4003 Fix #8682 2025-05-27 12:10:14 +05:30
Kovid Goyal
b2b8ede0a9 Remote control: Fix holding a remote control socket open causing the kitty I/O thread to go into a loop and not respond on other remote control sockets 2025-05-22 16:16:39 +05:30
Kovid Goyal
27fd3290f1 Allow generating default values for conf files in go code 2025-05-22 14:01:43 +05:30
Pranav P
afd0bacb6a Fix endianness bug reported in issue #8548 2025-05-21 13:02:11 +05:30
Kovid Goyal
197cfbc1b1 DRYer 2025-05-20 11:16:49 +05:30
Kovid Goyal
e31eda7735 Add a note that xdg-system-bell is terminally broken on Hyprland 2025-05-19 07:03:56 +05:30
Stefan A. Haubenthal
3b20936959 Fixed typos 2025-05-18 19:52:12 +05:30
Kovid Goyal
d8b0edce43 Add a note that grabbing keyboard doesnt work on macOS 2025-05-18 14:34:10 +05:30
Kovid Goyal
95c6279bdd Implement --grab-keyboard
Currently works on Wayland.
2025-05-18 14:30:33 +05:30
Kovid Goyal
cc4d4eeaca Fix shortcuts from global menubar not working when keyboard grabbed on macOS 2025-05-18 14:23:38 +05:30
Kovid Goyal
95f5e9293e DRYer 2025-05-18 11:47:22 +05:30
Kovid Goyal
6f689f3221 Work on keyboard grabbing functionality 2025-05-18 11:37:11 +05:30
Kovid Goyal
13c37cf694 Fix remember_window_position not working because of a stupid typo
Fixes #8646
2025-05-18 07:53:30 +05:30
Kovid Goyal
d56721e64d version 0.42.1 2025-05-17 08:40:20 +05:30
Kovid Goyal
35067a60ff Also build launcher with -std=c11
Fixes #8642
2025-05-16 19:33:30 +05:30
Kovid Goyal
c861259e3b Rename go module from kitty -> github.com/kovidgoyal/kitty
Makes the code more easily re-useable in other projects
2025-05-16 08:43:39 +05:30
Kovid Goyal
27a9db95af Cleanup previous PR 2025-05-15 21:44:05 +05:30
Jin Liu
4c6c38929b panel kitten: on Wayland, use app-id for the LayerShellV1 namespace parameter
The Wayland LayerShellV1 protocol doesn't allow setting window class/name/role/type/appId.
Instead, it has a `namespace` parameter that we currently hardcode to `kitty`. It
seems suitable to use app-id for this parameter.

Example use case:
kwin use the `namespace` parameter and an undocumented mapping to set window type for
Layer Shell windows. E.g., "dock" maps to NET:Dock. So if we set `app_id dock` in
quick_access_terminal.conf, the panel would be considered a dock, and won't have the
normal scale in/out animation on shown/hidden.
2025-05-15 23:55:48 +08:00
Kovid Goyal
9a543c2370 Modify docs since --class and --name dont apply to panels on Wayland 2025-05-15 19:55:20 +05:30
Kovid Goyal
a3634e4903 ... 2025-05-15 09:39:30 +05:30
Kovid Goyal
8017945551 Wayland: Add support for the xdg-toplevel-tag protocol
Now you can use --name or its alias --os-window-tag to set the tag.
2025-05-15 09:35:42 +05:30
Kovid Goyal
51adca08f2 Only chdir to / if the cwd is not executable or does not exist. Fixes #8636 2025-05-14 08:58:57 +05:30
Kovid Goyal
6282a46ff1 A new centered panel type that is sized 2025-05-13 16:38:57 +05:30
Kovid Goyal
6afe3cbc5a typo 2025-05-13 15:44:43 +05:30
Kovid Goyal
7ec486c7a6 ... 2025-05-13 15:38:11 +05:30
Kovid Goyal
d9f61803ae Make a note that launching OS panels does not support --config or --override as these are per process settings not per OS Window.
Fixes #8635.
2025-05-13 15:35:22 +05:30
Kovid Goyal
88f4c829eb Improve handling of output names
Now can use panel --output-name list to list available outputs.
Also, --output-name works on macOS
2025-05-13 15:29:37 +05:30
Kovid Goyal
74291d0425 Fix #8633 2025-05-13 08:11:33 +05:30
Kovid Goyal
a47babc87d Delay import on demand 2025-05-12 22:22:32 +05:30
Kovid Goyal
4c8f9f9e26 Cleanup previous PR
Fixes #8601
2025-05-12 22:18:41 +05:30
Shane Ciardelli
5c49e2aab4 remembers window position after quit
added position flag

added window geometry caching

Restores window given --position command

moved position flag to last listed flag

fixed formatting - working version

fixed git problems and formatting issues

fixing some caching mistakes

trailing whitespace

remove .dmypy.json for git
2025-05-12 22:18:41 +05:30
Kovid Goyal
9ed6be9272 Quick access terminal: Allow toggling the window to full screen and map using the standard kitty toggle_fullscreen shortcut
Fixes #8626
2025-05-12 15:20:48 +05:30
Kovid Goyal
cf69385823 Wayland: Fix an abort if the terminal program sets a window title longer than 2KB that contains CSI escape sequences and multibyte UTF-8
Fixes #8619
2025-05-12 13:53:12 +05:30
Kovid Goyal
eab298683d Box drawing: Use the old algorithm when drawing curves on low res screens or with very thin lines 2025-05-12 11:40:43 +05:30
Kovid Goyal
68b4c3dd6d Fix ambiguous width and private use characters not being rendered when used with variable width text-sizing protocol escape codes 2025-05-12 05:21:51 +05:30
Kovid Goyal
7791a9129c Fix replay of multicell_command 2025-05-12 04:44:30 +05:30
Kovid Goyal
f2412cc9c8 version 0.42.0 2025-05-11 10:42:15 +05:30
Kovid Goyal
9b4643e8bc ... 2025-05-11 07:46:06 +05:30
Kovid Goyal
f2f914ed05 More natural limits for step size when sampling paramterized curve 2025-05-10 22:58:56 +05:30
Kovid Goyal
04a4d62859 Replace all remaining uses of old parametrized drawing code 2025-05-10 11:07:26 +05:30
Kovid Goyal
2aaa440519 Move calc of line width out of draw_parametrized_curve 2025-05-10 10:12:57 +05:30
Kovid Goyal
782e7cb2fb ... 2025-05-10 10:03:29 +05:30
Kovid Goyal
41b44fdafa Prepare for moving circle rendering to new code as well 2025-05-10 09:28:20 +05:30
Kovid Goyal
0f3603c0eb Use new parametrized curve rendering for rounded separators 2025-05-10 09:23:12 +05:30