From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14906 invoked by alias); 3 Jul 2014 16:42:25 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32835 Received: (qmail 11769 invoked from network); 3 Jul 2014 16:42:12 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140703094201.ZM9147@torch.brasslantern.com> Date: Thu, 03 Jul 2014 09:42:01 -0700 In-reply-to: <20140703171107.23afc5db@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: [Pkg-zsh-devel] Bug#679824: zsh: Buggy perl completion with -e [origin: vincent@vinc17.net]" (Jul 3, 5:11pm) References: <20140628142003.GI5355@sym.noone.org> <461B8CB3-4C88-42D4-987F-3A9C3846EB03@kba.biglobe.ne.jp> <9EFC1491-C1F9-407F-B0A7-BFCC51414D51@kba.biglobe.ne.jp> <20140703171107.23afc5db@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: [Pkg-zsh-devel] Bug#679824: zsh: Buggy perl completion with -e [origin: vincent@vinc17.net] MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Jul 3, 5:11pm, Peter Stephenson wrote: } } Probably the best compromise in general would be to have .pl, .py, .rb } and other files completed using separate tags, so you have the easily } configurable option of picking out the native suffix or all files. } } I've a vague memory you can already tell _files to do clever things like } that in certain contexts but I'm too lazy to check. One can use the file-patterns style to create separate tag groups. The file-patterns style provides alternatives to the default tags, which are not used. Its value consists of elements of the form `PATTERN:TAG'; each string may contain any number of such specifications separated by spaces. [...] For example, to make the rm command first complete only names of object files and then the names of all files if there is no matching object file: zstyle ':completion:*:*:rm:*' file-patterns \ '*.o:object-files' '%p:all-files' It is often a bit tricky to get completion to actually *omit* the files in one of the groups rather than merely reorder them.