Remove explicit directory completion from __fish_complete_mime, we only want directory completion as a fallback in order to minimize the number of reasonable completions that are ignored. This issue was reported by Claes Nästén.

darcs-hash:20070417225658-ac50b-26178885ea4f8693858a74cec57a743831430634.gz
This commit is contained in:
axel 2007-04-18 08:56:58 +10:00
parent 90c5cea43d
commit b9009eba96
2 changed files with 1 additions and 4 deletions

View File

@ -23,8 +23,5 @@ function __fish_complete_mime -d "Complete using text files"
printf "%s\n" $res
end
# Also do directory completion, since there might be files
# with the correct suffix in a subdirectory
__fish_complete_directories $comp
end

View File

@ -22,7 +22,7 @@ function __fish_complete_vi -d "Compleletions for vi and its aliases"
# +{command} : Execute Ex command after the first file has been read
# Complete gzip-compressed files
complete $cmds -x -a "(__fish_complete_suffix .gz)"
complete $cmds -x -a "(__fish_complete_mime 'application/x-gzip')"
complete $cmds -s c -r --description 'Execute Ex command after the first file has been read'
complete $cmds -s S -r --description 'Source file after the first file has been read'