diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-07-23 14:22:27 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2015-07-23 14:26:38 +0800 |
commit | 7fa69ef8bed3511d3b1bb5bf46fa0281f61b43aa (patch) | |
tree | ff6264b52c000ba0b33fe83268fcfca07f822fc5 /share/functions/__fish_complete_suffix.fish | |
parent | f77f71c17eca9707e808659f52e4943aa37ee226 (diff) |
__fish_complete_suffix: don't provide file description by default
Drops dependency on the mimedb tool and reflects the changes made to the
default chooser for files in #279.
Diffstat (limited to 'share/functions/__fish_complete_suffix.fish')
-rw-r--r-- | share/functions/__fish_complete_suffix.fish | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/share/functions/__fish_complete_suffix.fish b/share/functions/__fish_complete_suffix.fish index 1f320706..d0c264db 100644 --- a/share/functions/__fish_complete_suffix.fish +++ b/share/functions/__fish_complete_suffix.fish @@ -1,6 +1,6 @@ # # Find files that complete $argv[1], has the suffix $argv[2], and -# output them as completions with the description $argv[3] Both +# output them as completions with the optional description $argv[3] Both # $argv[1] and $argv[3] are optional, if only one is specified, it is # assumed to be the argument to complete. # @@ -19,12 +19,12 @@ function __fish_complete_suffix -d "Complete using files" case 1 set comp (commandline -ct) set suff $argv - set desc (mimedb -d $suff) + set desc "" case 2 set comp $argv[1] set suff $argv[2] - set desc (mimedb -d $suff) + set desc "" case 3 set comp $argv[1] @@ -45,8 +45,9 @@ function __fish_complete_suffix -d "Complete using files" # # Also do directory completion, since there might be files # with the correct suffix in a subdirectory + # No need to describe directories (#279) # - __fish_complete_directories $comp + __fish_complete_directories $comp "" end |