commit 25faededdb01bc44a02df10d363a6bfb699e214e
parent 8112150267a3c521c08cee72057239890265d348
Author: Sean Enck <sean@ttypty.com>
Date: Sun, 8 Jun 2025 08:01:20 -0400
unset and insert should have different completion paths
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/internal/app/completions/shell/bash.sh b/internal/app/completions/shell/bash.sh
@@ -33,12 +33,12 @@ _{{ $.Executable }}() {
"{{ $.HelpCommand }}")
opts="{{ $.HelpAdvancedCommand }} {{ $.HelpConfigCommand }}"
;;
- "{{ $.MoveCommand }}" | "{{ $.RemoveCommand }}")
+ "{{ $.MoveCommand }}" | "{{ $.RemoveCommand }}" | "{{ $.InsertCommand }}")
if {{ $.Conditionals.Not.AskMode }}; then
opts="$opts $({{ $.DoGroups }})"
fi
;;
- "{{ $.InsertCommand }}" | "{{ $.UnsetCommand }}")
+ "{{ $.UnsetCommand }}")
if {{ $.Conditionals.Not.AskMode }}; then
opts="$opts $({{ $.DoList }})"
fi
diff --git a/internal/app/completions/shell/zsh.sh b/internal/app/completions/shell/zsh.sh
@@ -45,14 +45,14 @@ _{{ $.Executable }}() {
compadd "$@" "{{ $.HelpConfigCommand }}"
fi
;;
- "{{ $.RemoveCommand }}")
+ "{{ $.RemoveCommand }}" | "{{ $.InsertCommand }}")
if [ "$len" -eq 3 ]; then
if {{ $.Conditionals.Not.AskMode }}; then
compadd "$@" $({{ $.DoGroups }})
fi
fi
;;
- "{{ $.InsertCommand }}" | "{{ $.UnsetCommand }}")
+ "{{ $.UnsetCommand }}")
if [ "$len" -eq 3 ]; then
if {{ $.Conditionals.Not.AskMode }}; then
compadd "$@" $({{ $.DoList }})