Repository navigation
Releases
v0.12.3
myrtui 0.12.3
Fixes
- report takeover and stop exits after the TUI closes
Upgrade
pip install -U myrtui
pipx upgrade myrtuiFull changelog
v0.12.2
myrtui 0.12.2
- Internal changes only.
Upgrade
pip install -U myrtui
pipx upgrade myrtuiFull changelog
v0.12.1
myrtui 0.12.1
Fixes
- Ctrl-J / Shift+Enter inside panes: myrtui now starts its tmux server with
extended-keys on(tmux >= 3.5). TUIs that request xtermmodifyOtherKeysreceive distinctCtrl-J/Shift+Entersequences instead of a bareLF/CR, so "newline" no longer submits the prompt. - iTerm2 3.7.x: myrtui requests Kitty keyboard flags
1instead of Textual's default25. iTerm2's report-all-keys path was dropping the Control modifier (Ctrl-J arrived as a plainj, Ctrl-C as a plainc); other terminals keep Textual's default. - Key routing now normalizes xterm/Kitty associated-text key names (
shift+CR,ctrl+LF) toS-Enter/C-j. - New
MYRTUI_KEY_DEBUG=1writes every key (name, character, focus, pane) to<tmp>/myrtui-key-debug-<pid>.logfor troubleshooting. MYRTUI_KITTY_FLAGScan override the requested Kitty flags for diagnostics.
Upgrade
pip install -U myrtui
pipx upgrade myrtuiInside panes, Ctrl-J / Shift+Enter need tmux >= 3.5 and a TUI that requests modified keys. In iTerm2, keep Settings -> Profiles -> Keys -> General -> "Apps can change how keys are reported" enabled.
v0.12.0
Markdown preview: phone-reading PDF (m)
The Markdown preview has a second export preset. Press m to write
<source>.phone.pdf next to the source:
- still A4 (a wide page keeps formulas and tables from being squeezed),
- 12 pt body text with 6 mm margins (the print layout uses 10.5 pt /
16-14 mm), - over-wide formulas, code blocks and tables are scaled down to the page width
instead of being clipped - rotate the phone or zoom in to read those.
p is unchanged: it still exports the 10.5 pt A4 print layout to
<source>.pdf. Both files can coexist; neither overwrites the other.
Docs: the key tables and the new section are in docs/USAGE.md and
docs/USAGE.zh-CN.md.
Upgrade
pip install -U myrtuiFull changelog
v0.11.2
Bitmaps that actually draw
- No more walls of
+. When running inside an outer tmux, tmux does not forward Sixel: it substitutes aSIXEL IMAGE (WxH)placeholder made of+cells. Bitmap protocols are now chosen so that only terminals that can really paint are used, and the reason is reported when they cannot. - Kitty direct display (
a=T) covers thevpage view and the image preview on terminals that draw images but do not implement Unicode placeholders (some mobile SSH clients). Inside an outer tmux that path additionally needsset -g allow-passthrough on. - Sixel is written after the frame.
textual-imagehands the whole DCS to Textual as a rendered segment, and Textual 8 crops a line to its cell width — on a narrow terminal theSTterminator was cut off and the terminal waited forever. The DCS is now written straight to the terminal (ESC7+ cursor move + DCS +ESC8), encoded on a worker thread (a full 2520x1260 page measures ~380 ms) with a small LRU, so page turns do not block the UI. - Scope: Sixel is used only by the
vpage view and the image preview. Images inside the scrolling Markdown body keep theiralttext — an encoded sixel cannot be re-placed after scrolling. - The page view still flips one page per keypress; the previous page is cleared before the next one is transmitted, and a static image is not repainted when the page changes.
Compact layout
- The context menu has its own bottom key bar. In the compact layout the tree page's key bar sits on the main screen, behind the modal menu, so tapping
ESC/↑/↓/ENTlanded on the modal background and hit "tap outside the menu -> close". The menu screen now shows its ownESC/↑/↓/ENTbar that drives the highlighted item and selects it (or closes onESC). The desktop layout is unchanged.
Upgrade
pipx upgrade myrtui
# or, for a pip install:
pip install -U myrtui
# or, fresh install:
curl -fsSL https://raw.githubusercontent.com/YidingPing/myrtui/main/scripts/install.sh | shPython >= 3.10. Bitmaps need Python >= 3.12 plus textual-image / Pillow, which the installer pulls in automatically; everything else works without them.
v0.11.1
Patch release: the startup hint now says what is actually wrong with an outer tmux.
What changed
- The outer-tmux hint reads the live binding. When myrtui runs inside another
tmux or screen (UU Remote's terminal is one), it now finds that server's socket by
walking the parent process tree (UU unsets$TMUX), verifies it by pid, and reads
the realMouseDrag1Panebinding. Only a binding that really swallows drags is
reported; a healthy one stays silent — no more nagging after you fixed it. - The fix command is on the top bar. On a wide terminal the status line carries the
exact, ready-to-paste command (tmux -S '…' bind -Troot MouseDrag1Pane …). Medium
widths keep the command with a shorter prefix; narrow ones show a one-liner and write
the full command tomyrtui.log. A truncated command is never shown. - No more wrong advice. The hint no longer suggests
tmux set -g mouse off— that
also kills the outer tmux's own drag-to-copy. - New
MYRTUI_OUTER_TMUX_SOCKET, for the rare case where the socket cannot be found
automatically.
Why
UU Remote ships an unconditional MouseDrag1Pane in its app bundle and reloads it
whenever its tmux server starts, so a manual rebind evaporates — and opencode's own
drag-to-select-and-copy silently stops working. myrtui now points at that exact binding
instead of guessing. The binding is server-wide: run the command once and every window
attached to that server is fixed.
Upgrade
pipx upgrade myrtui # or rerun the install scriptv0.11.0
Phone-first compact layout gets a real key bar.
Highlights
- Touch key bar (compact layout only). A 3-row strip of 3x3-cell keys sends
ESC,ENT,Shift-Tab,/,@,Up,Down,Ctrl-J(newline) and
Backspacewith one tap, so the keys an AI coding TUI needs most are reachable
without summoning the soft keyboard. Each tap flashes accent for 150 ms; the
strip is left-aligned, leaving room for more keys later. - Page buttons on the top bar.
Bopens the file tree as a full page and
Gopens the Git history; the lit button closes it again, and focus stays on
the page instead of jumping back to the hidden pane. KEYtoggle. Show or hide the bar for the current run.MYRTUI_KEYBAR=off
disables it permanently and hides the toggle (for terminals that already have a
complete extra-keys row).- A blank row below the top bar so a near miss does not land in the first row
of the terminal, which on a phone is often opencode's own tab strip.
Behaviour
- The bar is contextual. The file-tree page swaps in
ESC/Up/Down/
ENT/ menu (three-line glyph); the Git page usesESC/Up/Down/
ENT, whereENTtoggles the full commit card for the highlighted commit. - On very narrow screens keys are dropped from the tail by priority.
B/G
hide as a pair when the top-bar row does not fit, rather than pushing?off
the edge. - Compact heights: a 46x22 phone screen is a 46x17 pane (46x20 with the key bar
hidden); 49x23 gives an 18-row pane. - Key routing shares a single path with the physical keyboard, so Ctrl-a prefix
state, sidebar focus and dead panes behave identically for taps.
Upgrade
pip install -U myrtuiNo new runtime dependencies.
v0.10.0
Added
- A compact layout for narrow screens. Below 60 columns (or 16 rows) myrtui
switches automatically: one pane at a time, no pane border, the sidebar hidden,
and a one-line top bar (1 2 3 4tabs,+ × d k ?buttons). A 46×22 phone
screen now gives the focused pane the full 46×21 instead of four ~10-column
cells. Leaving the compact layout needs 64×18 (4-column / 2-row hysteresis), so
a soft keyboard appearing and disappearing does not flip it back and forth.
MYRTUI_COMPACT=on|offforces or disables the mode. ×in the top bar closes the focused pane. It asks first when a program is
running (same asCtrl-a w) and is disabled when only one pane is left.- Separate sidebar pages in the compact layout.
Ctrl-a sopens the file tree
full-height andCtrl-a gopens the git history; the other block is hidden, so
the tree has the whole screen for its context menu.Ctrl-a bopens the tree
page and closes any open page;Escor a tab returns to the pane.
Changed
- Tapping
?now toggles the shortcut overlay — a second tap closes it.
Previously the outside-tap handler closed it and the button reopened it, which
made the overlay impossible to dismiss from the button itself. - In the compact layout the splitter handles are hidden and the ratios in
layout.jsonare left untouched; they apply again on a wide screen.
Fixed
- Clicking
×orKilland cancelling could leave the mouse in a
text-selection drag. The mouse-down on a top-bar button started a Textual
selection before the confirm dialog opened, and the real mouse-up landed on the
dialog, so the main screen never cleared the state. Top-bar buttons and pane
tabs are no longer selectable.
Upgrade
pip install -U myrtuiNo new dependencies. MYRTUI_COMPACT=off restores the 0.9.x layout immediately
if you need to roll back.
Known limits
- The
?overlay still wraps in 46-column terminals. - Bitmap previews still require Sixel/TGP; no change for phones.
v0.9.1
Fixed
-
Copies longer than a few lines from inside a pane never reached the clipboard.
tmux delivers pane output in ~1 KiB%outputchunks, so a long OSC 52 sequence —
opencode's select-to-copy,codex /copy,vim "+y— arrives split across several
frames and only the first one carries the header. myrtui parsed one frame at a time
and dropped the whole copy: anything above roughly 750 bytes (ten 70-column lines,
or three or four long ones) silently did nothing. Copies are now reassembled per
pane before decoding, on the raw octal-escaped bytes so a frame boundary can never
corrupt an escape token. A half-received sequence expires after 2 s; the 256 KiB
per-copy cap is unchanged (larger copies are logged and ignored).Measured on tmux 3.8: 700 B → 1 frame (always worked), 840 B → 2 frames (was lost),
14 KB → 44 frames (was lost, now byte-exact). Windows-terminal paste, the system
clipboard channels and theexectransport fallback are unchanged.
Upgrade
pip install -U myrtuiNo new dependencies, no settings or keybinding changes.
v0.9.0
Export the Markdown preview as an A4 PDF
The v page view was built for reading in the terminal, so it cannot leave
it: a full-screen bitmap cannot be selected, mailed or printed. Pressing p in
the Markdown preview now writes a real PDF next to the source file
(<name>.pdf), so a document can be shared or printed without a second tool.
The print path reuses the same body as the preview (docpage.render_body), so
there is no second Markdown pipeline: white paper, A4 with 16/14 mm margins,
code blocks wrap instead of being clipped, local images are embedded and remote
ones are skipped. There are no page numbers — Chrome's @page cannot express
them without adding a PDF library, and no runtime dependency was added. Chrome
is the only optional tool involved; without it the preview says so instead of
failing. The write is atomic: a failed export leaves the previous file intact.
myrtui ls --all dims dead rows
DEAD and DETACHED rows differed by one column and a missing index, which is easy
to miss when most of the table is leftovers. Dead rows are now dimmed — on a
real tty only, honouring NO_COLOR / TERM=dumb; pipes, redirects and --json
stay byte-identical.
Only measured terminals are listed
The README's terminal table now names the terminals that have actually been
measured for Sixel / Kitty graphics. A missing row means untested, not
unsupported.
Under the hood
The published installer is now smoke-tested every week on Linux, including the
uv path, so an install regression is caught before the next release.
Upgrade
pipx upgrade myrtui # or: pip install -U myrtuiNo new dependencies.