Commit Graph

123 Commits

Author SHA1 Message Date
Kovid Goyal
dadd2b88de DRYer 2026-01-24 14:57:48 +05:30
Kovid Goyal
9ac0f5b615 Forgot to increment expecting index 2026-01-24 14:55:25 +05:30
Kovid Goyal
85d813eeed num_items should be decreased even for pending 2026-01-24 14:47:08 +05:30
Kovid Goyal
ff33180f11 ... 2026-01-24 14:46:25 +05:30
Kovid Goyal
be0dd00606 icat kitten: When catting multiple images display the images in input order
Fixes #9413
2026-01-24 14:16:54 +05:30
Kovid Goyal
9475780e9d Add a --clear-all flag to icat to clear images from scrollback as well 2025-11-23 22:06:25 +05:30
Kovid Goyal
25cf8622bc Avoid double is_opaque scan 2025-11-15 13:06:17 +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
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
Kovid Goyal
4c0c5c01f2 Bump version of imaging 2025-10-11 13:17:15 +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
f98d5fce16 Remove multiple copies of imaging package
Move to an exiffix fork that does not depend on disintegration/imaging
Now we have only one copy of kovidgoyal/imaging package.
2025-09-19 21:41:23 +05:30
Kovid Goyal
0d2b44ce17 Make go vet happy 2025-09-08 10:08:37 +05:30
Kovid Goyal
6347ea0210 Add a note to icat --clear that it doesnt work with terminal multiplexers
Fixes #8839
2025-07-20 08:26:39 +05:30
Kovid Goyal
4713cc29ad make gofmt happy 2025-05-16 09:40:34 +05:30
Kovid Goyal
c861259e3b Rename go module from kitty -> github.com/kovidgoyal/kitty
Makes the code more easily re-useable in other projects
2025-05-16 08:43:39 +05:30
Kovid Goyal
9854068a59 Start work on panel kitten wrapper in Go
Needed because we need to use a special exe on macOS.
2025-04-28 16:07:09 +05:30
Kovid Goyal
e42d410ee4 Move cli spec parsing code into simple module 2025-04-28 09:20:10 +05:30
Kovid Goyal
341df0dccb More CodeQL fixes 2025-04-20 22:13:45 +05:30
Kovid Goyal
575538c3f9 icat: Fix --no-trailing-newline not working when using unicode placeholders
Fixes #7948
2024-10-07 10:49:25 +05:30
Kovid Goyal
8eba162d32 ... 2024-10-06 10:33:25 +05:30
Kovid Goyal
173bf4a4a3 Disable in band resize notifications in a few more places 2024-08-21 12:11:14 +05:30
Kovid Goyal
5bb8378dc1 icat: Add an option to leave the cursor to the right of the image
Fixes #7574
2024-06-25 13:06:46 +05:30
Kovid Goyal
3b74fcb88c switch to a maintained fork of imaging 2024-03-22 10:38:22 +05:30
Kovid Goyal
e11081ac09 Use exiffix rather than imaging to handle EXIF rotation
exiffix works for more formats than just JPEG
2024-03-22 09:35:39 +05:30
Kovid Goyal
0eae7ba21d Remove unused parameter 2024-03-22 09:25:13 +05:30
Kovid Goyal
a3d8be5e2f icat: Nicer error when user specifies invalid screen geometry 2024-03-05 10:49:47 +05:30
Kovid Goyal
05881db492 Remove unused code 2024-02-28 12:15:20 +05:30
Kovid Goyal
b8774327b6 icat kitten: Add a command line argument to override terminal window size detection
Fixes #7165

I had five minutes, so why not.
2024-02-27 23:06:10 +05:30
Kovid Goyal
16d36c46fe Update to using math/rand/v2 2024-02-25 09:57:43 +05:30
Kovid Goyal
77292a16d6 Make shebangs consistent
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.

Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
a8a1571ed1 Fix #6715 2023-10-14 08:49:46 +05:30
Kovid Goyal
b26c4c16d0 ... 2023-09-22 12:11:07 +05:30
Kovid Goyal
c650bd0aac icat: Dont open the controlling terminal to query for size if stdout is a terminal, use it instead 2023-09-22 12:10:21 +05:30
Kovid Goyal
0a2f164062 Change kitty +kitten -> kitten in docs
All kittens except for the broadcast and panel kittens have now been
ported to Go and so can be run with just kitten rather than kitty
+kitten. So update the docs to use this canonical form for launching
kittens
2023-09-21 12:25:02 +05:30
Kovid Goyal
d16a29b942 More linter fixes 2023-09-19 11:50:09 +05:30
Kovid Goyal
8a211fa689 Remove unused code 2023-09-17 08:47:28 +05:30
Kovid Goyal
67bf3eda5a ... 2023-08-16 19:16:05 +05:30
Kovid Goyal
8e6dc030b4 Add a note that unicode placeholders cause image wrapping 2023-08-16 19:10:07 +05:30
Kovid Goyal
2c232ce709 kitten icat: Fix image being displayed one cell to the right when using both --place and --unicode-placeholder
Fixes #6556
2023-08-16 19:04:15 +05:30
olzhasar
d0a5d1b3a4 Fix misspellings 2023-06-14 03:39:53 +06:00
Kovid Goyal
ff55121094 Move the kittens Go code into the kittens folder 2023-03-27 13:06:02 +05:30
Kovid Goyal
88443ef8a5 icat: allow specifying image ids 2023-03-09 10:17:53 +05:30
Kovid Goyal
ed8a88e009 Add new unicode placeholder and tmux passthrough options to icat 2023-03-03 22:06:35 +05:30