Commit Graph

16568 Commits

Author SHA1 Message Date
Kovid Goyal
224ccb170a Micro optimisation 2025-10-07 09:23:22 +05:30
Kovid Goyal
328745cad9 removing a non-existent item from disk cache is not an error 2025-10-07 09:16:30 +05:30
Kovid Goyal
5d1ce327e0 Ensure adds to disk cache are atomic 2025-10-07 09:14:14 +05:30
Kovid Goyal
e8cfedee07 Log a warning when falling back to 8bit textures 2025-10-07 09:04:46 +05:30
Kovid Goyal
d3c5cb12c4 macOS: Dont do live resizing when window is fullscreen
The live resize causes crashes on some Tahoe machines due to macOS bugs.
It is not needed anyway when the window is fullscreen, so ignore it.
2025-10-07 08:57:57 +05:30
Kovid Goyal
25e1b052b8 Merge branch 'fix-unicode-input' of https://github.com/alex-huff/kitty 2025-10-07 08:05:16 +05:30
alex-huff
86698e0b17 unicode-input: fix race condition causing incorrect results 2025-10-06 19:14:06 -05:00
Kovid Goyal
77074d627d ... 2025-10-06 21:36:36 +05:30
Kovid Goyal
e9fc486473 Fix #9075 2025-10-06 21:04:30 +05:30
Kovid Goyal
a0699f5c9e Remove the dropping of the first resize event since it did not fix the issue
Add a check to only callback if the thread is the main thread
2025-10-06 18:39:53 +05:30
Kovid Goyal
88ec2d9793 Add a more visible note that the payloads for remote control commands are documented in the protocol docs 2025-10-06 10:42:11 +05:30
Kovid Goyal
5af47b4881 ... 2025-10-06 10:37:51 +05:30
Kovid Goyal
8d855a7eb4 Remove the docs on using kitty config infrastructure in custom kittens
That config infrastructure isnt really maintained anymore since
builtin kittens have now been almost all ported to Go. So in future
people should just use any of python's stdlib config modules such as
tomllib to store and retrieve their kitten configs.
2025-10-06 10:19:27 +05:30
Kovid Goyal
e46a75ca57 Fix rendering broken on ancient GPU drivers that dont support rendering to 16 bit textures
Fixes #9068
2025-10-06 08:54:53 +05:30
Kovid Goyal
fdf2c0725c Help the dispatcher 2025-10-05 22:18:53 +05:30
Kovid Goyal
da39257020 Use the fact that GLSL supports multiple dispatch based on argument types 2025-10-05 22:14:01 +05:30
Kovid Goyal
e21d2f5191 Bump bundled OpenSSL for CVE 2025-10-05 21:59:02 +05:30
Kovid Goyal
aa814748a1 Use uints for partial workaround for #9072 2025-10-05 21:56:22 +05:30
Kovid Goyal
4545aab5f6 Link directly to diff/main.py in the docs to avoid confusion with Go code 2025-10-05 21:34:07 +05:30
Kovid Goyal
9192f35132 Fix #9070 2025-10-04 08:45:45 +05:30
Kovid Goyal
270c598f2c macOS: Only live resize for resize events that occur in quick succession
Apparently on some systems Tahoe sends a resize event on wake from
sleep/lid open for obscure reasons and then proceeds to crash if one
redraws during that event. Sigh.
2025-10-02 19:39:13 +05:30
Kovid Goyal
2665a871c0 Fix a regression in the previous release that broke goto_session -1 2025-10-02 18:52:31 +05:30
Kovid Goyal
ccdc50007e Fix a regression in 0.43.0 that caused a black flicker when closing a tab in the presence of a background image
Fixes #9060
2025-10-02 14:48:37 +05:30
Kovid Goyal
9740861ec5 Splits layout: Fix corrupted layout in some circs
Basically one function was adding a window id instead of a group id
to the pairs. Fixes #9059
2025-10-02 10:43:36 +05:30
Kovid Goyal
80a617a9ec ... 2025-10-02 10:06:07 +05:30
Kovid Goyal
56f26ed919 Fix interaction of focus and focus_matching_spec in session files
The last specified one wins. If nether are specified, first window is
focused.
2025-10-02 09:46:23 +05:30
Kovid Goyal
9a4b52f8b9 diff kitten: Fix wheel_scroll_multiplier not being respected
Fixes #9054
2025-10-01 17:07:47 +05:30
Kovid Goyal
7f24dd68c9 version 0.43.1 v0.43.1 2025-10-01 08:21:20 +05:30
Kovid Goyal
460d10902f Cleanup previous PR
The overrides were not being passed to the askpass kitten.
And we dont need to support backward compatibility for secrets with no
backend, since this feature has never been released.
2025-09-30 20:38:44 +05:30
NightWatcher
d02c63ac86 ssh kitten: add optional password and TOTP auto-fill via ssh.conf
Motivation: Some environments disallow or do not reliably accept one-way
pubkey-only auth, or require keyboard-interactive password + TOTP. This adds an
optional, host-scoped automation via kitty's native askpass to reduce repetitive
manual entry while preserving the ssh kitten UX.

