diff options
| author | user <user@clank> | 2026-07-23 00:26:57 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-08-12 19:34:35 +0200 |
| commit | c65ff59e6cfc75e459406ae2cacaec5bb42f51c7 (patch) | |
| tree | 453ec45cd5daa827a778704839a3304c0bec7020 /cli | |
| parent | slop-tool-boxes: syntax-highlighted diffs with gutter + bg band (diff) | |
| download | sl0ppi-c65ff59e6cfc75e459406ae2cacaec5bb42f51c7.tar.gz sl0ppi-c65ff59e6cfc75e459406ae2cacaec5bb42f51c7.tar.xz sl0ppi-c65ff59e6cfc75e459406ae2cacaec5bb42f51c7.zip | |
input-frame: wrap the input editor in a real rounded box
pi's input area is just two full-width horizontal rules (no side rails)
drawn by the pi-tui Editor. Add input-frame.ts, which patches
CustomEditor.prototype.render (the only Editor subclass, and the class the
main input uses, so extension/selector editors keep native chrome) to lay
content out at the inner width and wrap it in a rounded, side-railed box:
╭─ ❯ ───────╮
│ input ... │
╰───────────╯
- content laid out at width-4 so word-wrap / lastWidth / cursor nav match
- cursor/IME marker stays aligned: the TUI derives the column from
visibleWidth(textBeforeMarker), and the uniform "│ " prefix shifts it by
the same 2 cols as the visible cursor; content lines are padded, never
truncated, so the marker is never dropped
- scroll indicators keep their "↑/↓ N more" text with rounded end caps
- autocomplete/slash menu (lines after the bottom rule) left as-is, indented
to align under the box interior
- reuses the instance borderColor, so bash-mode / thinking-level colors carry
- idempotent/reload-safe, feature-detected, falls back to native render on
any error, restores original on shutdown
Diffstat (limited to 'cli')
0 files changed, 0 insertions, 0 deletions
