From 1dd192cc9137a767ebafa6ba12d7371d311347ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lilian=20J=C3=B3nsd=C3=B3ttir?= Date: Wed, 3 Jul 2024 10:15:58 -0700 Subject: [PATCH] update fish completion --- contrib/completions/gt.fish | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/completions/gt.fish b/contrib/completions/gt.fish index b1f91a9..3d65112 100644 --- a/contrib/completions/gt.fish +++ b/contrib/completions/gt.fish @@ -2,6 +2,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 log_levels debug info warn error fatal # commands @@ -30,8 +31,8 @@ complete -c gt -rf -n "__fish_seen_subcommand_from $commands" -l min-size -s N - complete -c gt -rf -n "__fish_seen_subcommand_from $commands" -l max-size -s X -d "operate on files smaller than size" # trash flags -complete -c gt -rf -n "__fish_seen_subcommand_from trash" -l recursive -s r -d "recursively trash files" -complete -c gt -rf -n "__fish_seen_subcommand_from trash" -l work-dir -s w -d "trash files in specified directory" +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 / 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"