- Add auth_config.go to parse password/totp_* from ssh.conf by host block
- Ignore these keys in main ssh.conf parser to avoid bad-line warnings
- Pass host/user to askpass for host-aware lookup
- Auto-answer password and OTP prompts in askpass; fallback to UI otherwise

Security: Secrets in ssh.conf are plain text; users should enforce strict
permissions or avoid storing passwords if unacceptable. Only login password/OTP
prompts are auto-answered; passphrases and host key confirmations are not.

feat(ssh): add secret backend support for auth passwords and TOTP secrets

Introduce support for specifying secret backends in SSH auth config, currently supporting only the "text" backend for storing secrets directly. This allows for future extensibility while maintaining backward compatibility by treating values without a backend as "text:<value>".

The changes include new fields in AuthEntry for backends, updated parsing logic in lineHandler, error handling for invalid backends, and normalization for existing configs. A new parseBackendSecret function handles the parsing with validation.
2025-09-30 17:31:16 +05:30
Kovid Goyal
a11bc34a44 Update changelog 2025-09-30 16:59:28 +05:30
Kovid Goyal
580971e309 Fix #9049 2025-09-30 15:44:31 +05:30
Kovid Goyal
ca7ab7a57c Get rid of os.Exit() from ExecAndHoldTillEnter 2025-09-30 13:25:22 +05:30
Kovid Goyal
712faa7aa5 Fix pruning on DiskCache object creation 2025-09-30 13:18:00 +05:30
Kovid Goyal
8fdbf8d7da Make the paths returned by DiskCache stable even if the parent entry is removed/pruned for the life of the process 2025-09-30 12:53:08 +05:30
Kovid Goyal
16d411943a Add integration test for go atexit implementation 2025-09-30 12:37:25 +05:30
Kovid Goyal
190e3e5891 Add atexit cleanup via worker process to kittens infrastructure 2025-09-30 11:52:13 +05:30
Kovid Goyal
4f9519d773 Cleanup __atexit__ 2025-09-30 11:29:49 +05:30
Kovid Goyal
ba96fa06fe Allow using defer in KittenMain 2025-09-30 11:20:37 +05:30
Kovid Goyal
ca0ff68d8e More tests for disk cache 2025-09-30 11:16:49 +05:30
Kovid Goyal
ec6910074f Avoid quadratic algorithm 2025-09-30 08:49:31 +05:30
Kovid Goyal
4122f029df ... 2025-09-30 08:46:11 +05:30
Kovid Goyal
7dae6e3945 ... 2025-09-30 08:40:30 +05:30
Kovid Goyal
fb3a36b9aa Render in layers when cursor trail is active
Fixes incorrect light cursor trail colors due to sRGB blending when
rendering without layers.
2025-09-29 22:49:07 +05:30
Kovid Goyal
a8e930c167 Fix titlebar color not working for opaque windows
As long as titlebar_color is not nil, we need a background view
2025-09-29 22:36:27 +05:30
Kovid Goyal
75ec41e08b Make titlebar background view a child of the titlebar view itself 2025-09-29 22:02:38 +05:30
Kovid Goyal
13bbaee112 Only insert titlebar background view if the titlebar is transparent 2025-09-29 21:47:40 +05:30
Kovid Goyal
b6b977ff56 Add .kitty_session as a known session file extension 2025-09-29 21:42:44 +05:30
Kovid Goyal
bac2ff90ba Fix empty aliases causing an error when loading known sessions
Fixes #9043
2025-09-29 21:30:26 +05:30
Kovid Goyal
2f14ebb554 Merge branch 'better-spinner-render' of https://github.com/alex-huff/kitty 2025-09-29 20:53:21 +05:30