* dired: how to open the containing directory, where a selected files is resides in
@ 2004-08-16 3:35 oliver
2004-08-16 14:24 ` Frederik Fouvry
2004-08-28 14:26 ` dired: how to open the containing directory, where a selected files " Kai Grossjohann
0 siblings, 2 replies; 6+ messages in thread
From: oliver @ 2004-08-16 3:35 UTC (permalink / raw)
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?
thanks a lot, oliver
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: dired: how to open the containing directory, where a selected files is resides in
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-28 14:26 ` dired: how to open the containing directory, where a selected files " Kai Grossjohann
1 sibling, 1 reply; 6+ messages in thread
From: Frederik Fouvry @ 2004-08-16 14:24 UTC (permalink / raw)
,-- One day, you wrote:
| NNTP-Posting-Date: Mon, 16 Aug 2004 03:34:56 +0000 (UTC)
|
| 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?
C-x 4 C-j (from dired-x)
Frederik Fouvry
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: dired: how to open the containing directory, where a selected files is resides in
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>
0 siblings, 2 replies; 6+ messages in thread
From: oliver @ 2004-08-17 0:11 UTC (permalink / raw)
"Frederik Fouvry" <fouvry@coli.uni-saarland.de> wrote in message
news:gzacwv2mb0.fsf@cc.at.coli.uni-sb.de...
>
> ,-- One day, you wrote:
> | NNTP-Posting-Date: Mon, 16 Aug 2004 03:34:56 +0000 (UTC)
> |
> | 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?
>
> C-x 4 C-j (from dired-x)
thanks, but with dired-jump i go to the parent dir of the current dir. it
does show the dir, which contains thye file on teh urerent line.
eg. if the find buffer has the curernt dir C:/dev/img-select and in there
the cursor is on the line
-rw-rw-rw- 1 6264 Aug 11 12:34 source/XPImageList/AlphaImage.pas.
then dired-jump shows a dired buffer of the directory C:/dev. but obviously
i want C:/dev/img-select/source/XPImageList.
cheers, leo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: dired: how to open the containing directory, where a selected files is resides in
2004-08-17 0:11 ` oliver
@ 2004-08-22 13:04 ` Kai Grossjohann
[not found] ` <mailman.2272.1093180215.2011.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 6+ messages in thread
From: Kai Grossjohann @ 2004-08-22 13:04 UTC (permalink / raw)
"oliver" <oliver_baumann@nospam.justemail.net> writes:
> thanks, but with dired-jump i go to the parent dir of the current dir. it
> does show the dir, which contains thye file on teh urerent line.
You could use RET to open the file, then M-x dired-jump RET to go to
the directory. Problem: you have one useless buffer.
Kai
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: dired: how to open the containing directory, where a selectedfiles is resides in
[not found] ` <mailman.2272.1093180215.2011.help-gnu-emacs@gnu.org>
@ 2004-08-23 2:17 ` oliver
0 siblings, 0 replies; 6+ messages in thread
From: oliver @ 2004-08-23 2:17 UTC (permalink / raw)
"Kai Grossjohann" <kai@emptydomain.de> wrote in message
news:mailman.2272.1093180215.2011.help-gnu-emacs@gnu.org...
> "oliver" <oliver_baumann@nospam.justemail.net> writes:
>
>> thanks, but with dired-jump i go to the parent dir of the current dir. it
>> does show the dir, which contains thye file on teh urerent line.
>
> You could use RET to open the file, then M-x dired-jump RET to go to
> the directory. Problem: you have one useless buffer.
thanks for this. however this procedure describes exactly what i'm used to
do. and it isn't particulaly elegant. additionally, if the case is big
and/or binary these approach adds some significant overhead.
so, i'm still searching for a better solution.
cheers, oliver
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: dired: how to open the containing directory, where a selected files is resides in
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-28 14:26 ` Kai Grossjohann
1 sibling, 0 replies; 6+ messages in thread
From: Kai Grossjohann @ 2004-08-28 14:26 UTC (permalink / raw)
"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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-08-28 14:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` dired: how to open the containing directory, where a selected files " Kai Grossjohann
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.