This library renders Taxy structs with magit-section.
taxy-magit-section
is distributed in GNU ELPA, which is available in Emacs by default. Use M-x package-install RET taxy-magit-section RET
, then (require 'taxy-magit-section)
in your Elisp project.
Changes
- Avoid redundant calculations of the width of strings containing images (a minor performance improvement).
Fixes
- Don’t pass string as
ELLIPSIS
argument totruncate-string-to-width
; pass t, which defaults to value of variabletruncate-string-ellipsis
. (The width of the string passed before, the U+2026 HORIZONTAL ELLIPSIS character, varies by font, and fonts which display it with a width different than that of a single space cause misalignment of columns. Now users may specify the ellipsis string according to their needs.) - Try to find a graphical frame when calculating image widths for column widths (or signal an error if none are available, rather than leaving
image-size
to signal an error). (For example, if both graphical and text frames are available, and a column’s values contain an image, and the buffer is being redisplayed on a text frame, try to use a graphical frame for calculating the image width, rather than just signaling an error.)
Fixes
- Reduce the potential width of macro-expanded docstrings to prevent byte-compiler warnings.
Additions
- Function
taxy-magit-section-insert
takes a:section-class
argument, which is passed tomagit-insert-section
as itsclass
argument. This allows a custom subclass ofmagit-section
to be passed, which, with a custom method onmagit-section-ident-value
, allows section visibility to be cached concisely.
Fixes
- Header alignment.
Fixes
- Compilation error.
Fixes
- Section visibility caching.
Additions
- Truncated column values receive help-echo tooltips so the full value can be viewed.
Fixes
- Require package
taxy
in package headers.
Fixes
taxy-magit-section-insert
appends heading faces, so users can override (or merge with) the default.taxy-magit-section-format-items
uses columns’ headers as their minimum width, which preserves each column’s width regardless of items’ values.
taxy-magit-section
moved to separate package.- Better align columns whose values are images.
taxy-magit-section
is developed in a branch of the main Taxy repo.
- Thanks to Stefan Monnier for his feedback, and for maintaining GNU ELPA.
GPLv3