mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08:00
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:
parent
90c5cea43d
commit
b9009eba96
@ -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
|
||||
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user