Commit Graph

16809 Commits

Author SHA1 Message Date
Kovid Goyal
75c3019756 Avoid flicker when changing preview
Only render the new preview when it is fully ready, keep showing
previous preview till then.
2025-11-22 12:24:09 +05:30
Kovid Goyal
c5bde715a7 Only unload preview when changed instead of on each render 2025-11-22 11:27:27 +05:30
Kovid Goyal
11dd7eeb8e Have the --start-as flag be respected when used with --single-instance
Fixes #9228
2025-11-17 17:42:26 +05:30
Kovid Goyal
4ea6862dd3 Remove unused code 2025-11-17 17:23:40 +05:30
Kovid Goyal
1240a17b2d Disk cache: Do not encrypt disk cache contents when the disk cache file was opened with O_TMPFILE
Avoids paying the XOR overhead on all cached data. Temp files opened
using O_TMPFILE are secure enough, as far as I know. Processes without
elevated privileges cannot read from them unless they inherit the file
descriptor.
2025-11-17 14:30:15 +05:30
Kovid Goyal
6de4e5237f Resize method should not use bounds 2025-11-17 12:59:04 +05:30
Kovid Goyal
1c470fe1f7 ... 2025-11-17 12:46:54 +05:30
Kovid Goyal
478294a335 Fix typo that caused OSC 3008 to set title rather than just be ignored
Fixes #9226
2025-11-17 12:23:10 +05:30
Kovid Goyal
e6d7e91000 Avoid using lseek() to track disk cache file write offset
It's slow and not thread safe.
We use pwrite() so it's not reliable anyway.
2025-11-17 11:16:30 +05:30
Kovid Goyal
bfca1763f2 Function to save 24bit RGB data as PNG 2025-11-16 23:30:34 +05:30
Kovid Goyal
9bcbdb9f14 ... 2025-11-16 22:35:57 +05:30
Kovid Goyal
e49d940621 kitten @ ls: Also output the neighbors for every window 2025-11-16 21:01:55 +05:30
Kovid Goyal
e0118e4553 Bump version of imaging 2025-11-16 09:24:24 +05:30
Kovid Goyal
68805850a5 Preserve opacity when resizing on image load 2025-11-15 14:56:21 +05:30
Kovid Goyal
25cf8622bc Avoid double is_opaque scan 2025-11-15 13:06:17 +05:30
Kovid Goyal
fb6332d8e2 Resize frames in parallel 2025-11-15 12:41:14 +05:30
Kovid Goyal
c3d0170059 Bump version of imaging 2025-11-15 12:28:45 +05:30
Kovid Goyal
1d19942811 Store more metadata about pixel data shape when serializing 2025-11-15 12:23:56 +05:30
Kovid Goyal
d4633bf5f9 Graphics: Disallow PNGs of size greater than MAX_IMAGE_DIMENSION to match behavior with loading RGB data 2025-11-14 07:58:04 +05:30
Kovid Goyal
9bc29a7fa6 Dont write to ~/.gitconfig in the tests
Just in case the tests are run without setting HOME
2025-11-13 18:50:42 +05:30
Kovid Goyal
83f0d6bc1a Have reloading config also reload the custom tab bar python modules 2025-11-13 14:41:46 +05:30
Kovid Goyal
2797b1f926 Update changelog 2025-11-13 08:34:21 +05:30
Kovid Goyal
cda5b2bfec Merge branch 'sessions-dir' of https://github.com/akvachan/kitty 2025-11-13 08:32:58 +05:30
Arsenii Kvachan
8a1f4bda3b Allow browsing a directory with sessions
- interpret a directory argument by listing only *.kitty-session and similar files
  - reuse the existing sorting logic for the directory chooser and document the workflow
2025-11-12 17:37:13 +01:00
Kovid Goyal
35d95d7a43 Also remove shadow from zero sized window
Hopefully that means no clickable region at all?
2025-11-12 14:01:37 +05:30
Kovid Goyal
98e13787a9 ... 2025-11-12 12:23:24 +05:30
Kovid Goyal
81f429d52b Move the code to cycle through OS Windows into glfw 2025-11-12 12:02:38 +05:30
Kovid Goyal
7fe38ae579 macOS: Add a cycle through OS windows backwards action 2025-11-12 10:36:45 +05:30
Kovid Goyal
301dc8a736 macOS: Ignore Tahoe zombie windows when cycling through windows with cmd+`. Fixes #9215 2025-11-12 09:46:13 +05:30
Kovid Goyal
a4a7f77ef1 Use __block rather than __weak since we are in manual ref counting regime 2025-11-12 09:31:31 +05:30
Kovid Goyal
a9e71e5b5b These days gnuplt comes with builtin KGP support 2025-11-11 22:29:35 +05:30
Kovid Goyal
9be602f94f ... 2025-11-11 21:39:12 +05:30
Kovid Goyal
28afe23c45 Bump version of imaging
This adds go native support for JPEG images using "non-standard"
subsample ratios. Thanks to that and the rest of my work to add support
for ICC profiles, we can now decode jpegli images using the builtin
backend. That's a month of my life I will never get back coz Go's
imaging libraries are utterly unmaintained and not fit for purpose.

Fixes #8908
2025-11-11 21:26:53 +05:30
Kovid Goyal
aeb72ca290 Merge branch 'patch-1' of https://github.com/frabjous/kitty 2025-11-11 19:09:48 +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
1faf786bd2 Remove parse error forsystemd's useless OSC 3008 context protocol
It's spamming the test logs. Just ignore it silently
2025-11-11 09:42:42 +05:30
Kovid Goyal
456fa8691a Fix #9211 2025-11-11 09:35:55 +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
6d4e6438f7 Clarify behavior of keyboard protocol for pure text events 2025-11-08 16:46:44 +05:30
Kovid Goyal
87f4c5ccec Remove no longer needed code 2025-11-08 12:21:28 +05:30
Kovid Goyal
426167d78d ... 2025-11-08 11:55:45 +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
2eddb6ab19 Send an OTP for paste events 2025-11-08 08:48:34 +05:30
Kovid Goyal
8b2d92d58d Automatic color scheme switching: Fix title bar and scroll bar colors not being updated
Fixes #9167
2025-11-08 01:09:57 +05:30
Kovid Goyal
6c81547e24 Output the set of special colors separately 2025-11-08 00:55:10 +05:30
Kovid Goyal
aa7d38d5b1 Cleanup some code 2025-11-08 00:51:15 +05:30
Kovid Goyal
9ca03420ba Update changelog 2025-11-08 00:04:44 +05:30