[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Browsing dirs from Dired with graphical explorer
From: |
Tassilo Horn |
Subject: |
Re: Browsing dirs from Dired with graphical explorer |
Date: |
Mon, 22 Sep 2008 15:37:55 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Richard Riley <rileyrgdev@gmail.com> writes:
Hi Richard,
>> There's `xdg-open' which given a directory or file argument should
>> open it with the system's default application.
>
> Where is this defined? It does not exist on my debian system.
Here on Gentoo GNU/Linux it's in the xdg-utils package.
> Also would you know how to make "e" open the directory/file under the
> cursor? Your comments above indicate you thought this to be the case -
> it actually opens the current dir.
Ah, ok. I wasn't too sure what `dired-current-directory' returns.
Assuming you have xdg-open installed, something like this might do the
trick.
--8<---------------cut here---------------start------------->8---
(defun dired-open-externally ()
"Open the current directory in your OS's file manager."
(interactive)
(start-process "dired-external" nil "xdg-open" (dired-get-file-for-visit)))
--8<---------------cut here---------------end--------------->8---
Then the logic what application to use for opening the given file or
directory is inside xdg-open. On GNU/Linux it takes these informations
from /etc/mailcap and ~/.mailcap, AFAICT.
Bye,
Tassilo
- Browsing dirs from Dired with graphical explorer, Sébastien Vauban, 2008/09/22
- Message not available
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/22
- Re: Browsing dirs from Dired with graphical explorer, Rupert Swarbrick, 2008/09/22
- Re: Browsing dirs from Dired with graphical explorer,
Tassilo Horn <=
- Message not available
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/22
- Re: Browsing dirs from Dired with graphical explorer, Tassilo Horn, 2008/09/22
- Message not available
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/22
- Re: Browsing dirs from Dired with graphical explorer, Tassilo Horn, 2008/09/23
- Message not available
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/23
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/23
- Re: Browsing dirs from Dired with graphical explorer, Richard Riley, 2008/09/24
Message not available
Message not available