From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: dired: how to open the containing directory, where a selected files is resides in
Date: Sat, 28 Aug 2004 16:26:25 +0200 [thread overview]
Message-ID: <86y8jz2vam.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: cfpa10$19ei$1@otis.netspace.net.au
"oliver" <oliver_baumann@nospam.justemail.net> writes:
> hi there
>
> in dired buffers (particulaly when created by dired-find) i quite often want
> to open the directory where listed files reside in. eg. in a dired buffer
> the cursor is on a line like
>
> -rw-rw-rw- 1 6264 Aug 11 12:34 source/XPImageList/AlphaImage.pas
>
> then i want to open the directory "XPImageList" in a seperate dired buffer.
> is there any dired command accomplishing this, or does anybody knows about a
> appropriate add-on?
I know of nothing, but try hitting C-u w in the dired buffer, then C-x
C-f, then yank the filename copied with C-u w.
That would give you a starting point, though it is not the complete
solution. Hm. Lessee now... Ah, perhaps this works:
(defun oliver ()
(interactive)
(find-file (file-name-directory (dired-copy-filename-as-kill t))))
Try to eval the above and then M-x oliver RET when you are on such a
file. What happens?
Kai
prev parent reply other threads:[~2004-08-28 14:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-16 3:35 dired: how to open the containing directory, where a selected files is resides in oliver
2004-08-16 14:24 ` Frederik Fouvry
2004-08-17 0:11 ` oliver
2004-08-22 13:04 ` Kai Grossjohann
[not found] ` <mailman.2272.1093180215.2011.help-gnu-emacs@gnu.org>
2004-08-23 2:17 ` dired: how to open the containing directory, where a selectedfiles " oliver
2004-08-28 14:26 ` Kai Grossjohann [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86y8jz2vam.fsf@ketchup.de.uu.net \
--to=kai@emptydomain.de \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).