Commit Graph

16818 Commits

Author SHA1 Message Date
Kovid Goyal
ffac770cce Add string reps for preview classes 2025-11-23 10:22:29 +05:30
Kovid Goyal
07b0801990 Nicer title for text file previews 2025-11-23 10:07:47 +05:30
Kovid Goyal
5047a46c94 ... 2025-11-23 09:51:34 +05:30
Kovid Goyal
3a69e3e58f Fix cache not being used for custom image preview rendered content without an image 2025-11-23 09:49:49 +05:30
Kovid Goyal
7f2d0aebe9 choose-files: Add calibre based previews for ebook/document file types 2025-11-23 09:39:08 +05:30
Kovid Goyal
76f9cdc426 ... 2025-11-22 20:03:01 +05:30
Kovid Goyal
4cf92fbf26 Make image preview code re-useable for other types of previews that have both metadata and an image 2025-11-22 13:21:21 +05:30
Kovid Goyal
9c3c6260c2 Show filename in text file preview 2025-11-22 12:39:29 +05:30
Kovid Goyal
4d4b287a4a Show file name and extension for filetypes without previews 2025-11-22 12:32:50 +05:30
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