Commit Graph

16556 Commits

Author SHA1 Message Date
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
alex-huff
8abdff10f7 decorations: improve spinner rendering
Fixes #9032

This commit improves spinner rendering by:
    - Removing the constant 1px reduction to the spinner radius
      introduced by 2f983c1. This caused the spinner radius to be too
      small at higher line widths.
    - Always considering half the line width to be at or above 0.5
      pixels since visually the line cannot actually be rendered at a
      width below 1 pixel. This allows for more consistent behavior at
      different line widths and resolutions.
    - Accounting for the line width when setting up the 'ClipRect'.
      Before, the top and bottom of a spinner would get cut off at high
      line widths.
2025-09-29 10:13:32 -05:00
Kovid Goyal
b92246448d Fix a regression in the previous release that caused the cursor trail to not be hidden properly
In refactoring the trail shader, I guess I forgot to premultiply the
output color.

Fixes #9039
2025-09-29 20:35:12 +05:30
Kovid Goyal
13e3ecad5c Session files: Fix a regression in the previous release that broke matching on windows in the current tab
Fixes #9037
2025-09-29 19:44:01 +05:30
Kovid Goyal
14f75c9a9b DRYer 2025-09-29 17:44:24 +05:30
Kovid Goyal
d2cc22e7c6 macOS: React to changes in effective appearance of the NSApplication not the content view for each window
This is nicer now every OS Windows doesnt cause a notification. Also
fixes #9034 which was caused by us setting an explicit appearance on the
window when the titlebar is set to a specific color thereby preventing
the views in the window from getting appearance change notifications.
2025-09-29 17:17:46 +05:30
Kovid Goyal
f4867928b4 DRYer 2025-09-29 17:00:18 +05:30
Kovid Goyal
843f0681f0 Remove warning in macos_titlebar_color docs about titlebar arbit colors. 2025-09-29 16:54:12 +05:30
Kovid Goyal
a97734c60b Dont report modifyOtherKeys when running tests 2025-09-29 14:18:53 +05:30
Kovid Goyal
470068d92f Handle two parameter form of modifyOtherKeys 2025-09-29 14:14:38 +05:30
Kovid Goyal
2f991691f9 Fix test failure with fish >= 4.1
fish now requires a response to a DA1 query
2025-09-29 14:01:57 +05:30
Kovid Goyal
7a71db8830 ... 2025-09-29 13:08:49 +05:30
Kovid Goyal
2ceddba923 goto_session: Add --sort-by=alphabetical
Have the interactive session picker list the sessions in a fixed order
rather than by most recent.
2025-09-29 13:03:23 +05:30