Dired

From WikEmacs
Revision as of 12:49, 9 September 2014 by Elvince (talk | contribs) (image dired)
Jump to navigation Jump to search

Dired is a inbuilt File Manager for Emacs. Its arguably the best file manager with the functionality it possesses. Unlike any other file mangers the directory listing is just as an another buffer of Emacs with dired-mode as Major Mode.

Dired
Description File Manager for Emacs.
Author Sebastian Kremer
Maintainer FSF
Source http://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/dired.el
Part of Emacs yes

Usage

Dired has countless functionality.

[C-x d] (or M-x dired)
ask for a directory and puts you into a buffer with direct listing of that directory.
[C-x C-j] (or M-x dired-jump)
jump to a dired buffer corresponding to the current buffer (This require loading Dired Extra).

In the minibuffer, while doing 'Find File':

[C-d]
jump to a dired buffer corresponding to the directory in the minibuffer.

Basic commands

[ RET]
Open the file/Directory
[ q]
Close the dir
[C]
Copy file
[R]
Rename file
[D]
Delete file
[+]
create a new dir

Mark/unmark files

[m]

mark a file

[u]

unmark a file

[U]

unmark all marked

[m]

mark by pattern

View image thumbnails

Viewing images is a builtin feature of Dired (press Enter or v on an image file). On Emacs24.4, pressing n and p will show the next or previous image file. But if you want to navigate between image thumbnails, use the (builtin too) image-dired. You can directly call it with M-x image-dired, or mark the images you want to look at in the dired buffer (with m) and then type C-t d (image-dired-display-thumbs).


See Also

Dired+ - a package that extends the functionalities of Dired

Direx - a general purpose directory/tree explorer

dired-subtree - insert the subdirectory (with the i key) directly below its line

Speed_bar - navigate files and sources in another frame

emacs-nav - a simple files and sources browser popup