From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: man -l (local-file) completion
Date: Sun, 3 Sep 2000 17:43:46 -0400 [thread overview]
Message-ID: <20000903174346.A17438@dman.com> (raw)
This is a quick hack to have files completed for 'man -l' rather than
manpages. This is good for the man-db used by Debian. The only other
man I can think of that uses -l is Solaris, and though it has a different
meaning, I don't think completing manpages nor filenames is particularly
useful there, so this shouldn't really hurt.
This should naturally be subsumed by more comprehensive options handling.
Index: Completion/User/_man
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/User/_man,v
retrieving revision 1.5
diff -u -r1.5 _man
--- Completion/User/_man 2000/07/19 09:03:30 1.5
+++ Completion/User/_man 2000/09/03 21:37:42
@@ -4,6 +4,10 @@
local rep expl star approx mrd
+if [[ $words[1] == man ]] && (( $words[(I)-l] + $words[(I)--local-file] )); then
+ _files || return 0
+fi
+
if [[ $compstate[pattern_match] != [^*] ]]; then
# If a string other than *, we just want correction, so no `*'.
star='*'
next reply other threads:[~2000-09-03 21:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-03 21:43 Clint Adams [this message]
2000-09-04 6:17 ` Andrej Borsenkow
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=20000903174346.A17438@dman.com \
--to=schizo@debian.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).