I’ve started “Season” 2 of the series with a screencast on dired. It’s Emacs’ “file browser” and can be used to manage files. Performing operations on a large number of them at once and also providing such facilities to other modes.
I apologise for the hiatus but I’ve been very busy in my real life. I expect more delays till the end of January but I’ll do what I can.
Other formats are available on the Archive.org page.
C-x dto start dired with a directory.
find-diredcan be used to select different files for the initial dired buffer.
sto toggle sorting order (by date or normal).
ito insert a directory into the current dired buffer.
>to navigate directories in the buffer.
C-M-pto navigate dirlines.
RETto visit the current item in a new buffer.
odoes the same thing but does so after splitting the current window into two so that the dired buffer is still visible.
^Goes one directory up. It’s the opposite of
RET. If the parent directory has a dired buffer visiting it, it will be reused. Otherwise, a new one will be created.
$toggles the visibility of the file list under a dirline.
M-$does so for all the dirlines in the current buffer.
Ttouches the current or all the marked files.
Ris to rename files.
Zis to compress or decompress.
Dmarks for deletion and
mmarks files and
Uunmarks all files.
M-s a C-ssearches incrementally through all marked files.
C-t C-tdisplays image thumbnails.
C-t idisplays a scaled version of the image in a new window.
% gmarks files based on whether they contain a provided regular expression. Other
%commands are available under the Regexp menu.
* /marks all directories and
ttoggles marked/unmarked files. The Mark menu has other such commands to make marking easy.
+creates new directories and
wcopies marked (or current) items into the kill ring.
- If you’re using
gnus, you can run
turn-on-gnus-dired-modeand get keybindings like
C-c C-m C-ato attach marked files into a new email and go to the composer.
C-qto enter wdired which makes the file names in the buffer editable. You can make changes and then hit
C-cto save them.