summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcashmere <cashmere@autistici.org>2026-03-29 07:07:11 +0200
committercashmere <cashmere@autistici.org>2026-03-29 07:07:11 +0200
commit71d5c4402248e45eb2c713830dd012d3bd4c9d13 (patch)
treedbada387a334e5e697bda62f184d62d016e96ef7
parentc6e4967b52eacb13360e649cddbaf9afcd6213dc (diff)
downloadkitty-graphics-71d5c4402248e45eb2c713830dd012d3bd4c9d13.tar.gz
chore: bump to 0.4.0, extend debug-state for headings
- Version bump 0.3.0 → 0.4.0 (text sizing feature complete) - kitty-gfx-debug-state: show text-sizing-support status in header, distinguish heading vs image overlays, display heading-specific properties (text, scale, level, cell-s) instead of image properties (id, pid, file)
-rw-r--r--kitty-graphics.el23
1 files changed, 16 insertions, 7 deletions
diff --git a/kitty-graphics.el b/kitty-graphics.el
index 5195238..898b96f 100644
--- a/kitty-graphics.el
+++ b/kitty-graphics.el
@@ -3,7 +3,7 @@
;; Copyright (C) 2025-2026
;;
;; Author: cashmere
-;; Version: 0.3.0
+;; Version: 0.4.0
;; URL: https://github.com/cashmeredev/kitty-graphics.el
;; Keywords: terminals, images, multimedia
;; Package-Requires: ((emacs "27.1"))
@@ -1721,6 +1721,7 @@ The buffer should be writable (caller handles `inhibit-read-only')."
(insert (format "Backend: %s\n" kitty-gfx--active-backend))
(insert (format "Cell pixel size: %sx%s\n"
kitty-gfx--cell-pixel-width kitty-gfx--cell-pixel-height))
+ (insert (format "Text sizing: %s\n" kitty-gfx--text-sizing-support))
(insert (format "ImageMagick: magick=%s convert=%s identify=%s\n"
(executable-find "magick")
(executable-find "convert")
@@ -1744,15 +1745,23 @@ The buffer should be writable (caller handles `inhibit-read-only')."
(when ovs
(dolist (ov ovs)
(cl-incf count)
- (let ((alive (not (null (overlay-buffer ov)))))
- (insert (format " [%d] buf=%s alive=%s id=%s pid=%s cols=%s rows=%s\n"
+ (let ((alive (not (null (overlay-buffer ov))))
+ (heading-p (overlay-get ov 'kitty-gfx-heading)))
+ (insert (format " [%d] buf=%s alive=%s type=%s cols=%s rows=%s\n"
count (buffer-name b) alive
- (overlay-get ov 'kitty-gfx-id)
- (overlay-get ov 'kitty-gfx-pid)
+ (if heading-p "heading" "image")
(overlay-get ov 'kitty-gfx-cols)
(overlay-get ov 'kitty-gfx-rows)))
- (insert (format " file=%s\n"
- (overlay-get ov 'kitty-gfx-file)))
+ (if heading-p
+ (insert (format " text=%S scale=%.2f level=%s s=%s\n"
+ (overlay-get ov 'kitty-gfx-heading-text)
+ (or (overlay-get ov 'kitty-gfx-heading-scale) 0)
+ (overlay-get ov 'kitty-gfx-heading-level)
+ (overlay-get ov 'kitty-gfx-heading-cell-s)))
+ (insert (format " id=%s pid=%s file=%s\n"
+ (overlay-get ov 'kitty-gfx-id)
+ (overlay-get ov 'kitty-gfx-pid)
+ (overlay-get ov 'kitty-gfx-file))))
(insert (format " buf-pos=%s-%s last-row=%s last-col=%s\n"
(and alive (overlay-start ov))
(and alive (overlay-end ov))