about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-05-05 14:47:54 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-05-05 14:47:54 +0000
commitc3f2434dfa7b620e73b13edb03a56c90be4a1f44 (patch)
tree5e6f8069b2ae479fc2077b205d3c6adb37a8dd58
parentb9ef0282d284ac7247e733f408e3c717b65bf1bf (diff)
downloadzsh-c3f2434dfa7b620e73b13edb03a56c90be4a1f44.tar.gz
zsh-c3f2434dfa7b620e73b13edb03a56c90be4a1f44.tar.xz
zsh-c3f2434dfa7b620e73b13edb03a56c90be4a1f44.zip
11204: Completion/User/_look: use more precise explanation and
complete an optional second argument.
-rw-r--r--ChangeLog5
-rw-r--r--Completion/User/_look5
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fa8a7d4d6..e4e5bdbd4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2000-05-05  Tanaka Akira  <akr@zsh.org>
+
+	* 11204: Completion/User/_look: use more precise explanation and
+	complete an optional second argument.
+
 2000-05-05  Peter Stephenson  <pws@cambridgesiliconradio.com>
 
 	* pws: 11196: Functions/Misc/zmv: allow (**/) to map to a
diff --git a/Completion/User/_look b/Completion/User/_look
index 74e7ab447..ea53867ee 100644
--- a/Completion/User/_look
+++ b/Completion/User/_look
@@ -7,11 +7,12 @@ _arguments -C -s \
   '-t+[termination character]:termination character:' \
   '-f[case insensitive]' \
   '-d[dictionary order]' \
-  ':string:->string' && return 0
+  ':string:->string' \
+  ':dictionary file:_files -f' && return 0
 
 case "$state" in
 string)
   [[ -n "$PREFIX" ]] &&
-      _wanted values expl value compadd - $(_call values $words[1] $PREFIX)
+      _wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX)
   ;;
 esac