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.

0
votes
1answer
180 views

diff marked files in Dired+

If I have marked a couple files in different directories using Dired+ is there a way to see the diff? I was looking at dired-diff and diredp-diff, but they both take the file at point. Granted that ...
5
votes
1answer
153 views

Can I yank the names of all marked files from a dired buffer?

I'm working on several files in sequence and want to build a buffer of file names to log my progress.
0
votes
2answers
114 views

Modification of Jim Blandy's `dired-tar` — Emacs for MS Windows

I enjoy using Jim Blandy's dired-tar library for Emacs built on *nix systems: https://www.emacswiki.org/emacs/DiredTar I am seeking to modify that library to support both *nix and MS Windows -- i.e.,...
0
votes
1answer
202 views

cant' create file with the same name in different directory in dired

I'm trying to create the new empty file Tried 'c' Tried C-x C-f when I type "mixins.py" Find file always suggest me to open the file in other directory with the same name, so I'm forced to create ...
2
votes
1answer
37 views

`+` in dired-mode with icicles and ido enabled raises an error

I just installed icicles. I use ido-mode for the minibuffer. In a dired buffer, when I press + (bound to dired-create-directory), here is what happens: the first time, the error icicle-restore-...
0
votes
1answer
55 views

Synchronize current dired path to next dired dir shown in a split window

first post :) I wondered if anyone knew a way to quickly change the dired path of of the additional dired (in a split window) to the current dired path? like the traditional OFM synchronize panes?
3
votes
1answer
246 views

How to make mouse-1 behave the same as RET in dired?

When I click with mouse-1 in dired it will open a new frame with the selected file. When I press return on the same file it will open the file in the same frame. How can I synchronize this behavior? I....
3
votes
1answer
438 views

how to color column in Dired?

How can I manage with Emacs dired-mode colors? For example, if I want to make column with file's last modified time and date to be red-colored.
12
votes
1answer
1k views

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 ...
6
votes
1answer
113 views

Sort by a suffix in file names in dired

I would like to sort the dired buffer by a suffix in the file names. For instance, with the following buffer content: /nixos/nix/store: total used in directory 140344 available 17530560 drwxrwxr-t ...
12
votes
1answer
387 views

Display recursive folder sizes in-line in dired?

I'd like to display the recursive size (the value that would be reported by du) of folder contents in-line in the dired buffer as an additional column or in place of the directory file size. Is this ...
4
votes
1answer
79 views

Recursive Hard Links in dired

If I want to do recursive hardlinks of a directory I have to use cp -r -l dir in bash instead of ln -h. How do I replicate this in dired, because dired-do-hardlink uses ln underneath? I can use M-! ...
1
vote
1answer
125 views

Why does emacs dired not display the same files as the Windows “Explorer” (e.g. Windows/System32/config)

(Emacs 24.3.1 i386-mingw-nt6.1.7601 of 2013-03-17 on MARVIN) Emacs dired of C:Windows/System32/config displays only the directories: '..' 'systemprofile' '.' 'TxR' 'RegBack' 'Journal' in the ...
2
votes
0answers
60 views

Dired: manual files sorting for specific directories

I have a directory with many folder. When I open it in dired I see this: bundles ckeditor companies contries failitators induction jquery_update lwt_shared members messages offices ... I often work ...
4
votes
1answer
196 views

How to make dired “collapse” empty directories?

I prefer flatter projects. Unfortunately some languages dictate a deeper structure. When dealing with those, it helps (a little) if directory views "collapse" empty paths. Example how GitHub does ...
3
votes
1answer
394 views

How to adjust dired-omit-mode

Goal: When dired is opened by default hidden files should be hidden. When the user clicks "M-q" hidden files must be shown except for "." and ".." I tried the following: ;don't show hidden files (...
1
vote
0answers
99 views

When starting dired, go to the existing dired window

I'm getting better and better at using emacs but one thing is annoying when using dired. When I run dired, it opens a new one, which is obviously the intended behaviour. Would it be possible to write ...
3
votes
1answer
180 views

