Difference between revisions of "Dired"
(image dired) |
|||
Line 66: | Line 66: | ||
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) [http://www.gnu.org/software/emacs/manual/html_node/emacs/Image_002dDired.html image-dired]. You can directly call it with {{Command|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)'''. | 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) [http://www.gnu.org/software/emacs/manual/html_node/emacs/Image_002dDired.html image-dired]. You can directly call it with {{Command|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)'''. | ||
+ | === Tag images === | ||
+ | |||
+ | More advanced features include image tags, which are metadata used to categorize image files. The tags are stored in a plain text file configured by '''image-dired-db-file'''. | ||
+ | |||
+ | To tag image files, mark them in the dired buffer and type '''C-t t (image-dired-tag-files)'''. This reads the tag name in the minibuffer. | ||
+ | |||
+ | To mark files having a certain tag, type '''C-t f (image-dired-mark-tagged-files)'''. After marking image files with a certain tag, you can use '''C-t d''' to view them. | ||
+ | |||
+ | You can also tag a file directly from the thumbnail buffer by typing '''t t''' and you can remove a tag by typing '''t r'''. | ||
+ | |||
+ | There is also a special “tag” called “comment” for each file (it is not a tag in the exact same sense as the other tags, it is handled slightly different). That is used to enter a comment or description about the image. You comment a file from the thumbnail buffer by typing '''c'''. You will be prompted for a comment. Type '''C-t c''' to add a comment from Dired '''(image-dired-dired-comment-files)'''. | ||
+ | |||
+ | === Rotate images === | ||
+ | |||
+ | Image-Dired also provides simple image manipulation. In the thumbnail buffer, type '''L''' to rotate the original image 90 degrees anti clockwise, and '''R''' to rotate it 90 degrees clockwise. This rotation is lossless, and uses an external utility called JpegTRAN. | ||
== See Also == | == See Also == |
Revision as of 12:56, 9 September 2014
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 |
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.
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).
Tag images
More advanced features include image tags, which are metadata used to categorize image files. The tags are stored in a plain text file configured by image-dired-db-file.
To tag image files, mark them in the dired buffer and type C-t t (image-dired-tag-files). This reads the tag name in the minibuffer.
To mark files having a certain tag, type C-t f (image-dired-mark-tagged-files). After marking image files with a certain tag, you can use C-t d to view them.
You can also tag a file directly from the thumbnail buffer by typing t t and you can remove a tag by typing t r.
There is also a special “tag” called “comment” for each file (it is not a tag in the exact same sense as the other tags, it is handled slightly different). That is used to enter a comment or description about the image. You comment a file from the thumbnail buffer by typing c. You will be prompted for a comment. Type C-t c to add a comment from Dired (image-dired-dired-comment-files).
Rotate images
Image-Dired also provides simple image manipulation. In the thumbnail buffer, type L to rotate the original image 90 degrees anti clockwise, and R to rotate it 90 degrees clockwise. This rotation is lossless, and uses an external utility called JpegTRAN.