Commit graph

1898 commits

Author SHA1 Message Date
Kovid Goyal
25cf8622bc
Avoid double is_opaque scan 2025-11-15 13:06:17 +05:30
Kovid Goyal
1d19942811
Store more metadata about pixel data shape when serializing 2025-11-15 12:23:56 +05:30
Kevin Klement
d979be915c
Update main.py
Fix misspellings of "within"
2025-11-11 08:33:05 -05:00
Kovid Goyal
6f588a0c29
run modernize 2025-11-11 17:09:37 +05:30
Kovid Goyal
d19fc375ba
Switch to external shm package 2025-11-10 12:01:05 +05:30
Kovid Goyal
1c8e8e9530
Switch over to the new imaging backend for icat
Greatly simplifies a whole bunch of code. The new backend takes care of
falling back to ImageMagick efficiently itself.
2025-11-10 11:34:56 +05:30
Kovid Goyal
87f4c5ccec
Remove no longer needed code 2025-11-08 12:21:28 +05:30
Kovid Goyal
a814ab4c2e
icat: Allow controlling how images are fit
Fixes #9201
2025-11-08 11:51:11 +05:30
Kovid Goyal
57f7c8f65e
Bump version of imaging for a few more fixes 2025-11-08 10:27:56 +05:30
Kovid Goyal
f8c78909fa
Use an explicit APNG identifier for apng files with ImageMagick
Required as per Imagemgick docs: https://imagemagick.org/script/formats.php
2025-11-07 11:33:13 +05:30
Kovid Goyal
1e6d67b975
Update to the latest version of imaging
Gives us a bunch of new features and allows us to move a bunch of code
into imaging
2025-11-06 22:31:31 +05:30
Kovid Goyal
aec3c82c48
ssh kitten: Fix a bug where automatic login was not working
Fixes #9187
2025-11-05 19:35:36 +05:30
Nathan Monfils
ff7e1a90a8 Fix: Make portals.conf fallback (Fixes #9144) 2025-10-24 18:02:57 +02:00
Kovid Goyal
284ae74201
icat: Report panics in the render function correctly
Also, only fallback to imagemagick on error when the engine is not
specified as builtin
2025-10-15 08:17:53 +05:30
Zephyr Lykos
831c59996f
Fix creating default event loop on Python 3.14+
Closes #9107
2025-10-13 20:09:54 +08:00
Kovid Goyal
b627d2e4ab
Move error handling code into its own library 2025-10-12 13:51:16 +05:30
Kovid Goyal
4c0c5c01f2
Bump version of imaging 2025-10-11 13:17:15 +05:30
Kovid Goyal
a0f6152aee
Ensure num_cols is never zero 2025-10-09 16:05:13 +05:30
Kovid Goyal
ed33e64101
Ensure placement is transmitted after data 2025-10-09 15:35:57 +05:30
Kovid Goyal
167b254d97
DRYer 2025-10-09 15:23:52 +05:30
Kovid Goyal
dc90771780
Add a small top margin above the image preview 2025-10-09 15:16:17 +05:30
Kovid Goyal
4cdedc422e
Add modified date to image preview 2025-10-09 15:13:45 +05:30
Kovid Goyal
9f2b22c4d6
Forgot to include metadata key in resized cache 2025-10-09 10:44:41 +05:30
Kovid Goyal
a2255e979f
Only retransmit placements when actually needed 2025-10-09 10:12:32 +05:30
Kovid Goyal
9be66bfe4a
When rendering with Go image libraries fails fallback to ImageMagick 2025-10-09 09:40:46 +05:30
Kovid Goyal
2ac2c17929
Fix transmission by file 2025-10-09 09:35:06 +05:30
Kovid Goyal
4ec94c786d
Fix previews being right aligned 2025-10-09 09:03:09 +05:30
Kovid Goyal
d598157590
Make goroutines in choose_files panic safe 2025-10-09 08:11:47 +05:30
Kovid Goyal
f067e9cd92
Make various goroutines panic-safe 2025-10-09 07:17:53 +05:30
Kovid Goyal
49d8b1a9d0
More work on image preview rendering 2025-10-08 22:00:12 +05:30
Kovid Goyal
a6335777d9
disk cache: add a path based API
This allows maintaining only a single cache entry per path when the
path's contents change.
2025-10-08 06:41:12 +05:30
Kovid Goyal
9f9216457e
Only showing metadata needs to be in the interface 2025-10-07 14:12:40 +05:30
Kovid Goyal
f0040edff2
More work on image previews 2025-10-07 13:30:28 +05:30
Kovid Goyal
4af95b3c51
choose_files: start work on image previews 2025-10-07 11:11:42 +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
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
ba96fa06fe
Allow using defer in KittenMain 2025-09-30 11:20:37 +05:30
Kovid Goyal
7dae6e3945
... 2025-09-30 08:40:30 +05:30
Kovid Goyal
d8b524c692
Cache parsing of command line specifications
Change option specification from dict to tuple for better performance
and immutability and better type checking.
2025-09-29 12:31:10 +05:30
alex-huff
a1e63ee87c hints: make default regex ignore trailing whitespace 2025-09-28 11:54:44 -05:00
Josh Frankel
a8aed5abeb
Update documentation for kitty_override kitten quick_access_terminal 2025-09-27 14:38:12 -04:00
Kovid Goyal
8b8918ee4b
Have toggling the quick access terminal via the kitten also move it to the active monitor 2025-09-23 07:31:42 +05:30
Kovid Goyal
41f6b443e6
Fix #9007 2025-09-22 13:20:41 +05:30
alex-huff
508df554ce fix 'incrementally_update_layer_shell_config' 2025-09-22 02:09:53 -05:00
Kovid Goyal
b9a8b64b32
Refactor previous PR
Move code to incrementally update lsc config into the kitten module do
that it is more likely to stay in sync with any future changes to the
kitten cli.
2025-09-22 11:54:23 +05:30
alex-huff
0daab6ab43 resize-os-window: fix '--incremental' option of 'os-panel' action
This commit addresses a few issues with the implementation of
'--incremental':
    - Unspecified settings are reset to their default value, which
      defeats the purpose of the option.
    - It is assumed that the names of options in 'LayerCLIOptions' map
      one to one with the names of fields in 'LayerShellConfig' but this
      isn't true. For example: The 'margin_top' cli option sets the
      'requested_top_margin' layer shell config.
    - When some options are set to a certain value, they force other
      options to be some value. The current implementation doesn't
      account for this.
    - The documentation is contradictory.
2025-09-22 00:10:42 -05:00
Kovid Goyal
7b0caaa491
... 2025-09-21 10:26:37 +05:30
Kovid Goyal
591473d9c1
Fix #8997 2025-09-21 10:25:00 +05:30
Kovid Goyal
508ca700d8
Fix #8998 2025-09-21 10:10:51 +05:30