From mboxrd@z Thu Jan 1 00:00:00 1970 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes Resent-From: "Bart Schaefer" Resent-Message-Id: <990205012542.ZM21847@candle.brasslantern.com> Resent-Date: Fri, 5 Feb 1999 01:25:42 -0800 X-Mailer: Z-Mail (4.0b.820 20aug96) Resent-To: zsh-workers@sunsite.auc.dk Date: Fri, 5 Feb 1999 09:58:30 +0100 (MET) Message-Id: <199902050858.JAA19419@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: "Bart Schaefer" In-reply-to: "Bart Schaefer"'s message of Fri, 5 Feb 1999 00:33:29 -0800 Subject: Re: Fun with zsh (Re: Associative array ordering (Re: Example function)) X-UIDL: 58a266ee38a3f3ef2e6e86a866b12bc1 X-Mailing-List: 5268 Bart Schaefer wrote: > On Feb 5, 8:45am, Sven Wischnowsky wrote: > } Subject: Re: Fun with zsh (Re: Associative array ordering (Re: Example fun > } > } pindex(GLOB_COMPLETE) > } item(tt(GLOB_COMPLETE))( > } When the current word has a glob pattern, do not insert all the words > } +resulting from the expansion but collect matches as for completion and > ^^^^^^^^^^^^^^^^^^^^^^ > Something about this phrase > bothers me. "generate matches"? Considering that we often use the word generate for this, it would be better, yes. > } +cycle through them like tt(MENU_COMPLETE). If no matches are found, a > } +`tt(*)' is added to the end of the word or inserted at the cursor if > } +tt(COMPLETE_IN_WORD) is set, and completion is attempted again using > } +pattern matching. Since this doesn't use globbing, it not only for > ^^*^^^^^^^^^^^^ > it is not only? > it works not only? I accidentally removed the `works', oops. Thanks! Bye Sven diff -u ood/Zsh/options.yo Doc/Zsh/options.yo --- ood/Zsh/options.yo Fri Feb 5 09:55:15 1999 +++ Doc/Zsh/options.yo Fri Feb 5 09:56:09 1999 @@ -340,11 +340,11 @@ pindex(GLOB_COMPLETE) item(tt(GLOB_COMPLETE))( When the current word has a glob pattern, do not insert all the words -resulting from the expansion but collect matches as for completion and +resulting from the expansion but generate matches as for completion and cycle through them like tt(MENU_COMPLETE). If no matches are found, a `tt(*)' is added to the end of the word or inserted at the cursor if tt(COMPLETE_IN_WORD) is set, and completion is attempted again using -pattern matching. Since this doesn't use globbing, it not only for +pattern matching. Since this doesn't use globbing, it works not only for files but for all completions, such as options, user names, etc. ) pindex(GLOB_DOTS) -- Sven Wischnowsky wischnow@informatik.hu-berlin.de