From b9009eba96049b3fe0f62c4ee6489573b6e66d17 Mon Sep 17 00:00:00 2001 From: axel Date: Wed, 18 Apr 2007 08:56:58 +1000 Subject: [PATCH] =?UTF-8?q?Remove=20explicit=20directory=20completion=20fr?= =?UTF-8?q?om=20=5F=5Ffish=5Fcomplete=5Fmime,=20we=20only=20want=20directo?= =?UTF-8?q?ry=20completion=20as=20a=20fallback=20in=20order=20to=20minimiz?= =?UTF-8?q?e=20the=20number=20of=20reasonable=20completions=20that=20are?= =?UTF-8?q?=20ignored.=20This=20issue=20was=20reported=20by=20Claes=20N?= =?UTF-8?q?=C3=A4st=C3=A9n.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit darcs-hash:20070417225658-ac50b-26178885ea4f8693858a74cec57a743831430634.gz --- share/functions/__fish_complete_mime.fish | 3 --- share/functions/__fish_complete_vi.fish | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/share/functions/__fish_complete_mime.fish b/share/functions/__fish_complete_mime.fish index 76c4e7165..cd84da1f5 100644 --- a/share/functions/__fish_complete_mime.fish +++ b/share/functions/__fish_complete_mime.fish @@ -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 diff --git a/share/functions/__fish_complete_vi.fish b/share/functions/__fish_complete_vi.fish index 39a71ac38..78167d2ce 100644 --- a/share/functions/__fish_complete_vi.fish +++ b/share/functions/__fish_complete_vi.fish @@ -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'