From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21436 invoked from network); 1 Apr 2005 13:33:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 1 Apr 2005 13:33:04 -0000 Received: (qmail 13320 invoked from network); 1 Apr 2005 13:32:58 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 1 Apr 2005 13:32:58 -0000 Received: (qmail 13799 invoked by alias); 1 Apr 2005 13:32:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8649 Received: (qmail 13760 invoked from network); 1 Apr 2005 13:32:24 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 1 Apr 2005 13:32:24 -0000 Received: (qmail 11707 invoked from network); 1 Apr 2005 13:32:23 -0000 Received: from mailhost1.csr.com (HELO MAILSWEEPER01.csr.com) (81.105.217.43) by a.mx.sunsite.dk with SMTP; 1 Apr 2005 13:32:17 -0000 Received: from exchange03.csr.com (unverified [10.100.137.60]) by MAILSWEEPER01.csr.com (Content Technologies SMTPRS 4.3.12) with ESMTP id for ; Fri, 1 Apr 2005 14:30:40 +0100 Received: from news01.csr.com ([10.103.143.38]) by exchange03.csr.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 1 Apr 2005 14:34:45 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.1/8.12.11) with ESMTP id j31DWFeb019736 for ; Fri, 1 Apr 2005 14:32:15 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.1/8.13.1/Submit) with ESMTP id j31DWFMS019733 for ; Fri, 1 Apr 2005 14:32:15 +0100 Message-Id: <200504011332.j31DWFMS019733@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk Subject: Re: completion for darcs In-reply-to: <424D152C.2030006@free.fr> References: <20050401080620.GA16347@vandal.simcon-mt.de> <20050401080914.GB16347@vandal.simcon-mt.de> <424D152C.2030006@free.fr> Date: Fri, 01 Apr 2005 14:32:14 +0100 From: Peter Stephenson X-OriginalArrivalTime: 01 Apr 2005 13:34:45.0455 (UTC) FILETIME=[915075F0:01C536BF] X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Antoine Calando wrote: > I also have, sometimes, this kind of problem. Would it be possible to > add a ZLE widget like "file-complete" (that would be bound, for instance, > to Ctrl-Tab) which forces the completion to happen in a "basic" way, rather > than with the new functions-customized system? It is very annoying to have > to type a full filename... > > Or may be such a widget already exists? You can actually use the flexibility of the style system and the _generic widget to do this. zle -C complete-file complete-word _generic zstyle ':completion:complete-file::::' completer _files bindkey '^xF' complete-file This defines a new widget called "complete-word". The completer style in the appropriate context is set to _files, so when invoked it simply completes file names. Then it's bound to \C-xF. There are infinite variations on this. If you have "From Bash to Zsh", see pages 405 to 407. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. **********************************************************************