main starts the new UI behind --ui=next with the jobs manager, the SSH
pool and resolver in Deps, and tears them down after Program.Run. A test
guard forbids os, io/fs, path/filepath, localfs and sftp imports in
internal/tui (except deps.go and external.go) and raw key string
matching outside the keys package.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The new UI's root model: Screen x viewer focus x native selection x
filter edit x modal stack, one inputOwner, keys resolved through the
registry, an action table that features extend from register_*.go.
Directory reads and previews run in Cmds with tickets: Update never
blocks (N-P1-1), stale results are dropped (U-P1-13), failed navigation
keeps the panel and a vanished directory climbs up (U-P1-8). q closes
layers before asking to quit (U-P1-16), PgDn pages (U-P1-6), the theme
list previews live and saves with config.SetKey. Mouse mode is
reconciled after every Update; View only reads state.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A panel holds a mount stack, the sorted listing, cursor, marks, filter,
history and cursor memory. Navigation is applied as one transaction;
mounts are released when no snapshot uses them and re-acquired for a
mirror. Clicks map through the visible rows (U-P1-4), reload keeps each
panel's cursor and leaves it at the index of a deleted entry (U-P1-7),
symlinks to directories are navigable (U-P1-2). Rows are cached; a
20k-entry panel renders in ~0.3 ms.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Structured dialogs (fields, warnings, buttons with hotkeys, danger
default on Cancel), multi-field input that types every key, and a
scrollable list/text that fits small terminals (crutch #10). The stack
owns all input while open; clicks outside the top modal are ignored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notes with a TTL by level (errors stay until a key after 3 s), timers
that only hide their own note (U-P1-1, crutch #13) and a 200-entry log.
All lipgloss styles are built once per theme with a generation counter
for render caches.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ActionIDs bound per input context; Browse/Info table from design §8.1,
modal and viewer contexts. ЙЦУКЕН keys are translated for command
contexts only, text contexts pass everything but control keys through
(U-P1-5); chords (y y) use a per-context buffer; help and footer are
generated from the table (U-P1-16).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>