Questions tagged [dired]

Dired is a mode for the Emacs text editor that allows users to conveniently edit files and directories on a file system. Use together with the [emacs] tag.

is a mode for the text editor that allows users to conveniently edit files and directories on a file system.

196 questions
15
votes
5 answers

Customizing dired

I just came across this dired mode screen at Wikipedia. I am looking into those customizations. Regarding colors, I guess just specifying the correct faces will do, but how do I get dired to show file sized in kbytes by default? And the available…
Arthur Debert
  • 10,237
  • 5
  • 26
  • 21
15
votes
2 answers

Emacs: how to rename a directory in dired-mode?

In Emacs, how does one rename a directory in dired-mode?
dephiros
  • 353
  • 2
  • 7
12
votes
1 answer

Dired: One confirmation for all selected files and directories

Use-case: Mark for deletion target files and directories at the dired buffer; Execute 'dired-do-flagged-delete' (type 'x'); Result: I'm asked about confirmation for every non-empty directory being removed. Question: is there easy way to say 'yes'…
denis.zhdanov
  • 3,734
  • 20
  • 25
12
votes
3 answers

Dired copy asynchronously

Is there a way to modify/tell dired to copy files asynchronously? If you mark multiple files in dired and then use 'C' to copy them, emacs locks up until every file is copied. I instead want this copy to be started, and for me to continue editing…
Nathaniel Flath
  • 15,477
  • 19
  • 69
  • 94
11
votes
1 answer

Emacs -- dired copy / move files -- create directory if needed

I'm looking for some suggestions, please, to create a custom function for dired-mode relating copying and moving files so that a directory may be created if it does not yet exist. The default behavior is to simply generate an error message if the…
lawlist
  • 13,099
  • 3
  • 49
  • 158
11
votes
4 answers

How to [tar and] compress marked files in Emacs

In dired+ in Emacs 23.2.1 on a Debian Squeeze variant I selected four files with * and then pressed Z to compress them. I answered y to the prompt and saw some status updates in the mini-buffer. Where do I find the compressed file? I tested on one…
SabreWolfy
  • 5,392
  • 11
  • 50
  • 73
10
votes
2 answers

dired backward/forward function

I'm looking for a package the browser's "back" button for dired. i.e. some way to go back to a previously visited directory. The usecase I have in mind is to traverse deeper into a directory tree after invoking ^ to to to a parent folder.
event_jr
  • 17,467
  • 4
  • 47
  • 62
10
votes
1 answer

emacs dired-mode: How to "exit" and end up in a shell in the current directory?

On Mac OS I can use the terminal, write "cd ", and then drag & drop folders from Finder to the terminal. I then obtain something like "cd /Users/..." which allows me to quickly change to the corresponding directory. If I open an emacs shell with M-x…
Marius Hofert
  • 6,546
  • 10
  • 48
  • 102
10
votes
4 answers

How to customize dired's display

How do I make Dired display its files using an arbitrary function or set of columns? Basically I want to change from: -rw-r--r-- 1 konrad konrad 3847863 Out 18 14:17 ClojureinAction.pdf -rw-rw-r-- 1 tamara tamara 27338341 Out 20 07:16 Halliday,…
konr
  • 2,545
  • 2
  • 20
  • 38
10
votes
2 answers

how to prevent Emacs dired from splitting frame into more than two windows?

In an Emacs dired buffer, if I navigate point over a filename and hit o for dired-find-file-other-window, dired successfully produces desired behavior: opening the file in a secondary window. But if I then navigate point over a SECOND filename and…
incandescentman
  • 6,168
  • 3
  • 46
  • 86
10
votes
7 answers

How can one quickly browse through lots of files in Emacs?

is there a way to quickly browse through lots of files in Emacs (24.3)? More specifically: Let's assume an Emacs frame is split into two windows. Suppose focus is in the left window that has an open 'dired' buffer with lots of text files (or…
Harmeling
  • 573
  • 1
  • 4
  • 12
10
votes
2 answers

Dired invert selection

I want to mark all files currently unmarked and simultaneously unmark all marked files. How do I do it? Let's say I have a directory with *.png and and other formats. I want to filter only PNGs. Say, I did: % d.png and now want to select the rest,…
user797257
10
votes
2 answers

How to get Dired to ignore files with specific extensions

I put the following in my .emacs file: (require 'dired-x) (add-hook 'dired-load-hook '(lambda () (require 'dired-x))) (setq dired-omit-files-p t) (setq dired-omit-files (concat dired-omit-files "\\|^\\..+$\\|-t\\.tex$\\|-t\\.pdf$")) But C-x d still…
incandescentman
  • 6,168
  • 3
  • 46
  • 86
9
votes
2 answers

Emacs as Finder/Explorer -- copy files

I often want to copy files from one half (C-x 2) to the other of emacs, with different dired buffers in both halves. The obvious way is to mark the files in one window, go to the other, move to the directory name, mark beginning, go to end, copy to…
Calaf
  • 10,113
  • 15
  • 57
  • 120
9
votes
2 answers

How to bind a key to run a shell command in dired emacs

When i use dired mode in emacs, I can run a shell command by type !xxx, But how to bind a key to run this command? For example, I want to press O on a file, then dired will run 'cygstart' to open this file.
Mingo
  • 1,613
  • 2
  • 16
  • 20
1
2
3
13 14