dired-do-rename throws file-error when changing upper/lower-case name

I am using Emacs master branch built --with-ns on a drive that is case insensitive -- aka Mac OS Extended (Journaled). I would like to use dired-do-rename to change a folder name from upper to lower-...
3
votes
1answer
364 views

Tramp and Dired: Initial default-directory/dired-directory

I'm trying to use tabbar to setup groups for each remote host where I have buffers open. I need to get the full buffer name, so I can parse the hostname to set the group name. I've figured out how ...
0
votes
0answers
84 views

Unable to Send Commands to Omxplayer from Dired

When opening a video file with Omxplayer through dired using dired-do-shell-command, I am unable to send commands to the external program to, for example, pause the video. The file plays fine but all ...
1
vote
1answer
224 views

How to search for files from a root directory and get the results as a dired buffer?

I have a directory which contains directories with many music albums, and I'm doing a selection of songs according a list I found on the Internet. What I'm doing is splitting windows with the ...
2
votes
1answer
260 views

How integrate quickjumps/bookmarks in Dired window?

Last time I saw a screenshot of Emacs-nav: /// My attention was directly shifted to the left corner in the bottom, called "Quickjumps". I assume this is sort of bookmark list. When I open Dired, I ...
5
votes
2answers
196 views

How play multiple videos from dired?

I have multiple short videos in a directory and I have to play all of them in a queue. By using a file manager(Nautilus), I can select videos and then right click, select vlc and all videos will be ...
6
votes
1answer
205 views

Thumbnail previews of PDF files

If I select image files in a Dired buffer and do C-t C-t, a nice little thumbnail appears. But if I try this with PDF files, nothing happens. I would expect to see a thumbnail of the first page of the ...
1
vote
1answer
199 views

Display the hash of a file

I would like to view the (MD5) hash of the file at point in a dired buffer. How can this be done?
1
vote
2answers
798 views

How to sudo save file in TRAMP mode?

I just started using tramp mode, and it looks amazing. However, there's one issue that's making it non-usable for me. I have several boxes which I log into with one user, say, user. He's in sudoers ...
1
vote
1answer
97 views

Navigate cwd in lisp

