From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26216 invoked from network); 23 Jan 2008 17:02:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Jan 2008 17:02:59 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 51138 invoked from network); 23 Jan 2008 17:02:55 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Jan 2008 17:02:54 -0000 Received: (qmail 11692 invoked by alias); 23 Jan 2008 17:02:52 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24454 Received: (qmail 11678 invoked from network); 23 Jan 2008 17:02:51 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 23 Jan 2008 17:02:51 -0000 Received: from virusfilter.dotsrc.org (bifrost [127.0.0.1]) by spamfilter.dotsrc.org (Postfix) with ESMTP id BFF298058F58 for ; Wed, 23 Jan 2008 18:02:45 +0100 (CET) Received: from vms173003pub.verizon.net (vms173003pub.verizon.net [206.46.173.3]) by bifrost.dotsrc.org (Postfix) with ESMTP for ; Wed, 23 Jan 2008 18:02:45 +0100 (CET) Received: from torch.brasslantern.com ([71.121.18.67]) by vms173003.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JV300AAVWBHC3G6@vms173003.mailsrvcs.net> for zsh-workers@sunsite.dk; Wed, 23 Jan 2008 10:54:54 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m0NGvfcU017415 for ; Wed, 23 Jan 2008 08:57:41 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m0NGveEt017414 for zsh-workers@sunsite.dk; Wed, 23 Jan 2008 08:57:40 -0800 Date: Wed, 23 Jan 2008 08:57:40 -0800 From: Bart Schaefer Subject: Re: How to complete a file name? In-reply-to: <200801231418.m0NEI9mR029531@news01.csr.com> To: zsh-workers@sunsite.dk Message-id: <080123085740.ZM17413@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20080122004800.GA16455@scowler.net> <200801231418.m0NEI9mR029531@news01.csr.com> Comments: In reply to Peter Stephenson "Re: How to complete a file name?" (Jan 23, 2:18pm) X-Virus-Scanned: ClamAV using ClamSMTP On Jan 23, 2:18pm, Peter Stephenson wrote: } } *Forced* filename completion is easy; you just bind it to another key. } } zle -C complete-filename complete-word _generic } zstyle ':completion:complete-filename:*' completer _files } bindkey '^xf' complete-filename Hmm. Why not just append _files to the completer style, so that file completion is always tried if everything else fails? In fact, why not this: _unquoted_files { compset -q; _files } zstyle ':completion:*' completer _oldlist _expand _complete \ _match _ignored _approximate _prefix _files _unquoted_files