help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: view whole tree


From: suvayu ali
Subject: Re: view whole tree
Date: Wed, 16 Feb 2011 01:03:27 -0800

On Wed, Feb 16, 2011 at 12:42 AM, Andrea Crotti
<address@hidden> wrote:
> I would like to be able to see (in dired) the whole directory structure of my 
> directory
>
> A simple way is probably to pass the right result of "ls" to dired, but maybe 
> there are more
> general and smarter solutions already implemented.
>
> I think I've read somewhere it was possible but I can't find it anywhere in 
> the doc..
>

Maybe you can recursively insert subdirectories?

`C-h k i' in dired gives the following,

> i runs the command dired-maybe-insert-subdir, which is an interactive
> compiled Lisp function in `dired-aux.el'.
>
> It is bound to i, <menu-bar> <subdir> <insert>.
>
> (dired-maybe-insert-subdir DIRNAME &optional SWITCHES
> NO-ERROR-IF-NOT-DIR-P)
>
> Insert this subdirectory into the same dired buffer.
> If it is already present, just move to it (type l to refresh),
>   else inserts it at its natural place (as `ls -lR' would have done).
> With a prefix arg, you may edit the ls switches used for this listing.
>   You can add `R' to the switches to expand the whole tree starting at
>   this subdirectory.
> This function takes some pains to conform to `ls -lR' output.
>
> Dired remembers switches specified with a prefix arg, so that reverting
> the buffer will not reset them.  However, using `dired-undo' to re-insert
> or delete subdirectories can bypass this machinery.  Hence, you sometimes
> may have to reset some subdirectory switches after a `dired-undo'.
> You can reset all subdirectory switches to the default using
> M-x dired-reset-subdir-switches.
> See Info node `(emacs)Subdir switches' for more details.


-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]