From efb6ce798923649bf450b56107ffc799404c5906 Mon Sep 17 00:00:00 2001 From: Guillaume Pasquet Date: Sun, 19 Dec 2021 16:40:58 +0000 Subject: Add documentation for Episode 5 and TOC --- 05/dired.org | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 05/dired.org (limited to '05/dired.org') diff --git a/05/dired.org b/05/dired.org new file mode 100644 index 0000000..e5c380f --- /dev/null +++ b/05/dired.org @@ -0,0 +1,65 @@ +#+TITLE: Dired + +Dired is Emacs'file manager. + +* Use-cases for Dired + + Run-of-the-mill file operations: + + * Move/rename + * Copy + * Delete + * Create directories + * Compress + + Batch file actions: + + * Batch editing + +* Basic operations + + To open a directory, either visit it like a file -- =C-x f = -- + or explicitly open the directory with =C-x d =. + +** Refresh directory listing + + Press =g= to refresh the diectory listing. + +** Creating a directory + + Press =+= to create a new directory. + +** Copy files + + To copy a single file, move the pointer onto it, press =C= and + select a name and path for it to be copied to. + + To copy multiple files, /mark/ all the files that need copying by + pressing =m= onto them; then press =C= to copy all those files into + a directory. To unselect all files, press =U=. + +** Moving files + + Moving files is similar to /copying/, but press =R= instead of + =C=. Moving a files is also the way to rename a file as the + behaviour is identical. + +** Deleting files + + Deleting files also works in the same manner as /copying/, but with + the =D= keybind instead. + +** Compress files + + To compress files, select them, then press =c= and choose an + archive name. + +* Batch editing + + Batch renames are done with WDired, a special mode of Dired. Access + it by pressing =C-x C-q=. + + When in WDired mode, you can edit the dired buffer as though it was + just text. Hit =C-c C-c= for all your changes to be actually applied + to the filesystem. + -- cgit v1.2.3