Skip to content

Commit 4946251

Browse files
committed
feat(herdr): add repeat tab keys and UI indicators
1 parent 6f5610d commit 4946251

2 files changed

Lines changed: 16 additions & 8 deletions

File tree

src/.config/herdr/config.toml

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,19 +68,20 @@ goto = "prefix+ctrl+s"
6868
new_workspace = "prefix+shift+n"
6969
rename_workspace = "prefix+,"
7070
close_workspace = "prefix+shift+x"
71-
previous_workspace = { key = "prefix+ctrl+k", repeat = true } # optional, unset by default
72-
next_workspace = { key = "prefix+ctrl+j", repeat = true } # optional, unset by default
73-
previous_agent = { key = "prefix+shift+k", repeat = true } # optional, unset by default
74-
next_agent = { key = "prefix+shift+j", repeat = true } # optional, unset by default
75-
# focus_agent = "" # optional indexed binding, e.g. "prefix+alt+1..9"
71+
# `repeat` parameter only works in peinan/herdr
72+
previous_workspace = { key = "prefix+ctrl+k", repeat = true }
73+
next_workspace = { key = "prefix+ctrl+j", repeat = true }
74+
previous_agent = { key = "prefix+shift+k", repeat = true }
75+
next_agent = { key = "prefix+shift+j", repeat = true }
76+
previous_tab = { key = "prefix+ctrl+h", repeat = true }
77+
next_tab = { key = "prefix+ctrl+l", repeat = true }
7678
new_tab = "prefix+c"
7779
rename_tab = "prefix+."
78-
previous_tab = { key = "prefix+shift+h", repeat = true }
79-
next_tab = { key = "prefix+shift+l", repeat = true }
8080
# switch_tab = "prefix+1..9"
8181
# switch_workspace = "" # optional indexed binding, e.g. "prefix+shift+1..9"
8282
close_tab = "prefix+x"
8383
rename_pane = "prefix+shift+p"
84+
# focus_agent = "" # optional indexed binding, e.g. "prefix+alt+1..9"
8485
# edit_scrollback = "prefix+e"
8586
focus_pane_left = "alt+h"
8687
focus_pane_down = "alt+j"
@@ -182,6 +183,13 @@ show_agent_labels_on_pane_borders = true
182183
# Background notification popup delivery
183184
agent_panel_scope = "all"
184185
agent_panel_sort = "priority"
186+
187+
# Only works in peinan/herdr
188+
sidebar_divider = false
189+
zoom_indicator = ""
190+
prefix_indicator = "highlight"
191+
single_pane_border = true
192+
185193
[ui.toast]
186194
# off = disable pop-up notifications
187195
# herdr = show top-right in-app toasts

src/.zshrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ if [[ -n "$HERDR_PANE_ID" ]] && (( $+commands[herdr] )); then
110110
_herdr_pane_title() {
111111
local cmd="$1"
112112
local dir; [[ "$PWD" == "$HOME" ]] && dir="~" || dir="${PWD:t}"
113-
herdr pane rename "$HERDR_PANE_ID" "${dir}: ${cmd}" &>/dev/null
113+
herdr pane rename "$HERDR_PANE_ID" "${dir} ${cmd}" &>/dev/null
114114
}
115115

116116
_herdr_pane_title_idle() { _herdr_pane_title "${SHELL:t}" } # prompt -> "zsh"

0 commit comments

Comments
 (0)