zsh-users
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-users@zsh.org
Subject: Re: suffix alias problem
Date: Fri, 11 Nov 2011 18:39:27 +0000	[thread overview]
Message-ID: <20111111183927.4d06c703@pws-pc.ntlworld.com> (raw)
In-Reply-To: <rieboskexy0.fsf@alder.acc.bessy.de>

On Thu, 10 Nov 2011 17:36:55 +0100
Dieter Faulbaum <Dieter.Faulbaum@helmholtz-berlin.de> 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 <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  reply	other threads:[~2011-11-11 19:11 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-10 16:36 Dieter Faulbaum
2011-11-11 18:39 ` Peter Stephenson [this message]
2011-11-14 13:09 Dieter Faulbaum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111111183927.4d06c703@pws-pc.ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).