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.

Comments welcome.

Keys mentioned

C-x d to start dired with a directory. find-name-dired and find-dired can be used to select different files for the initial dired buffer. s to toggle sorting order (by date or normal). i to insert a directory into the current dired buffer. < and > to navigate directories in the buffer. C-M-n and C-M-p to navigate dirlines. RET to visit the current item in a new buffer. o does 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. T touches the current or all the marked files. R is to rename files. S to symblink. Z is to compress or decompress. D marks for deletion and X expunges. m marks files and u unmarks. U unmarks all files. M-s a C-s searches incrementally through all marked files. C-t C-t displays image thumbnails. C-t i displays a scaled version of the image in a new window. % g marks files based on whether they contain a provided regular expression. Other % commands are available under the Regexp menu. * / marks all directories and t toggles marked/unmarked files. The Mark menu has other such commands to make marking easy. + creates new directories and w copies marked (or current) items into the kill ring. If you’re using gnus , you can run turn-on-gnus-dired-mode and get keybindings like C-c C-m C-a to attach marked files into a new email and go to the composer. C-x C-q to enter wdired which makes the file names in the buffer editable. You can make changes and then hit C-c C-c to save them.

Further reading