unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>,
	"'Help-Gnu-Emacs (help-gnu-emacs@gnu.org)'"
	<help-gnu-emacs@gnu.org>
Subject: RE: [External] : Browsing a set of dir of files in a single buffer
Date: Sat, 24 Feb 2024 00:22:14 +0000	[thread overview]
Message-ID: <SJ0PR10MB5488963FF9E1E7244B052818F3542@SJ0PR10MB5488.namprd10.prod.outlook.com> (raw)
In-Reply-To: <jwvbk86nc84.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]

> Does anyone know a nice Emacs package that lets me view that whole
> hierarchy in a single buffer, as if it were something like a big
> `outline-mode` file?
> 
> It'd be a bit like dired-mode but where you can see (and hopefully
> edit)
> the files directly in the dired buffer simply by "folding/unfolding"
> them.

I know there are such packages, but I can't
say what they are off the top of my head.
Hopefully someone else will let you know.
___

With Dired+ you can just use `C-u M-+ M-i'.

You don't get a tree view.  Instead, you get
a Dired buffer with all subdirs inserted,
recursively (i.e., all the way down).  You
can use `C-x C-q' to enter WDired on the
whole buffer - edit to your heart's content.
___

Why the crazy key `C-u M-+ M-i' (you can bind
another of course)?

`i' inserts a subdir (and in Dired+ it takes
you back to the subdir line in the parent).

`M-i' inserts just the marked subdirs (no
recursive descent).

Prefix `M-+' is for recursive-descent.
`M-+ M-i' is the recursive-descent version
of `M-i'.

`C-u' says "Act on ALL files and subdirs"
not those that are marked.

Without a prefix arg the `M-+' commands act
on all marked files and subdirs, and on all
that are marked in existing Dired buffers of
marked subdirs (recursively).
___

Individual inserted subdir listings in Dired
(not just Dired+) can use different switches.
That's one difference from a tree view.
___

HTH.

[-- Attachment #2: winmail.dat --]
[-- Type: application/ms-tnef, Size: 12983 bytes --]

  reply	other threads:[~2024-02-24  0:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-23 20:49 Browsing a set of dir of files in a single buffer Stefan Monnier via Users list for the GNU Emacs text editor
2024-02-24  0:22 ` Drew Adams [this message]
2024-02-24  6:35 ` Yuri Khan
2024-02-24  6:48 ` Justin Barclay
2024-02-24 15:22   ` Stefan Monnier via Users list for the GNU Emacs text editor

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=SJ0PR10MB5488963FF9E1E7244B052818F3542@SJ0PR10MB5488.namprd10.prod.outlook.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).