mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +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)"
|
-xa "(seq 9)"
|
||||||
|
|
||||||
# files
|
# 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 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 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' -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"
|
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" \
|
||||||
complete -c equery -n '__fish_seen_subcommand_from f files' -s f -l filter -d "Filter output by file type (comma separated list)" \
|
-xa "(__fish_complete_list , __fish_equery_files_filter_args)"
|
||||||
-xa "dir obj sym dev fifo path conf cmd doc man info"
|
|
||||||
|
|
||||||
# has + hasuse
|
# 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"
|
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