From: Will Day <willday@rom.oit.gatech.edu>
To: zsh users mailing list <zsh-users@sunsite.auc.dk>
Subject: different kind of glob_complete?
Date: Fri, 3 Sep 1999 00:39:25 -0400 [thread overview]
Message-ID: <19990903003925.A7942@rom.oit.gatech.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 1393 bytes --]
Here's something I've been wondering about - can I get zsh to perform menu
completion of glob patterns that match exactly the end of a string?
For example:
% zsh -f
% setopt glob_complete noalwayslastprompt noautolist
% ls
file.10 file.11 file.20 file.21
% vi file*1<^D>
file.11 file.21
% vi file*1<TAB>
-> % vi file.11
I'm thinking this would be like glob_complete:
GLOB_COMPLETE
When the current word has a glob pattern, do not insert
all the words resulting from the expansion but generate
matches as for completion and cycle through them like
MENU_COMPLETE. The matches are generated as if a `*' is
added to the end of the word or inserted at the cursor
if COMPLETE_IN_WORD is set. Since this doesn't use
globbing, it works not only for files but for all com-
pletions, such as options, user names, etc.
but _without_ the trailing '*'?
--
Will Day <PGP mail preferred> OIT / O&E / Technical Support
willday@rom.oit.gatech.edu Georgia Tech, Atlanta 30332-0715
-> Opinions expressed are mine alone and do not reflect OIT policy <-
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
Benjamin Franklin, Pennsylvania Assembly, Nov. 11, 1755
[-- Attachment #2: Type: application/pgp-signature, Size: 344 bytes --]
next reply other threads:[~1999-09-03 4:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-09-03 4:39 Will Day [this message]
1999-09-03 5:25 ` Bart Schaefer
1999-09-03 7:41 Sven Wischnowsky
1999-09-03 9:31 ` Bart Schaefer
1999-09-03 9:45 ` Andrej Borsenkow
1999-09-03 14:40 ` Bart Schaefer
1999-09-03 17:28 ` Will Day
1999-09-06 9:13 Sven Wischnowsky
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=19990903003925.A7942@rom.oit.gatech.edu \
--to=willday@rom.oit.gatech.edu \
--cc=zsh-users@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).