Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

9
votes
1answer
263 views

How to prevent tramp locations from interfering in history?

I have an issue where if I try to perform some random Emacs operations such as org-capture, or renaming a file to a different (local) directory in dired, Emacs attempts to contact a different machine ...
9
votes
4answers
2k views

Recursively open files matching regexp in marked directories

Generally speaking, I would like to be able to open all files within a given set of directories (and their subdirectories) where the filename matches a given regexp. For example /home/nispio/...
10
votes
2answers
1k views

Dired as an FTP client

I don't know whether this is possible or not. I know I can edit remote files, but what I am looking for is a setup like this: one buffer with dired on my local directory one buffer with dired on the ...
5
votes
2answers
631 views

Why is dired-find-alternate-file considered confusing?

Pressing a in a dired buffer gives me a warning: [...] disabled command dired-find-alternate-file. It is disabled because new users find it confusing. As far as I can tell, it just opens the ...
38
votes
7answers
14k views

Tree-based directory browser?

I love dired, but sometimes (particularly when filming screencasts) I want to see the tree-structure of a directory and its children, a la the tree(1) command. Is there a tree-oriented directory ...
1
vote
2answers
209 views

dired: is file under point local or remote?

In a dired buffer, how can I determine whether the file under the point, i.e. (dired-get-file-for-visit), is local or remote? Is there something like (dired-local-file-p) or maybe (tramp-local-file-p ...
19
votes
7answers
1k views

Dired “quick-view” key to preview the file at point

I would like to create a function that does a "quick view" of a file the is under point in dired. The way that I would like for this to work is that I hold down a function key, which then makes the ...
3
votes
1answer
258 views

Is it possible to sort dired tabs in tab bar-mode by directory structure?

I am using tabbar-mode and I love it. I have only one thing which is irritating me: the sorting order of tabs of fired windows. As in other modes, they seem to be sorted by time opened. But in case ...
31
votes
5answers
3k views

Is there a way to use query-replace from grep/ack/ag output modes?

I'm aware of find-grep-dired, marking the corresponding files and then pressing Q to run dired-do-query-replace-regexp on the marked files. Unfortunately that requires restarting the grep and no ...
21
votes
8answers
3k views

Close all dired buffers

Sometimes my buffer list has 10+ dired windows, and I end up using buffer-menu to manually mark and kill all of them. Is there a faster way to close all open dired windows?
6
votes
2answers
429 views

Stop dired opening second window of already open directory

When I open a directory using dired and there is already the same directory opened in dired, a second one is opened with <2>. How can I inhibit this creation of the duplicate window and switch ...
14
votes
1answer
263 views

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 ...