6

I am learning Dired in Evil mode.
h j k l / are Evil keys that obviously work in Dired. Are there others?

Is there a table of Evil keys for Dired?

I am using Emacs 25.2.1 with Evil, Spacemacs, and Ivy.

  • I encourage learning the default keybindings for dired, the interface is more reliable than overlaying evil, and dired is already optimized to have an efficient interface...you can automatically open dired in emacs state with (add-to-list 'evil-emacs-state-modes 'dired-mode) – Henry Jan 11 '18 at 15:02
5

Here are a few things you can try to see available keys:

? -- actually this is partly wrong because

SPC ? dired

F1 m (describe-mode)

SPC h SPC dired -- this lets you jump to the code for the layer that configures dired, spacemacs-base, which for key bindings purposes is mostly about keys to run dired rather than once you're using dired

Here are some dired keys I find useful (in fact nearly all are the same as in stock emacs, so you can also just read the info page with F1 i and much of it will correct key bindings still -- follow menus using m to go to Emacs -> Dired).

Note that 'marking' files lets you operate on multiple files at once when e.g. copying or moving files.

  • RET or f Open file or directory
  • o Open file in a separate window
  • ^ Up directory
  • + Create a directory
  • R Rename / move
  • C Copy
  • M Change file/directory mode (unix file/directory permissions)
  • d Delete
  • m Mark
  • u Unmark / undelete
  • x 'Expunge' -- i.e. actually delete files/directories marked for deletion
| improve this answer | |
  • And how do I perform the operations on all my marked files? – Witek Feb 28 '18 at 9:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.