From 7b18fe50301e6e256b2e92d4f2cdb97ac8e5be76 Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Sun, 18 Oct 2026 11:34:05 +0200 Subject: [PATCH] docs: expose layout switching in Config help Show the existing Left/Right mixer-orientation control in the Config quick-help footer and document the interaction.\n\nTests: cargo fmt --all -- --check\nTests: cargo test -p tui --all-features\nTests: cargo check --workspace --all-targets --all-features\nTests: cargo clippy -p tui --all-targets --all-features -- -D warnings --- README.md | 5 +++-- architecture.md | 6 ++++-- tui/src/lib.rs | 12 ++++++++++++ 3 files changed, 19 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1544afa..dfbe5d6 100644 --- a/README.md +++ b/README.md @@ -107,8 +107,9 @@ they do not represent a live hardware session. | Hide selected fader | Shift+H | Shift+H | | Help | h or ? | h or ? | -Use `Tab` to open Config, `T` to cycle the theme, and `Q` to open the quit -confirmation. Fader editing exposes capture rules, group membership, separate +Use `Tab` to open Config, select Mixer layout and use Left/Right to switch its +orientation, `T` to cycle the theme, and `Q` to open the quit confirmation. +Fader editing exposes capture rules, group membership, separate controller/Learn/Unlearn actions for volume and mute, size, and visibility. Add opens a chooser for a new application fader, empty group, or separator. New faders and groups open directly in the editor; delete asks for confirmation diff --git a/architecture.md b/architecture.md index 5740580..2b3849a 100644 --- a/architecture.md +++ b/architecture.md @@ -565,8 +565,10 @@ profile theme, mixer orientation and pickup-status selection, a popup listing all hidden faders for individual restoration, unsaved and Save state, active profile/backend status, MIDI-learn cancellation, and MIDI device diagnostics. Object and layout edits stay on the -main mixer. There is no separate hidden-fader mode: hidden rows disappear from -the mixer and are restored from this popup at their retained layout positions. +main mixer. Its quick-help footer calls out Left/Right layout switching +alongside Save and navigation. There is no separate hidden-fader mode: hidden +rows disappear from the mixer and are restored from this popup at their retained +layout positions. MIDI devices are selectable settings rows. Their details popup shows stable and backend identity, connection status, and errors, and sets or clears the same profile-backed default controller used by MIDI learn. diff --git a/tui/src/lib.rs b/tui/src/lib.rs index fc6fac7..ce6cfa7 100644 --- a/tui/src/lib.rs +++ b/tui/src/lib.rs @@ -3198,6 +3198,8 @@ impl Widget for &LiveTui { "help".fg(theme.secondary), ]), Tab::Configuration => Line::from(vec![ + " ←→ ".fg(theme.foreground), + "layout".fg(theme.secondary), " S ".fg(theme.foreground), "save".fg(theme.secondary), " Tab ".fg(theme.foreground), @@ -6835,6 +6837,16 @@ mod tests { }) .unwrap(); app.handle_key_event(press(KeyCode::Char('2'))); + let area = Rect::new(0, 0, 160, 20); + let mut buffer = Buffer::empty(area); + (&app).render(area, &mut buffer); + let rendered = buffer + .content + .iter() + .map(|cell| cell.symbol()) + .collect::(); + assert!(rendered.contains(" ←→ layout")); + app.handle_key_event(press(KeyCode::Right)); assert_eq!(app.theme(), ThemeName::Dracula); app.handle_key_event(press(KeyCode::Down));