From: Tanaka Akira <akr@m17n.org>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: _look refinement.
Date: 16 May 2000 09:51:20 +0900 [thread overview]
Message-ID: <hvo7lcvpbav.fsf@serein.m17n.org> (raw)
This refines _look.
* display message when an argument is empty.
* remove `-f'.
Index: Completion/User/_look
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_look,v
retrieving revision 1.3
diff -u -r1.3 _look
--- Completion/User/_look 2000/05/05 14:48:04 1.3
+++ Completion/User/_look 2000/05/16 00:48:42
@@ -8,11 +8,14 @@
'-f[case insensitive]' \
'-d[dictionary order]' \
':string:->string' \
- ':dictionary file:_files -f' && return 0
+ ':dictionary file:_files' && return 0
case "$state" in
string)
- [[ -n "$PREFIX" ]] &&
- _wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX)
+ if [[ -n "$PREFIX" ]]; then
+ _wanted values expl 'word prefix' compadd - $(_call values $words[1] $PREFIX)
+ else
+ _message 'word prefix'
+ fi
;;
esac
--
Tanaka Akira
reply other threads:[~2000-05-16 0:50 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=hvo7lcvpbav.fsf@serein.m17n.org \
--to=akr@m17n.org \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).