Commit graph

16613 commits

Author SHA1 Message Date
Kovid Goyal
436ab9a95a
Add a convenient entry point to test and work on the image serialization code 2025-10-09 19:26:05 +05:30
Kovid Goyal
35093d2105
Fix frame origins not be de-serialized 2025-10-09 19:22:22 +05:30
Kovid Goyal
9212c08638
Faster conversion of plaette to NRGB for opaque colors 2025-10-09 16:57:28 +05:30
Kovid Goyal
2dea3087b3
Faster is_opaque implementation for paletted images 2025-10-09 16:52:13 +05:30
Kovid Goyal
c48ed15007
... 2025-10-09 16:12:39 +05:30
Kovid Goyal
a0f6152aee
Ensure num_cols is never zero 2025-10-09 16:05:13 +05:30
Kovid Goyal
ef8079eb27
Clear python error when using read_from_disk_cache_simple 2025-10-09 15:45:03 +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
127459012a
Fix incorrect alpha values returned by NRGB color model 2025-10-09 11:39:39 +05:30
Kovid Goyal
298daa4e83
Utility method to save frame as uncompressed PNG 2025-10-09 10:56:33 +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
c6582e9f51
... 2025-10-09 09:25:47 +05:30
Kovid Goyal
4ec94c786d
Fix previews being right aligned 2025-10-09 09:03:09 +05:30
Kovid Goyal
ceb712f791
DRYer 2025-10-09 09:00:37 +05:30
Kovid Goyal
aecf13302a
Fix off-by-one in NRGB 2025-10-09 08:30:20 +05:30
Kovid Goyal
d598157590
Make goroutines in choose_files panic safe 2025-10-09 08:11:47 +05:30
Kovid Goyal
e61e95da3a
... 2025-10-09 08:04:58 +05:30
Kovid Goyal
37bd77f4a8
Bump version of imaging
imaging is now panic safe. Also format nested panics a bit better.
2025-10-09 08:00:31 +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
811b4fa127
Fix #9083 2025-10-08 10:02:51 +05:30
Kovid Goyal
c2e75ba466
Fix disk cache not reading inode
Also use a faster atomic update mechanism
2025-10-08 08:35:35 +05:30
Kovid Goyal
16cdcf8cf8
Use inode number and size for more robust entries change tracking 2025-10-08 07:28:02 +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
3d5200e1ce
On second thoughts dont inject PATH as it is already handled by which() and exe_search_paths 2025-10-08 05:26:27 +05:30
Kovid Goyal
67ca9f5b7d
Rename read_from_login_shell -> read_from_shell 2025-10-08 05:21:48 +05:30
Kovid Goyal
6879432704
When using read_from_login_shell inject PATH into os.environ
This allows kitty to use that PATH to launch child executables
2025-10-08 05:19:47 +05:30
Kovid Goyal
726c693edf
Avoid reading shell env twice to get editor
Its cached, but still...
2025-10-07 22:27:57 +05:30
Kovid Goyal
a9f80fe05b
Allow easily injecting env vars from the login shell config into the env in which kitty runs child processes
Fixes #9042
2025-10-07 22:23:31 +05:30
Kovid Goyal
fcccadc8f3
Make reading resolved shell env more robust
We pass -0 to env so that it works even for env vars that have newlines
in them.
2025-10-07 21:44:01 +05:30
Kovid Goyal
8d0fc86bb6
Update some docs 2025-10-07 20:20:19 +05:30
Kovid Goyal
2babfa7ebf
macOS: Further restrict the live resize callback to only be used when live resize is actually in progress 2025-10-07 18:23:08 +05:30
Kovid Goyal
a76f32df2d
Code to serialize/unserialize loaded images 2025-10-07 17:25:47 +05:30
Kovid Goyal
8f91fcefbe
Update changelog 2025-10-07 14:38:58 +05:30
Kovid Goyal
fa808c3b10
Fix tab bar sometimes showing incorrect tabs when it is filtered to show only tabs from the current session
Fixes #9079
2025-10-07 14:35:13 +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
1f37f065ab
Improve API of disk cache
Allow getting all keys and also return get result for added keys
2025-10-07 13:01:09 +05:30
Kovid Goyal
4af95b3c51
choose_files: start work on image previews 2025-10-07 11:11:42 +05:30
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