[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: |
Marius Hofert |
Subject: |
Re: dired-guess-shell-alist-user: How to match folders instead of file types? |
Date: |
Tue, 25 Jun 2013 22:34:19 +0200 |
Works like a charm, thanks Steve!
On Tue, Jun 25, 2013 at 9:28 PM, Stephen Berman <stephen.berman@gmx.net> wrote:
> 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, 2013/06/25
- Re: dired-guess-shell-alist-user: How to match folders instead of file types?,
Marius Hofert <=
- 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