Skip to content

stagetui 1.0.1

Latest

Choose a tag to compare

@artisanv artisanv released this 28 Nov 18:18
pip install -U "stagetui[3d,video,web]"

stagetui 1.0.1 and stagetui-web 1.0.2: fixes found by going through every example.
pip install -U "stagetui[web]" gets both; stagetui-3d and stagetui-video stay at 1.0.0.

Fixed

  • Tab reaches every widget, also those scrolled out of view: it scrolls them into
    view (before, Tab went round only what was visible).
  • Ctrl+PgDn / Ctrl+PgUp switch tabs from anywhere: a focused table, tree, log or
    code view took them for a plain PgDn / PgUp.
  • Removing an open dialog from code gives the focus back to where it was (as
    hiding it does). Before, nothing had the focus, so typing a "q" next quit the app —
    after answering ask_permission(), for one.
  • The last pane fills the screen again: closing panes until one is left kept it
    in its split, instead of shrinking it into a small card (and the split keeps its id).
  • app.query("#id") answers with what is on screen: a pane closed with its × raises
    a clear error instead of giving an object whose content is gone, and a new pane can
    take the id. Writing to a chat message after its chat was closed does nothing.
  • Toasts grow to fit their message (up to 4 lines) instead of cutting it off.
  • An add-on pane's status line (a file name, a page title) shows Arabic joined and
    in reading order
    .
  • Markdown: a document given at the start opens at its top (it opened scrolled to
    the end); text streamed in still keeps the end in view. A link keeps the
    punctuation stuck to it on its line — no line starts with "),".
  • In pictures of text (Kitty, Ghostty, WezTerm, PNGs), "…", "—", « » and ✓ next to
    Arabic are drawn where they belong ("اكتب هنا…" drew the "…" between the words).
  • In a tree, → on an open folder goes to its first item; on a file (and ← at the top)
    the arrow stays in the tree instead of jumping to another widget.
  • Web add-on 1.0.2: an address that can't be opened isn't reported as a page titled
    with its host's name (Chrome's error page); the status line says why it failed.

Examples

  • New: examples/14_helmet.py, the Damaged Helmet, a real glTF model with pictures
    on its surface. It downloads the free Khronos sample once (it is not part of
    stagetui), or takes a path to it.
  • 07 (harness): after answering a permission question, typing goes back to the prompt;
    closing the Chat, Changes or Terminal pane no longer crashes /run, /diff or a
    question — the agent opens the pane again.
  • 08 (workspaces): a saved layout comes back for every tab, not only the first.
  • 09 (detach): closing the Log pane no longer crashes it; the Ctrl+Shift+D shortcut is
    gone (the shell has the focus and took it as Ctrl+D, ending the shell).
  • 05, 11, 13, 14: key names are lowercase (a capital means Shift); every theme keeps
    its own, readable accent; a clear message when the video example can't make its clip.
  • 10: the pulse add-on runs on Windows too (stagetui-plugin-pulse.cmd).

PyPI: https://pypi.org/project/stagetui/1.0.1/ · https://pypi.org/project/stagetui-web/1.0.2/