Skip to content

Commit acd2300

Browse files
committed
feat(herdr): streamline agent navigation
1 parent 55a532e commit acd2300

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

config/herdr/config.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ mauve = "#8839ef"
2121

2222
[ui]
2323
agent_panel_sort = "priority"
24+
hide_tab_bar_when_single_tab = true
25+
prompt_new_tab_name = false
2426

2527
[ui.toast]
2628
delivery = "herdr"
@@ -47,6 +49,9 @@ open_worktree = "prefix+G"
4749
new_tab = "prefix+c"
4850
rename_tab = "prefix+alt+t"
4951
switch_tab = "prefix+1..9"
52+
focus_agent = "prefix+alt+1..9"
53+
next_agent = "prefix+J"
54+
previous_agent = "prefix+K"
5055
previous_tab = "prefix+p"
5156
next_tab = "prefix+n"
5257
focus_pane_left = "prefix+h"

modules/shell/herdr/default.nix

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,9 @@ in
650650
"new_tab": "prefix+c",
651651
"rename_tab": "prefix+alt+t",
652652
"switch_tab": "prefix+1..9",
653+
"focus_agent": "prefix+alt+1..9",
654+
"next_agent": "prefix+J",
655+
"previous_agent": "prefix+K",
653656
"previous_tab": "prefix+p",
654657
"next_tab": "prefix+n",
655658
"focus_pane_left": "prefix+h",
@@ -933,7 +936,15 @@ in
933936
out = upsert_worktree_directory(out)
934937
out = upsert_simple_section(out, "session", {"resume_agents_on_restore": "true"})
935938
out = upsert_simple_section(out, "experimental", {"pane_history": "true"})
936-
out = upsert_simple_section(out, "ui", {"agent_panel_sort": '"priority"'})
939+
out = upsert_simple_section(
940+
out,
941+
"ui",
942+
{
943+
"agent_panel_sort": '"priority"',
944+
"hide_tab_bar_when_single_tab": "true",
945+
"prompt_new_tab_name": "false",
946+
},
947+
)
937948
out = replace_section(out, "[theme]", [f'name = "{theme_name}"'])
938949
out = replace_section(
939950
out,

0 commit comments

Comments
 (0)