feat(herdr): add worktrunk, automatic-rename, and zoxide plugins
Add worktrunk keybindings for worktree management (switch/create/remove), shell hooks for automatic-rename in bash and fish, and zoxide directory browsing. Add mise setup task to install all three plugins. Enable auto theme switching.
This commit is contained in:
@@ -34,3 +34,7 @@ if [ -n "$SSH_AUTH_SOCK" ] && [ "$SSH_AUTH_SOCK" != "$auth_sock" ]; then
|
|||||||
mkdir -p "$HOME/.ssh"
|
mkdir -p "$HOME/.ssh"
|
||||||
ln -sf "$SSH_AUTH_SOCK" "$auth_sock"
|
ln -sf "$SSH_AUTH_SOCK" "$auth_sock"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
for _f in "$HOME"/.config/herdr/plugins/github/herdr-automatic-rename-*/shell/hook.bash; do
|
||||||
|
[ -r "$_f" ] && { source "$_f"; break; }
|
||||||
|
done
|
||||||
|
|||||||
@@ -0,0 +1,3 @@
|
|||||||
|
for _f in $HOME/.config/herdr/plugins/github/herdr-automatic-rename-*/shell/hook.fish
|
||||||
|
test -r "$_f"; and source "$_f"; and break
|
||||||
|
end
|
||||||
@@ -3,16 +3,107 @@ onboarding = false
|
|||||||
show_agent_labels_on_pane_borders = true
|
show_agent_labels_on_pane_borders = true
|
||||||
pane_gaps = false
|
pane_gaps = false
|
||||||
pane_borders = true
|
pane_borders = true
|
||||||
|
prompt_new_tab_name = false
|
||||||
|
|
||||||
[experimental]
|
[experimental]
|
||||||
pane_history = true
|
pane_history = true
|
||||||
|
|
||||||
[theme]
|
[theme]
|
||||||
name = "gruvbox"
|
name = "gruvbox"
|
||||||
auto_switch = false
|
auto_switch = true
|
||||||
|
|
||||||
[keys]
|
[keys]
|
||||||
prefix = "ctrl+space"
|
prefix = "ctrl+space"
|
||||||
|
|
||||||
[remote]
|
[remote]
|
||||||
manage_ssh_config = true
|
manage_ssh_config = true
|
||||||
|
|
||||||
|
# Override herdr's built-in "new worktree" key (prefix+shift+g) with worktrunk's
|
||||||
|
# default-branch switch/create picker:
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+g"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.open"
|
||||||
|
description = "Worktree: switch / create from default branch"
|
||||||
|
|
||||||
|
# Optional: bind current-branch creation separately.
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+c"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.open-current"
|
||||||
|
description = "Worktree: switch / create from current branch"
|
||||||
|
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+d"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.remove"
|
||||||
|
description = "Worktree: remove"
|
||||||
|
|
||||||
|
# Override herdr's built-in "new worktree" key (prefix+shift+g) with worktrunk's
|
||||||
|
# default-branch switch/create picker:
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+g"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.open"
|
||||||
|
description = "Worktree: switch / create from default branch"
|
||||||
|
|
||||||
|
# Optional: bind current-branch creation separately.
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+c"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.open-current"
|
||||||
|
description = "Worktree: switch / create from current branch"
|
||||||
|
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+d"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.remove"
|
||||||
|
description = "Worktree: remove"
|
||||||
|
|
||||||
|
# Override herdr's built-in "new worktree" key (prefix+shift+g) with worktrunk's
|
||||||
|
# default-branch switch/create picker:
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+g"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.open"
|
||||||
|
description = "Worktree: switch / create from default branch"
|
||||||
|
|
||||||
|
# Optional: bind current-branch creation separately.
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+c"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.open-current"
|
||||||
|
description = "Worktree: switch / create from current branch"
|
||||||
|
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+d"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.remove"
|
||||||
|
description = "Worktree: remove"
|
||||||
|
|
||||||
|
# Override herdr's built-in "new worktree" key (prefix+shift+g) with worktrunk's
|
||||||
|
# default-branch switch/create picker:
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+g"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.open"
|
||||||
|
description = "Worktree: switch / create from default branch"
|
||||||
|
|
||||||
|
# Optional: bind current-branch creation separately.
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+c"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.open-current"
|
||||||
|
description = "Worktree: switch / create from current branch"
|
||||||
|
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+shift+d"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "worktrunk.remove"
|
||||||
|
description = "Worktree: remove"
|
||||||
|
|
||||||
|
[[keys.command]]
|
||||||
|
key = "prefix+o"
|
||||||
|
type = "plugin_action"
|
||||||
|
command = "herdr-zoxide.browse"
|
||||||
|
description = "Browse zoxide directories"
|
||||||
|
|||||||
@@ -43,6 +43,13 @@ run = [
|
|||||||
'npx skills add mattpocock/skills'
|
'npx skills add mattpocock/skills'
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[tasks.herdr_setup]
|
||||||
|
run = [
|
||||||
|
'herdr plugin install devashish2203/herdr-worktrunk --yes',
|
||||||
|
'herdr plugin install qu8n/herdr-automatic-rename --yes',
|
||||||
|
'herdr plugin install den-tanui/herdr-zoxide --yes',
|
||||||
|
]
|
||||||
|
|
||||||
[tasks.light]
|
[tasks.light]
|
||||||
run = [
|
run = [
|
||||||
'omarchy-theme-set rose-pine',
|
'omarchy-theme-set rose-pine',
|
||||||
|
|||||||
Reference in New Issue
Block a user