Skip to content

Mirror of the taxy-magit-section package from GNU ELPA, current as of 2024-09-20

License

Notifications You must be signed in to change notification settings

emacs-straight/taxy-magit-section

Repository files navigation

taxy-magit-section.el

https://elpa.gnu.org/packages/taxy-magit-section.svg

This library renders Taxy structs with magit-section.

Contents

Installation

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.

Changelog

0.14.2

Changes

  • Avoid redundant calculations of the width of strings containing images (a minor performance improvement).

0.14.1

Fixes

  • Don’t pass string as ELLIPSIS argument to truncate-string-to-width; pass t, which defaults to value of variable truncate-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.)

0.14

Fixes

  • Reduce the potential width of macro-expanded docstrings to prevent byte-compiler warnings.

0.13

Additions

  • Function taxy-magit-section-insert takes a :section-class argument, which is passed to magit-insert-section as its class argument. This allows a custom subclass of magit-section to be passed, which, with a custom method on magit-section-ident-value, allows section visibility to be cached concisely.

0.12.2

Fixes

  • Header alignment.

0.12.1

Fixes

  • Compilation error.

0.12

Fixes

  • Section visibility caching.

0.11

Additions

  • Truncated column values receive help-echo tooltips so the full value can be viewed.

0.10

Fixes

  • Require package taxy in package headers.

0.9.1

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.

0.9

  • taxy-magit-section moved to separate package.
  • Better align columns whose values are images.

Development

taxy-magit-section is developed in a branch of the main Taxy repo.

Credits

  • Thanks to Stefan Monnier for his feedback, and for maintaining GNU ELPA.

License

GPLv3

About

Mirror of the taxy-magit-section package from GNU ELPA, current as of 2024-09-20

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published