From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14575 invoked by alias); 11 Nov 2011 19:11: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: 16577 Received: (qmail 1034 invoked from network); 11 Nov 2011 19:11: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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 74.125.82.43 is neither permitted nor denied by SPF record at ntlworld.com) X-ProxyUser-IP: 86.6.29.42 Date: Fri, 11 Nov 2011 18:39:27 +0000 From: Peter Stephenson To: zsh-users@zsh.org Subject: Re: suffix alias problem Message-ID: <20111111183927.4d06c703@pws-pc.ntlworld.com> In-Reply-To: References: X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 10 Nov 2011 17:36:55 +0100 Dieter Faulbaum wrote: > is it possible that the zsh-mime-setup can use something like this: > > zstyle ':mime:.pdf(|.gz):' handler 'evince %s' > > because evince can gunzip files "on the fly"? In principle it ought to be possible to do something like that, or zstyle ':mime:.pdf:' handler 'evince %s' zstyle ':mime:.pdf.gz:' handler 'evince %s' though the shell doesn't do a search for the longest suffix match at the moment. I'll try to remember to look into it. You'd need to make sure there is some rule to handle .gz files even so, or set up the suffix alias by hand, to ensure zsh-mime-handler runs; alias -s gz=zsh-mime-handler would be good enough. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/