From 66811bb5c21fa674b19767f34ff7d27004f838b4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 8 Apr 2026 10:17:56 +0300 Subject: 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 --- docs/fish-completion.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/fish-completion.md b/docs/fish-completion.md index f55e4cf..95de56a 100644 --- a/docs/fish-completion.md +++ b/docs/fish-completion.md @@ -3,8 +3,8 @@ The `do` task-management CLI embeds its Fish completion script in the binary and prints it with `do fish`. It completes the top-level `do` subcommands and the nested `do dep` operations. -It also completes task selectors for UUID-taking commands by reading pending tasks through `do complete-uuids`, which uses the local alias cache for stable short IDs. -Fish suggests each task's alias ID first and also keeps the raw UUID available as a fallback selector. +It also completes task selectors for UUID-taking commands by reading pending tasks through `do complete-aliases`, which uses the local alias cache for stable short IDs. +The `do complete-uuids` command still emits both alias and UUID lines for scripts and tests that need the full selector list. Selector suggestions stop once a command has consumed its selector argument, and `do dep add` / `do dep rm` suggest selectors for both task positions. When typing `do add depends:...`, Fish also completes the comma-separated dependency selector list inside the `depends:` modifier. The script preserves the global `--json` flag. -- cgit v1.2.3