complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match"-s v -l invert -d"Invert meaning of filters"
complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match expand"-s t -ltype-d"Filter by type"-x-a'(__fish_append , file link dir block char fifo socket)'
complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match expand"-s f -d"Filter files"-x-a'(__fish_append , read write exec suid sgid sticky user group)'
complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match expand"-s d -d"Filter directories"-x-a'(__fish_append , read write exec suid sgid sticky user group)'
complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match expand"-s l -d"Filter symlinks"-x-a'(__fish_append , read write exec suid sgid sticky user group)'
complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match expand"-s p -l perm -d"Filter by permission"-x-a'(__fish_append , read write exec suid sgid sticky user group)'
complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match expand"-s r -d"Filter readable paths"-x-a'(__fish_append , read write exec suid sgid sticky user group)'
complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match expand"-s w -d"Filter writable paths"-x-a'(__fish_append , read write exec suid sgid sticky user group)'
complete-f-c path -n"test (count (commandline -opc)) -ge 2; and contains -- (commandline -opc)[2] filter is match expand"-s x -d"Filter executale paths"-x-a'(__fish_append , read write exec suid sgid sticky user group)'
# Turn on file completions again.
# match takes a glob as first arg, expand takes only globs.