From 586c8b34cb974b23b33dafa1dd6d93b5dc57a627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Mon, 15 Jul 2024 21:46:22 -0700 Subject: [PATCH] update fish completion again --- contrib/completions/gt.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/completions/gt.fish b/contrib/completions/gt.fish index f6e1aa5..076c2ba 100644 --- a/contrib/completions/gt.fish +++ b/contrib/completions/gt.fish @@ -3,6 +3,7 @@ set -l commands list ls trash tr clean cl restore re set -l already_in_trash_commands list ls clean cl restore re set -l trash_commands trash tr +set -l list_commands list ls set -l log_levels debug info warn error fatal # commands @@ -35,5 +36,8 @@ complete -c gt -rf -n "__fish_seen_subcommand_from $commands" -l mode -s x -d "o complete -c gt -rf -n "__fish_seen_subcommand_from $trash_commands" -l recursive -s r -d "recursively trash files" complete -c gt -rf -n "__fish_seen_subcommand_from $trash_commands" -l work-dir -s w -d "trash files in specified directory" +# list flags +complete -c gt -rf -n "__fish_seen_subcommand_from $list_commands" -l non-interactive -s n -d "list files and quit" + # list / clean / restore flags complete -c gt -rf -n "__fish_seen_subcommand_from $already_in_trash_commands" -l original-path -s O -d "operate on files trashed from this directory"