mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
add completion for 'equery files' filter switch
This commit is contained in:
parent
80e30bc144
commit
9d9966b156
1 changed files with 5 additions and 3 deletions
|
@ -77,13 +77,15 @@ complete -c equery -n '__fish_seen_subcommand_from g depgraph' -l depth
|
|||
-xa "(seq 9)"
|
||||
|
||||
# files
|
||||
function __fish_equery_files_filter_args
|
||||
printf "%s\n" dir obj sym dev fifo path conf cmd doc man info
|
||||
end
|
||||
complete -c equery -n '__fish_seen_subcommand_from f files' -s m -l md5sum -d "Include MD5 sum in output"
|
||||
complete -c equery -n '__fish_seen_subcommand_from f files' -s s -l timestamp -d "Include timestamp in output"
|
||||
complete -c equery -n '__fish_seen_subcommand_from f files' -s t -l type -d "Include file type in output"
|
||||
complete -c equery -n '__fish_seen_subcommand_from f files' -l tree -d "Display results in a tree"
|
||||
# TODO comma separated list
|
||||
complete -c equery -n '__fish_seen_subcommand_from f files' -s f -l filter -d "Filter output by file type (comma separated list)" \
|
||||
-xa "dir obj sym dev fifo path conf cmd doc man info"
|
||||
complete -c equery -n '__fish_seen_subcommand_from f files' -s f -l filter -d "Filter output by file type" \
|
||||
-xa "(__fish_complete_list , __fish_equery_files_filter_args)"
|
||||
|
||||
# has + hasuse
|
||||
complete -c equery -n '__fish_seen_subcommand_from a has h hasuse' -s I -l exclude-installed -d "Exclude installed pkgs from search path"
|
||||
|
|
Loading…
Reference in a new issue