iOS: multiple configurable toolbar rows
Closed
AU
2mo ago+945+945+012345678901234567890123456789-212-212-012345678901234567890123456789
Fixes #6090
Summary
- Persist terminal toolbar layouts as configurable rows while migrating existing flat layouts into one row.
- Render multiple horizontal shortcut rows above the keyboard and reserve matching terminal grid height.
- Add row-count and row-assignment controls to iOS shortcut settings.
Validation
- swift test (Packages/iOS/CmuxMobileTerminalKit)
- ios/cmux/Resources/Localizable.xcstrings parsed with python3 -m json.tool
- swift test (Packages/iOS/CmuxMobileShellUI) blocked locally by GhosttyKit.xcframework artifact missing a binary artifact
Need help on this PR? Tag /codesmith with what you need. Autofix is disabled.
Summary by cubic
Adds 1–3 configurable iOS toolbar rows with per‑row horizontal scroll and a row‑count–aware dock height; the terminal and dock reflow instantly on any row or item change. Migrates to a v4 row schema that preserves existing setups and centralizes height/spacing in TerminalAccessoryDockMetrics.
-
New Features
- Settings: rows stepper (1–3), per‑item “Move to Row” picker, and per‑row sections with drag reordering; increases append empty rows, decreases merge overflow into the last row; localized labels.
- Toolbar: vertically stacked, per‑row horizontal lists; bottom row still carries HIDE and customize.
- Layout/Persistence: v4 row‑based layout persisted as rows (with migration from v1–v3), preserves empty rows, forward‑compat appends new actions to the last row;
GhosttySurfaceViewobservesTerminalAccessoryConfiguration.didChangeNotificationand updates visibility/height immediately.
-
Bug Fixes
- Selecting an item’s current row is a no‑op to avoid churn.
- Flat scoped lists reorder only the scoped items while preserving non‑scoped positions and row lengths; full cross‑row moves use the row picker.
- Stabilized the shell integration PATH test to avoid env‑dependent failures.
Summary by CodeRabbit
-
New Features
- Terminal shortcut buttons can now be arranged across multiple rows in settings.
- Added support for moving shortcuts between rows and adjusting the number of rows.
- The terminal accessory area now adapts its layout dynamically to the selected row count.
-
Bug Fixes
- Improved shortcut reordering so it stays consistent within each row.
- Preserved row layout and hidden/visible states more reliably when settings are reloaded.
- Added localized labels for the new row controls.