I want to write some lisp that will take the cwd, and keep traversing up the dirctory tree until it finds a file (in this case config.rb) then when it finds it I want to parse the contents (in this ...
17
votes
2answers
2k views

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 ...
6
votes
3answers
1k views

Open file from dired in the same window — using the mouse

How do you configure emacs to open a file in the current window -- using the mouse -- when it is selected from a dired buffer? That is, when I open a directory and then select a file with the mouse ...
1
vote
1answer
216 views

How to open a given directory in Dired?

I want to use hydra (in Emacs 24.5.1 on Windows 10) to create a pop-up list of directories that I often use. Selecting one of the directories in the list, using a single key, should cause it to open ...
3
votes
2answers
165 views

How visually select files in Dired, in order to mark it at once?

In Dired, you can mark files each for each and do something with it. I was wondering if there is any way to allow visual selection of files in Dired, so you can mark every line inside the visual ...
2
votes
2answers
102 views

How supress Dired confirmation of large file for specific extensions?

I started to use Dired. The movie files will be opened by another external application (VLC) with the help of the package openwidth. So I would like to supress the confirmation File foobar.avi is too ...
2
votes
4answers
608 views

How can I skip Helm/IDO when I want to open Dired?

When I call Dired with M-x Dired, I got the IDO window with the file structure and when I press Enter, he goes to Dired. When I disable IDO in Emacs, and I do M-x Dired again, I got the Helm-dired-...
0
votes
1answer
522 views

How to delete file permanently in dired

The logical way should be C-u D to delete selected files permanently. How can we do that?
4
votes
2answers
712 views

How I can change the default directory handler from dired to deer or ranger?

How can I replace dired with something like deer? Any time emacs wants to browse a directory with C-x d or from a link on the homescreen (from projectile or something), I want to open it in ranger or ...
1
vote
2answers
128 views

Changing confirmation style when deleting files in dired

In aquamacs, the confirmation to delete files from dired is a y or n, and immediately on pressing one of them the file is deleted (no RET required after the y or n). In emacs, the confirmation is yes ...
2
votes
1answer
55 views

Can Emacs be used to browse a cpio archive?

Can Emacs be used to browse a cpio archive? I've tried to open a cpio file in Emacs in Ubuntu 15.04 (Vivid), but it simply shows me its content as is, not allowing to browse it as a directory of ...
1
vote
2answers
64 views

Make delete button to delete file at point in dired?

In normal file managers like nautilus, if i select an item and press delete button, it will delete that item. How can i achieve the same in dired? When point is at file, pressing delete button should ...
3
votes
0answers
79 views

Warning in WDired when renaming files to change capitalisation

I often use the command C-x C-q in dired (bound to dired-toggle-read-only) to rename files. When I use this to change only capitalisation (eg, Foo.bar to foo.bar) then I use C-c C-c to apply the ...
2
votes
1answer
116 views

`dired-do-search` not resuming search

I've been using the dired-do-search for a long time to find regexp matches in marked files in a directory. If there were more matches, you could resume the search and find the next match with M-, but ...
1
vote
0answers
41 views

Inline directories in dired [duplicate]

In dired, when you use i to see the contents of subdirectories, it looks sort of like this: /dir: file1 subdir1 subdir2 /dir/subdir1: foo bar /dir/subdir2: baz I want to make it look more like ...
2
votes
0answers
109 views

Helm - How to change default selection while renaming?

I have a dired buffer with two files foo.py foo_bar.py Now to rename foo.py to bar.py, if i goto foo.py, press R and type bar.py, helm selection will be like this Here helm is selecting the ...
2
votes
1answer
106 views

file renaming not always caught by filenotify

I'm using file-notify-add-watch from filenotify.el to watch a dired directory so it can revert when a file is modified within the directory. This generally works, but I've noticed that it only works ...
8
votes
3answers
1k views

How to use “o” to open from dired/ibuffer into another frame

I have two windows open and split vertically (single frame): A) contains my work B) contains either dired or ibuffer. I would like to be able to navigate to a file/buffer in pane B and hit "o" ...
19
votes
4answers
989 views

How to set emacs as the default file manager?

Some programs like firefox have buttons that when clicked open a file manager for browsing files. How do I make it to open in emacs with dired mode on Debian Linux?
5
votes
1answer
696 views

Is there a way for magit to display the branch in the dired buffer mode line for a given directory?

I'm moving to emacs from shell/Vim and I'm very used to seeing the branch I'm working in when I'm at the project level. Is there any way to get the Git branch name to display in the dired buffer mode ...
1
vote
2answers
390 views

speedbar — mark/unmark directories/files — `speedbar-get-marked-files`

Q: Is there a publicly available plugin/modification for the speedbar.el library to mark/unmark and essentially implement speebar-get-marked-files similar to dired-mode's dired-get-marked-files? If ...
8
votes
1answer
2k views

Tramp/Dired transfers files inline over ssh instead of using scp externaly

I am using tramp via ssh to access remote files. For text files, this is working really well, but whenever I want to copy larger remote files to my local machine, tramp uses its slow inline method (...
4
votes
2answers
464 views

How to disable IDO in ‘dired-create-directory’

I have this setup: (setq ido-everywhere t) (ido-mode 1) Well, of course there is more, but I believe that this is relevant portion. Some time ago I wanted to have IDO for dired-do-copy and dired-do-...
1
vote
1answer
381 views

How to make dired-mode copy and move all marked file in all dired buffer including the one just closed?

I want to mark interesting files while I am browsing my folders, when I am done with marking, I want to copy these files to another place (with dired copy or dired-ranger-copy) or send them as ...