[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired: how to open the containing directory, where a selected files
Re: dired: how to open the containing directory, where a selected files is resides in
Sat, 28 Aug 2004 16:26:25 +0200
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)
"oliver" <address@hidden> 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 ()
(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?