From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5915 invoked from network); 19 Aug 2006 19:38:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.4 (2006-07-25) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Aug 2006 19:38:17 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 38435 invoked from network); 19 Aug 2006 19:38:09 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Aug 2006 19:38:09 -0000 Received: (qmail 22903 invoked by alias); 19 Aug 2006 19:38:02 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10624 Received: (qmail 22893 invoked from network); 19 Aug 2006 19:38:01 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Aug 2006 19:38:01 -0000 Received: (qmail 37338 invoked from network); 19 Aug 2006 19:38:01 -0000 Received: from ug-out-1314.google.com (66.249.92.175) by a.mx.sunsite.dk with SMTP; 19 Aug 2006 19:38:01 -0000 Received: by ug-out-1314.google.com with SMTP id c2so2371982ugf for ; Sat, 19 Aug 2006 12:38:00 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Yjvs0WLN2XIQuuLYXCNINUSum9PPbnbh25pm6PnNbkIBr6+ouupJl0E97484BGqbI7qhh1YxH7NTH04As1jiugz2qX2D5liKjD1PfJoSHOE12G6eC5zY8Nh9GusalD+SDvjfNW4QB/gzKsuh8Y0Jt/2rnvjS3vUHD1wYjmLzq0I= Received: by 10.67.89.5 with SMTP id r5mr2530905ugl; Sat, 19 Aug 2006 12:38:00 -0700 (PDT) Received: by 10.66.222.13 with HTTP; Sat, 19 Aug 2006 12:38:00 -0700 (PDT) Message-ID: <237967ef0608191238v25dff908h3b515faf7035d557@mail.gmail.com> Date: Sat, 19 Aug 2006 21:38:00 +0200 From: "Mikael Magnusson" To: zsh-users@sunsite.dk Subject: Re: How to insert completions on command line In-Reply-To: <060819111754.ZM28540@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <237967ef0608181647v2c9d526evd1afa34d9b0a366d@mail.gmail.com> <060818205326.ZM24653@torch.brasslantern.com> <237967ef0608182215q2b59fdb0w5f645f72385a9508@mail.gmail.com> <060819111754.ZM28540@torch.brasslantern.com> On 8/19/06, Bart Schaefer wrote: > On Aug 18, 10:16pm, Mikael Magnusson wrote: > } > } > zstyle :completion:expand-word:expand:\* tag-order all-expansions > } > > } > Then type ctrl-X e > } > } This seems to only have an effect on globbing completions > > That's the second time this summer I've misinterpreted that same > question. (Which means the answer is in the zsh-users archives > from only a few weeks ago, if you had looked.) > > Look up _all_matches in the manual. > > zle -C all-matches complete-word _generic > bindkey '^Xa' all-matches > zstyle ':completion:all-matches:*' old-matches only > zstyle ':completion:all-matches::::' completer _all_matches Thanks, that works perfectly. Looking at the old message i vaguely remember reading it at the time, but didn't realize i would want it. I'm also not sure what i would have searched for without knowing the name "_all_matches". -- Mikael Magnusson