diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-25 09:35:31 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-25 09:35:31 +0300 |
| commit | 236582a921e1c302c0562b9154b61dbbc71e09c6 (patch) | |
| tree | 8b2323fd9c4db22418b21bda92ad22213583fb83 | |
| parent | 6fc6b680dfe9975e1483d687df2e6a7b5d0fe55f (diff) | |
fix(completion): suppress file/path completions with -f -a empty
| -rw-r--r-- | completions/gt.fish | 6 |
1 files 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)" |
