From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6591 invoked from network); 11 Apr 2000 16:22:37 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 11 Apr 2000 16:22:37 -0000 Received: (qmail 5311 invoked by alias); 11 Apr 2000 16:22:24 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10663 Received: (qmail 5284 invoked from network); 11 Apr 2000 16:22:23 -0000 From: "Bart Schaefer" Message-Id: <1000411162158.ZM5029@candle.brasslantern.com> Date: Tue, 11 Apr 2000 16:21:58 +0000 In-Reply-To: <200004110936.LAA04342@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "Re: Time for an obscure completion question" (Apr 11, 11:36am) References: <200004110936.LAA04342@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: Sven Wischnowsky , zsh-workers@sunsite.auc.dk Subject: Re: Time for an obscure completion question MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Apr 11, 11:36am, Sven Wischnowsky wrote: } Subject: Re: Time for an obscure completion question } } Bart Schaefer wrote: } } > foodatthe/ *at/ba } } I changed the completion code to at least partly handle the mixture of } pattern-matching and match-specs some time ago. The patch comments out } the match-spec-number test in _match. With that you get `foodatthe/ba' That'll be close enough; thanks. } > but [after C-x h] if I hit TAB the argument } > gets erased and I'm left with } > } > zsh% cd } > ^ cursor here This one is fixed now. } > A similar thing happens here: } > } > zsh% cd *at/ba } > zsh% cd } > ^cursor } > } > The first TAB gives "foodatthe/ba" and lists two completions; I hit C-e to } > break out of menu completion (is there a better way?) and TAB again which } > gives me the correction "foodatthe/Bar/" and again lists two completions. } > Hit TAB again and there's a feep; hit TAB a third time and the argument } > vanishes, replaced by a space. I would have expected it to just keep on } > feeping at me for as long as I bang on tab. } } Both should be fixed now. This second one still happens to me. I've set a few more styles; what I get now is: zagzig[72] cd *at/ba zagzig[72] cd foodatthe/Bar/ Completing `local directories', `directories in cdpath', or `corrections' There are no completions beneath the verbose output there. At this point if I hit TAB a third time, "foodatthe/Bar/" becomes " ". I tried unsetting cdpath, but that just changes the message to: Completing `directory' or `corrections' Here's the entire list of styles again: zstyle :completion::complete:cd:: tag-order local-directories path-directories zstyle ':completion:*' completer _oldlist _expand _complete _match _ignored _approximate _prefix zstyle ':completion:*' file-sort modification reverse zstyle ':completion:*' format 'Completing %d' zstyle ':completion:*' group-name '' zstyle ':completion:*' ignore-parents parent pwd .. zstyle ':completion:*' list-colors '' zstyle ':completion:*' match-original both zstyle ':completion:*' matcher-list '' 'r:|[._-,]=* r:|=*' 'm:{a-zA-Z}={A-Za-z} r:|[._-,]=* r:|=*' 'r:|[._-,]=* r:|=* l:|=*' zstyle ':completion:*' max-errors 2 numeric zstyle ':completion:*' menu 'select=6' zstyle ':completion:*' original true zstyle ':completion:*' verbose true And completion-related options (kshoptionprint format): noalwayslastprompt off alwaystoend on noautolist off noautomenu off noautoparamkeys off noautoparamslash off noautoremoveslash off bashautolist off nobeep off chasedots off chaselinks off completealiases off completeinword on globcomplete off nolistambiguous off nolistbeep off listpacked off listrowsfirst off nolisttypes off magicequalsubst off menucomplete off -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com