In Emacs, how does one rename a directory in dired-mode?
In dired, if you select a file and type 'R', you'll get a prompt under the modeline which will guide you through renaming the file. This works for files in general, including directories.
shift+c on the file and emacs will ask you to denote a name for the path including the file name, so you just provide the new name,and enter...of course, you have to Delete the former one.
Dired is the main mode for Emacs file-manager operations. The name “Dired” stands for “directory editor”. A single Dired buffer can display the contents of a single directory, or it can include listings of one or more sub-directories.
The command + ( dired-create-directory ) reads a directory's name, and creates that directory. It signals an error if the directory already exists.
In dired, if you select a file and type 'R', you'll get a prompt under the modeline which will guide you through renaming the file. This works for files in general, including directories.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With