[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired-guess-shell-alist-user: How to match folders instead of file t
From: |
Stephen Berman |
Subject: |
Re: dired-guess-shell-alist-user: How to match folders instead of file types? |
Date: |
Tue, 25 Jun 2013 21:28:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
On Tue, 25 Jun 2013 14:02:21 +0200 Marius Hofert <marius.hofert@math.ethz.ch>
wrote:
> I am not looking for a particular directory, I am rather looking for
> the name of the directory the point is on (in dired-mode).
>
> If the point is on foo.tar.gz and I use M-!, I already get the
> suggestion to 'untar' the file the point is on. I am looking for the
> same feature, but in the case where the point is on a directory in
> order to, say, to zip it. For this, I have to match directories but I
> am not sure how this can be done.
Try adding this to dired-guess-shell-alist-user as the first element in
the list (replacing the shell command invocation with what you want):
(".*" (when (file-directory-p (dired-get-filename))
"(tar czf ? &>/dev/null &)"))
Steve Berman
- dired-guess-shell-alist-user: How to match folders instead of file types?, Marius Hofert, 2013/06/25
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Peter Dyballa, 2013/06/25
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Marius Hofert, 2013/06/25
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Peter Dyballa, 2013/06/25
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?,
Stephen Berman <=
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Marius Hofert, 2013/06/25
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Marius Hofert, 2013/06/27
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Stephen Berman, 2013/06/27
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Marius Hofert, 2013/06/27
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Stephen Berman, 2013/06/27
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Marius Hofert, 2013/06/27
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?, Marius Hofert, 2013/06/30
RE: dired-guess-shell-alist-user: How to match folders instead of file types?, Doug Lewan, 2013/06/25