From 236582a921e1c302c0562b9154b61dbbc71e09c6 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Mon, 25 May 2026 09:35:31 +0300 Subject: fix(completion): suppress file/path completions with -f -a empty --- completions/gt.fish | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/completions/gt.fish b/completions/gt.fish index 5ecee57..4f92d30 100644 --- a/completions/gt.fish +++ b/completions/gt.fish @@ -26,8 +26,10 @@ end # ── Flags ──────────────────────────────────────────────────────────────────── -# Suppress fish's default file/path completions so only our custom tokens appear. -complete -c gt -k +# Prevent fish from mixing in file/path completions from the current directory. +# The -f flag tells fish "file completions are handled" and the empty -a means +# no actual files are offered, so only our custom -a entries appear. +complete -c gt -f -a "" complete -c gt -n "__fish_gt_needs_top_level" \ -l log -r -d "Session log file (REPL mode)" -- cgit v1.2.3