From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8819 invoked from network); 20 Feb 2000 12:17:40 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 20 Feb 2000 12:17:40 -0000 Received: (qmail 161 invoked by alias); 20 Feb 2000 12:17:33 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9795 Received: (qmail 151 invoked from network); 20 Feb 2000 12:17:32 -0000 To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: Re: completion after ../ References: <200002180939.KAA30810@beta.informatik.hu-berlin.de> MIME-Version: 1.0 (generated by AKEMI 1.13.2 - =?ISO-2022-JP?B?Ig==?= =?ISO-2022-JP?B?GyRCQTA0Y0s8GyhCIg==?=) Content-Type: text/plain; charset=US-ASCII From: Tanaka Akira Date: 20 Feb 2000 21:17:28 +0900 In-Reply-To: Sven Wischnowsky's message of "Fri, 18 Feb 2000 10:39:19 +0100 (MET)" Message-ID: User-Agent: Chao-gnus/6.12.5 AKEMI/1.13.2 (=?ISO-2022-JP?B?GyRCQTAbKEI=?= =?ISO-2022-JP?B?GyRCNGNLPBsoQg==?=) FLAM-DOODLE/1.12.6 (=?ISO-2022-JP?B?GyRCM3cbKEI=?= 10R4.0/5.0) Emacs/20.4 (sparc-sun-solaris2.6) MULE/4.0 (HANANOEN) In article <200002180939.KAA30810@beta.informatik.hu-berlin.de>, Sven Wischnowsky writes: > Or we name it `single-ignored' (yes, there must be a better name) and > enhace it: if it's set to `show' we use the above. If it's set to > `menu' we also add the string from the line in the alternate set (as > usual, with -S '', in it's own group, with a call to _description and > so on...) and start menu-completion (compstate[insert]=menu). I tried this. I inserted the following fragment just before line 83 in _main_complete. if zstyle -s ":completion:${curcontext}:" single-ignored tmp && [[ $compstate[old_list] != shown && $compstate[nmatches] = 0 && $compstate[alternate_nmatches] = 1 ]]; then case "$tmp" in show) compstate[insert]='' compstate[list]='list force';; menu) compstate[insert]='menu';; esac tmp=false [[ $tmp = menu ]] && tmp=true else tmp=false fi if [[ $compstate[nmatches] -gt 1 ]] || $tmp; then ... But I couldn't find the way to get the string from the alternate set. So, it completes a word with a following space and the next completes a next word. How can we get the string? -- Tanaka Akira