Skip to content

v0.16.1

Choose a tag to compare

@github-actions github-actions released this 28 Oct 02:07
· 3 commits to main since this release
86d026b
  • @tooee/cli@0.16.1
  • @tooee/ask@0.16.1
  • @tooee/choose@0.16.1
  • @tooee/clipboard@0.16.1
  • @tooee/commands@0.16.1
  • @tooee/config@0.16.1
  • @tooee/diff@0.16.1
  • @tooee/fuzzy@0.16.1
  • @tooee/layout@0.16.1
  • @tooee/marks@0.16.1
  • @tooee/mermaid-pele@0.16.1
  • @tooee/overlays@0.16.1
  • @tooee/panels@0.16.1
  • @tooee/renderers@0.16.1
  • @tooee/router@0.16.1
  • @tooee/search@0.16.1
  • @tooee/shell@0.16.1
  • @tooee/themes@0.16.1
  • @tooee/toasts@0.16.1
  • @tooee/view@0.16.1

Size terminal images from their pixel dimensions (2423107)

Markdown images, image files in View, and Pele Mermaid diagrams now draw at their own pixel size, one image pixel per screen pixel. An image shrinks, keeping its aspect ratio, only when it is wider than the space it has or taller than the terminal less 6 rows. Tooee never enlarges an image.

A Markdown image without a size no longer reserves a fixed 12-row box. It takes no rows until its pixel size is known. An Obsidian |width embed now derives its rows from the aspect ratio. A |widthxheight embed keeps its box. In View, a fit image is centred with one cell of padding.

@tooee/renderers exports naturalImageBox, cellGeometry, DEFAULT_CELL_GEOMETRY and IMAGE_WINDOW_PADDING_ROWS. @tooee/mermaid-pele re-exports the cell geometry helpers from there, and its maxRows option now defaults to the terminal height less 6 rows in place of 40.