Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Merge branch 'feat/tui-command-panel' into feat/tui-keybinds

Tim776027f11eda
diff --cc tui/src/modal.rs
index b4bf4b75f,12e6a8c3d..3721f5c52
--- a/tui/src/modal.rs
+++ b/tui/src/modal.rs
@@@ -693,10 -620,6 +692,8 @@@ pub fn theme_options(app: &App, section
let dim = Row::new(if on { "dim:off" } else { "dim:on" }, "Dim other panes").lead(lead(on))
.detail(vec![span(if on { "on" } else { "the panes you are not in, a little quieter" }, fg(theme::MUTED))]);
styles.chain(std::iter::once(dim)).collect() }
+ // ── keys ──
+ "keys" => keybind_rows(app),
- "layout" => { let cur = current("@hn-layout-preset", "auto");
- ["auto", "even-horizontal", "even-vertical", "main-horizontal", "main-vertical", "tiled"].iter().map(|v| opt(format!("layout_preset:{v}"), *v, cur == *v, "@hn-layout-preset")).collect() }
"theme" => {
let cur = o.get("@hn-theme", "", None).unwrap_or_default();
// First, no theme: the terminal's own colours.
@@@ -800,11 -723,9 +797,11 @@@ mod theme_row_tests
let app = app();
let rows = theme_sections(&app);
let ids: Vec<&str> = rows.iter().map(|r| r.id.as_str()).collect();
- assert_eq!(ids, vec!["section:status", "section:focus", "section:layout", "section:theme",
+ assert_eq!(ids, vec!["section:status", "section:focus", "section:theme",
// ── status bar ──
- "section:bar", "section:boxes"]);
+ "section:bar", "section:boxes",
+ // ── keys ──
+ "section:keys"]);
// Each section shows its current value and opens onto a non-empty option list.
assert!(rows.iter().all(|r| !r.right.is_empty()), "each section shows a value");
for r in &rows {
diff --cc tui/src/settings.rs
index 084693fd9,839cf4b54..420f1076e
--- a/tui/src/settings.rs
+++ b/tui/src/settings.rs
@@@ -422,11 -317,9 +422,11 @@@ fn capital(t: &str) -> String { let mu
pub fn section_title(section: &str) -> &'static str {
match section {
"status" => "Pane titles", "focus" => "Focus",
- "layout" => "Layout", "theme" => "Theme",
+ "theme" => "Theme",
// ── status bar ──
"bar" => "Status bar", "boxes" => "Borders",
+ // ── keys ──
+ "keys" => "Keybinds",
_ => "",
}
}