Dired

Dired

February 14, 2025 | permanent

Summary #

Emacs Directory Editor

Dired #

Directory Editor in EMACS. youtube

Dired CS #

I
insert sub dir if any dired-maybe-insert-subdir
a
kill and open dired in a directory dired-find-alternate-file
  • Enter (don’t use this!): opens new dired buffer which might cause :: “dired buffer in use issue”

: create directory

R
rename file
M
change mode
O
change owner
g h
up in subtree go higher (to remember)
g r
refresh directory content
!
run a command on file
&
run a command async
W
open file in browser
C-x C-q
toggle read only mode to edit the file names as text in buffer to edit
Y
copy file name
!
run shell command on file
C-x C-D
consult-dir
mark
mark and take actions
  • m to mark
  • other commands C, R, M etc on bulk files
  • toggle the marks
  • to extension type
  • mark files with regex
  • unmark all files
  • Doom Emacs ATTACH

    SPC . : find file from current directory

    ( : to toggle extra info of files

    Meta Enter : preview file

    o : order by date

    S : quick sort dired (dirvish-quick-sort) it will present the criteria to sort

  • Creating files and dirs (Shell commands)

    1. M-! touch file-name.ext
    2. C-S ! ! touch file-name.ext

    ref

  • Customs

    1. tab: to open/close sub dirs


Links to this note