From: Tanaka Akira <akr@jaist.ac.jp>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: _path_files -W absolute-pathname
Date: 06 Jan 2000 08:49:55 +0900 [thread overview]
Message-ID: <rsqiu189izf.fsf@crane.jaist.ac.jp> (raw)
zdump <TAB> completes files under a root directory as:
Z:akr@thorax% zdump <TAB>
timezone
bin/ etc/ lib/ proc/ usr/
boot/ floppy/ lost+found/ root/ var/
cdrom/ home/ mnt/ sbin/ vmlinuz@
dev/ initrd/ net/ tmp/ vmlinuz-@
Index: Completion/Core/_path_files
===================================================================
RCS file: /projects/zsh/zsh/Completion/Core/_path_files,v
retrieving revision 1.1.1.51
diff -u -r1.1.1.51 _path_files
--- Completion/Core/_path_files 2000/01/04 15:02:25 1.1.1.51
+++ Completion/Core/_path_files 2000/01/05 23:45:15
@@ -43,6 +43,8 @@
W) tmp1="$OPTARG"
if [[ "$tmp1[1]" = '(' ]]; then
prepaths=( ${^=tmp1[2,-2]%/}/ )
+ elif [[ "$tmp1[1]" = '/' ]]; then
+ prepaths=( "$tmp1/" )
else
# In this case the variable should be an array, so
# don't use an extra ${=...}.
Index: Doc/Zsh/compsys.yo
===================================================================
RCS file: /projects/zsh/zsh/Doc/Zsh/compsys.yo,v
retrieving revision 1.1.1.107
diff -u -r1.1.1.107 compsys.yo
--- Doc/Zsh/compsys.yo 2000/01/05 15:00:22 1.1.1.107
+++ Doc/Zsh/compsys.yo 2000/01/05 23:45:16
@@ -1844,7 +1844,8 @@
prefixes that are to be prepended to the string from the line to
generate the filenames but that should not be inserted in the line or
shown in a completion listing. The var(paths) may be the name of an
-array parameter or a literal list of paths enclosed in parentheses.
+array parameter, a literal list of paths enclosed in parentheses or
+an absolute pathname.
Additionally, the `tt(-F)'
option from the tt(compadd) builtin is supported, giving direct control
over which filenames should be ignored. If no such option is given,
--
Tanaka Akira
reply other threads:[~2000-01-05 23: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=rsqiu189izf.fsf@crane.jaist.ac.jp \
--to=akr@jaist.ac.jp \
--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).