From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14153 invoked from network); 11 Mar 2005 12:55:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 11 Mar 2005 12:55:57 -0000 Received: (qmail 97523 invoked from network); 11 Mar 2005 12:55:48 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 11 Mar 2005 12:55:48 -0000 Received: (qmail 19150 invoked by alias); 11 Mar 2005 12:55:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8581 Received: (qmail 19135 invoked from network); 11 Mar 2005 12:55:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 11 Mar 2005 12:55:40 -0000 Received: (qmail 96476 invoked from network); 11 Mar 2005 12:55:40 -0000 Received: from klutz.cs.utk.edu (160.36.56.50) by a.mx.sunsite.dk with SMTP; 11 Mar 2005 12:55:35 -0000 Received: from localhost (klutz [127.0.0.1]) by klutz.cs.utk.edu (Postfix) with ESMTP id 5A30440156 for ; Fri, 11 Mar 2005 07:55:34 -0500 (EST) Received: from klutz.cs.utk.edu ([127.0.0.1]) by localhost (klutz [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17662-08 for ; Fri, 11 Mar 2005 07:55:33 -0500 (EST) Received: from namib.cs.utk.edu (namib.cs.utk.edu [160.36.59.92]) by klutz.cs.utk.edu (Postfix) with ESMTP id 1F32440086 for ; Fri, 11 Mar 2005 07:55:33 -0500 (EST) Received: by namib.cs.utk.edu (Postfix, from userid 10605) id DF83C69B89; Fri, 11 Mar 2005 07:55:32 -0500 (EST) Date: Fri, 11 Mar 2005 07:55:32 -0500 From: Chris Johnson To: zsh-users@sunsite.dk Subject: Text Editor Filename Completion Message-ID: <20050311125532.GA22235@namib.cs.utk.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Virus-Scanned: by amavisd-new at cs.utk.edu by ClamAV and McAfee 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=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 In my haste I often end up opening a binary file or a file that doesn't exist because the completer completes up to the beginning of the extension (e.g., "vi mytex." when mytex.tex and mytex.pdf exist). Does anyone have any completion commands set up for vi or emacs that give preference to plain text files -- those containing source code -- rather than the shorter executable file name? I've tried a few things to have .c, .tex, .pl, and so on favored when vi is the executable, but I'm not too satisfied with my work. Thanks for any suggestions! -- Chris Johnson cjohnson@cs.utk.edu http://www.cs.utk.edu/~cjohnson