Questions tagged [dired]

Dired is a major mode that allows users to edit files and directories on a file system. It is essentially a file browser, with a wide range of features and an appearance similar to the ls command.

508 questions
69
votes
4 answers

How to quickly copy/move file in Emacs Dired?

In Dired mode, I can m mark files and R to move them to a destination. Some times the destination path is too long. With the destination open in a split window, is there a way to move files quicker? When I see the two dired windows on the screen,…
Nick
  • 4,473
  • 4
  • 26
  • 44
27
votes
2 answers

Current path in Dired or Dired+ to clipboard

Say we have a Dired buffer open on some directory. How can I send the directory path to the clipboard? Also, how can I do the same when the Dired cursor is on a specific file, without opening the file first?
Amelio Vazquez-Reina
  • 5,197
  • 5
  • 33
  • 47
18
votes
2 answers

Finding files by names

How can I bring all files with names that conform a specific regex, recursively in a directory tree, to a single dired buffer? So I can rename/delete them all at once?
iLemming
  • 1,263
  • 9
  • 15
15
votes
2 answers

How to mark all files in the current dired directory?

I want to mark all the files in the current dired buffer. Is there a command for this? Not including . and ... My use case is hardlinking all the files in a directory and I always reach for M which is change mode. I can remove all marks with either…
salotz
  • 1,400
  • 11
  • 21
15
votes
1 answer

how to deal with ZIP archives in DIRED?

I want to work easier with archives in Emacs dired-mode. And I think that my needs are not only mine. What I want? Two things in Dired: z to zip file or dir on cursor (or all marked files/dirs if marks are exists); the name of new archive should be…
drobnbobn
  • 585
  • 4
  • 15
14
votes
1 answer

In dired buffers, place point on the most important file of that directory

90% of the time I visit a directory in Emacs, the first thing I do is move point to a specific file and open it. A lot of times, the file I need to open is very predictable. For instance: If there are .tex files in this directory, I usually go…
Malabarba
  • 23,148
  • 6
  • 79
  • 164
12
votes
1 answer

How to rename a file with dired with the current file name as default?

In the macOS Finder, I can rename a file or directory by pressing RET and the current value becomes the default for the new file name. This helps if I make a small change, such as adding a date at the beginning of the filename. In Emacs with dired,…
miguelmorin
  • 1,907
  • 12
  • 33
12
votes
1 answer

How to use Dired marked files as arguments to arbitrary Emacs Lisp functions?

Dired lets me mark files and pass their names as arguments to arbitrary shell commands. I would like a way to supply the marked names as arguments to Emacs Lisp functions, either built-in or those I write myself.
Low Powah
  • 317
  • 1
  • 9
11
votes
2 answers

Dired. First show list of folders

Windows 10, Emacs 25.1, Dired+ Here example of my folder's content: As you can see the files and folder are mixed. But I want first to show list of folders and after show list of files. Is it possible? With respect to the answer by @Drew: I…
a_subscriber
  • 4,062
  • 1
  • 18
  • 56
10
votes
2 answers

How can I make Dired buffer names include the full path?

I often have many dired buffers open, including some for folders that have identical names. Occasionally, this causes me to switch to the wrong one, so I am looking for a way to fix this. Currently, if I have multiple identically-named folders open…
Scott Weldon
  • 2,695
  • 1
  • 18
  • 31
9
votes
1 answer

How show hidden and system folder/files?

Emacs 26.1. , Dired+ Here content folder TraderMonitor in Total Commander: and here how look same folder (TraderMonitor) in Emacs, dired mode: How show hidden/system folders: .git .idea and file: .gitignore ? P.S. If I start by emacs -Q I see…
a_subscriber
  • 4,062
  • 1
  • 18
  • 56
9
votes
1 answer

How to only show the file/directory column in a Dired buffer

When visiting a directory: In the view that comes up, I want the file/directory names to be in the left-most column. How can I do that?
Kirill Yunussov
  • 463
  • 5
  • 8
9
votes
1 answer

Copy to kill-ring selected file names/full path

windows 10, emacs 25.1, dired+ Suppose in folder I select 3 files. Something like this: Now I want 2 options: Copy to kill-ring the selected files names. So the result must…
a_subscriber
  • 4,062
  • 1
  • 18
  • 56
9
votes
2 answers

How show size in KB in dired mode?

Windows 10 (64 bit), Emacs 25.1, package dired+. In dired mode files size show in bytes. But I want to show in KB.
Alex
  • 801
  • 2
  • 8
  • 18
8
votes
1 answer

Dired+. Mouse click - open folder in the same window

When I open a folder by pressing "Enter" it will open in the same window: This behavior is OK and basically what I expect. But when I try to open a folder by clicking with the left mouse button the folder will open in another window: I would like…
user8542613
  • 663
  • 6
  • 16
1
2 3
10 11