Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open some directories recursively in Dired

Tags:

emacs

dired

I want to show a directory in Dired with some sub-directories opened recursively (as if I passed "R" option for them). Is it possible to do this in Emacs? Any ideas how to implement this easily in Elisp?

In windows explorer I would press '*' in folders window to open a directory recursively (of course only sub-directories are visible, not files). I want the same thing in Emacs, but that files are visible too.

like image 438
Oleg Pavliv Avatar asked Aug 23 '10 13:08

Oleg Pavliv


1 Answers

Prefix dired-maybe-insert-subdir command (bound to i in dired-mode) with C-u to add recursive -R option for ls to insert directory recursively.

C-u i .. R .. <RET>

like image 151
David J. Liszewski Avatar answered Oct 22 '22 23:10

David J. Liszewski