From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6458 invoked from network); 3 Sep 1999 04:39:40 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 3 Sep 1999 04:39:40 -0000 Received: (qmail 5619 invoked by alias); 3 Sep 1999 04:39:28 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2556 Received: (qmail 5612 invoked from network); 3 Sep 1999 04:39:27 -0000 Date: Fri, 3 Sep 1999 00:39:25 -0400 From: Will Day To: zsh users mailing list Subject: different kind of glob_complete? Message-ID: <19990903003925.A7942@rom.oit.gatech.edu> Reply-To: Will Day Mime-Version: 1.0 Content-Type: multipart/signed; boundary="W/nzBZO5zC0uMSeA"; micalg=pgp-md5; protocol="application/pgp-signature" X-Mailer: Mutt 0.95.3i X-no-archive: yes --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable 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 -> % 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 '*'? --=20 Will Day 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 --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: 2.6.3a Comment: http://rom.oit.gatech.edu/~willday/pubkey.asc iQCVAwUBN89Q/RDHlOdPw2ZdAQE8/AP/VyucnNeVPMp2X604iaH0Netc+rZQq8/H hZA8O152BwmvDO596esLgzH9EzCNxTUHq2rLyXMgFm+YLAg91jgW2a+UMKe7FcQX Jw1vQJ2kj5BsXtTF8W2lP1aF+szpUybTaontR2JwkeZf6rrnF8jFr2fBx8nHVNKV JPoQXX8b8cA= =P1is -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--