diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-08 10:17:56 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-08 10:17:56 +0300 |
| commit | 66811bb5c21fa674b19767f34ff7d27004f838b4 (patch) | |
| tree | 1535208ed3fe4ad3a0d30520d00ee1f3f015f77e /internal/askcli/completion.go | |
| parent | 385278639394e3672bce678b49e51f14ac72638c (diff) | |
fish: complete task selectors with short aliases only
Add complete-aliases subcommand that emits tab-separated alias lines without
UUID duplicates. Wire embedded Fish script (__do_task_selectors) to call
complete-aliases; keep complete-uuids unchanged for scripts and tests.
Made-with: Cursor
Diffstat (limited to 'internal/askcli/completion.go')
| -rw-r--r-- | internal/askcli/completion.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/askcli/completion.go b/internal/askcli/completion.go index 3e30c6c..e7b837e 100644 --- a/internal/askcli/completion.go +++ b/internal/askcli/completion.go @@ -274,9 +274,9 @@ func writeFishTaskSelectorFunction(b *strings.Builder, binaryPath string) { b.WriteString(" end\n") b.WriteString(" set -l selectors\n") b.WriteString(" if test -n \"$scope_prefix\"\n") - b.WriteString(" set selectors (command $do_bin $scope_prefix complete-uuids 2>/dev/null)\n") + b.WriteString(" set selectors (command $do_bin $scope_prefix complete-aliases 2>/dev/null)\n") b.WriteString(" else\n") - b.WriteString(" set selectors (command $do_bin complete-uuids 2>/dev/null)\n") + b.WriteString(" set selectors (command $do_bin complete-aliases 2>/dev/null)\n") b.WriteString(" end\n") b.WriteString(" if test $status -ne 0\n") b.WriteString(" return 1\n") |
