From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8078 invoked by alias); 19 Jun 2012 22:27:15 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 17151 Received: (qmail 25976 invoked from network); 19 Jun 2012 22:27:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_00,RCVD_NUMERIC_HELO, SPF_HELO_PASS autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.3 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@zsh.org From: zzapper Subject: Re: zsh forward completion (quite embarrassing) Date: Tue, 19 Jun 2012 22:26:52 +0000 (UTC) Organization: SuccessTheory Message-ID: References: <87a9zzq8gy.fsf@ft.bewatermyfriend.org> X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 2.25.232.246 User-Agent: Xnews/2006.08.24 X-Antivirus: avast! (VPS 120619-1, 19/06/2012), Outbound message X-Antivirus-Status: Clean Frank Terbeck wrote in news:87a9zzq8gy.fsf@ft.bewatermyfriend.org: > zzapper wrote: > [...] >> ls ainf and to my surprise it completed correctly to mainfile.php > [...] >> So is forward completion standard with compinit or do you need flags >> set etc? > > I guess you're using the _approximate (or maybe _correct) completer with > some sort of `max-errors' style set. > > Regards, Frank > I have autoload -U compinit compinit zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \ 'r:|[._-]=* r:|=*' 'l:|=* r:|=*' zle -C expand-args-of complete-word _generic zstyle ':completion:expand-args-of::::' completer expand-args-of -- zzapper http://zzapper.co.uk/ Technical Tips