When you have a dired buffer open and it's listing 4 files in a directory, is there a way to 'open all' the files, and be able to see all the files as 4 split windows in emacs.
1 Answer
Yes.
In Dired,
F
(commanddired-do-find-marked-files
) displays and visits each of the marked files, or the next prefix-arg number of files. If you want to mark all of the files then you can use% m .
. Or if no files are marked then you can just uset
to mark them all.If you use Dired+ then you can also just use prefix arg
C-u C-u
to act on all files (no need to mark them all). So just **C-u C-u F
will do what you want.If you use Dired+ then you can even do the same thing for all files in the current Dired buffer and in all marked subdirs, ... recursively. For that, you use key
M-+ F
instead ofF
. (All such recursive-behaving commands are on prefix keyM-+
.)
The number of files that can be displayed this way is restricted by the height of the current window and `window-min-height'. All of the files are visited, but some of them might not be displayed because there's not enough window space.
But you can also have F
or M-+ F
open the files in separate frames (any number of them), by setting or binding option pop-up-frames
to non-nil
.