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.

-1
votes
0answers
64 views

How can I set a directory buffer in one window to open files in another window?

The setup I am going for would look something like this: ------------------------------ | | | | | B | | | | | A |----...
1
vote
2answers
111 views

How can I use Regexp to rename files in Dired mode?

I've have some videos (.mp4) with subtitles files (.SRT) that I need to rename. These files have long names so I can only rename them manually. I've tried Python to rename them, but it fails. I've ...
2
votes
1answer
58 views

Rename full path folder in dired mode

Windows 10, Emacs 25.1, Dired+ Suppose I has folder d:\TEMP\test\com\myproject\android\common\ Here: I want in dired mode by one step to rename full path to net\newproject\iphone\data. So as ...
4
votes
1answer
174 views

Show git branch in dired modeline

I would like to see the git branch shown in the dired mode-line at least for the top directory of git projects. Anyone done this or know how to?
0
votes
1answer
245 views

prelude-ivy: How to select and open multiple files

I have installed Ivy (along with Swiper and Counsel) as part of Prelude by doing a (require 'prelude-ivy) in my prelude-modules.el file. It seems to work, but I am not able to figure out how to do ...
0
votes
1answer
58 views

sanityinc-tomorrow-eighties theme fails to show dired mode colors

I have the theme sanityinc-tomorrow-eighties enabled using (load-theme 'sanityinc-tomorrow-eighties t). I love this theme but my dired buffers do not show colors. I have installed and enabled dired+...
4
votes
2answers
134 views

Delete file owned by root in dired mode

I am trying to delete a file that is owned by root from Emacs dired opened as a regular user. I get the following error: (file-error Removing old name Permission denied /opt/file) How can I execute ...
13
votes
3answers
2k views

Dired+ missing from MELPA

I am trying to install dired+ from MELPA but it seems that it no longer is listed. I also checked here: https://melpa.org/ Is this normal?
2
votes
1answer
111 views

Cherry-pick columns to display in Dired or Dired+

I would like to customize the amount of detail displayed in Dired. Basically I would like to cherry-pick the "columns" to display. More precisely, I would like to hide the "owner group" information. ...
0
votes
1answer
79 views

Tramp FTP cant connect. tramp-file-name-handler: Host name must not match method “ftp”

I am trying to connect ftp using tramp I am using C-x C-f /ftp:username@subdomain.hostname.com I get an error message in the mini buffer: tramp-file-name-handler: Host name must not match method "...
0
votes
2answers
238 views

Newbie: Simple setup for dired in sidebar?

Simple question from a new Emacs user: I'd like to have my editing window have a sidebar (or a divided window, or a frame--I'm not sure of the terminology or the options here) that has a dired (or ...
0
votes
0answers
30 views

Mode dependant key binding

I wrote an elisp function which I would like to bind to the key "C" but only in dired-mode; otherwise it should be the capital letter C. However I am not very familiar with elisp and I did not manage ...
1
vote
1answer
22 views

Dired: Insert/Moved to this subir for all subdirs?

windows 10, emacs 25.1, dired+ In dired mode if I want to open subfolder in the same folder as parent folder I press i Here example: OK. It's work fine. But if folder has many subfolder I need to ...
1
vote
0answers
50 views

Adding another column of information to dired (text snippets by Gnome Tracker)

I have a small Emacs Lisp function which calls Gnome Tracker's FTS Search via D-Bus and display results in a dired buffer. [ https://gist.github.com/vishalbelsare/4f78722856a6bca7faf1f73353892025 ] ...
0
votes
1answer
134 views

Open emacs in Dired mode

I would like to open emacs in dired mode . files and folders should be organised in most recent file first order. Moreover I would like to highlight the Org files for easy selection. Is this possible?
2
votes
1answer
64 views

Why does ^#.*#$ not capture recursively inserted files?

While considering some refactoring, I made changes throughout a project. Halfway through the changes, and before saving, I found it doesn't quite work. I exited emacs and restarted. (That's probably ...
1
vote
1answer
270 views

Thumb could not be created for file xxx.png

Windows 10, Emacs 25.1, Dired+ I want to open image file from Emacs. I start Emacs by emacs -Q So in tutorial: To enter Image-Dired, mark the image files you want to look at in the Dired buffer, ...
3
votes
1answer
508 views

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?
0
votes
3answers
99 views

Dired+ key binding issues in terminal emacs

Using the Dired+ library, and running Emacs in a terminal, all arrow keys in dired buffers invoke M-O (which is bound to diredp-chown-this-file) instead of correct <left> <right> <up&...
0
votes
0answers
109 views

Open PDF file with DocView without unsetting openwith-associations

I mostly like to open pdf files from dired using an external viewer, but occasionally it would be good to open them in emacs using docview-mode. Is there any way I can do this without unsetting ...
1
vote
1answer
75 views

What is the difference between file mark for delete and marked file and delete?

Windows 10, Emacs 25.1, Dired+ If I want to delete files in Dired mode I have 2 options: Flag files for deletion (by pressing d) and then delete them by pressing x Mark files by m and then delete ...
1
vote
1answer
69 views

How show in Dired+ count of selected files and size?

Windows 10, Emacs 25.1, Dired+ (20170818.1411) In Total commander when I select any files it show count of selected files and total size of selected files. Here example: It's very helpful. But in ...
1
vote
0answers
41 views

How copy file from Windows to smartphone (Symbian) in dired mode?

Windows 10, Emacs 25.1, Dired+. When I connect (via microUSB) my smartphone (Nokia) to my computer, the Windows 10 success detect new device. And as result I can success copy/move file from Windows ...
1
vote
1answer
270 views

find-grep-dired: find exited abnormally with code 1

Windows 10, Emacs 25.1, Dired+ I want in Dired to find all files that contain text "UserOptions". M-x find-grep-dired In folder ca UserOptions And here result: find exited abnormally with code 1 ...
2
votes
1answer
70 views

How to show other files and subdirectories in current dired file buffer?

If I open dired buffer with filename as parameter, and not directory, only that one file is displayed in dired mode. But I wish I could open dired buffer like that (dired "/usr/bin/pwd") and see not ...
2
votes
1answer
173 views

Using Emacs/Org to Create a Tagged, Searchable Collection with Images

Background After exiting the Linux world for a few years to do the gaming PC thing, I have recently come back to the fold. For the most part, the transition has been easy, but there's one 'tool' I'm ...
5
votes
2answers
751 views

Windows: Open files by default application

Windows 10, Emacs 25.1, Dired+ In my folder "test" I have different file: So I want when press Enter on file 97_things_for_programmer.pdf to open this pdf file by my default application - Adobe ...
2
votes
1answer
79 views

Why is there no dired-toggle-mark?

In dired mode, with the key m, you mark a file. You can unmark this with the key u. I find that somewhat cumbersome, so I would bind the key m to mark or unmark a file under the cursor, depending of ...
6
votes
1answer
390 views

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 be: ...
0
votes
1answer
129 views

Find files like in Nautilus' search

I occasionally find myself using Nautilus instead of dired to search for files and would like to change that. When looking for a file, I often don't know the capitalization of its name which is why I ...
0
votes
1answer
122 views

All arrow keys in dired+ buffer mapped to M-O

For some reason when I press Up, Down, Left or Right keys on keyboard in dired+ mode, emacs reads them all as M-O key, which I found out by describe-key command in dired+ buffer. I have no config ...
0
votes
1answer
58 views

Rename all files(from different folders) in one buffer?

In folder I have 5 subfolders: drawable-hdpi\ drawable-mdpi\ drawable-xhdpi\ drawable-xxhdpi\ drawable-xxxhdpi\ In all of this 5 subfolders I have files with same names: ic_m_brands_gray.png ...
1
vote
1answer
49 views

Dired: Search by one letter

Windows 10, Emacs 25.1, Dired+, Dired-K Here my test folder: If I want to go folder test2 I press M-x and then C-s (I-search). Here result: OK. It's work. But... I think it's slow. It would be ...
1
vote
1answer
60 views

Dired: only one buffer when input/exit in directory

Windows 10, Emacs 25.1, Dired, Dired+ When , in dired mode, I enter (by press RET) to directory the dired create many buffers. Something like this: As you can see was crated 4 buffers: Temp, test, ...
1
vote
1answer
93 views

How can I highlight cursor or line in unselected frames?

Prelude Let me start by mentioning the scenario where the problem arises. I see that 2-3 variables are always used together in a system. I need to add yet another one that will be used along with ...
2
votes
1answer
54 views

How can I run (recenter) after dired reloads current buffer?

I don't find any hook related to dired reloading. I tried after-revert-hook but it doesn't work.
0
votes
0answers
38 views

emacs dired create a copy of image with 50% brightness

I know in the command line in linux i can use image magick to quickly brighten an image convert nebula.landscape.jpg -brightness-contrast 30 bright.jpg im trying to create a function in emacs (dired?...
1
vote
1answer
82 views

Dried+, Dired-K. Available space in KB/MB?

Windows 10, Emacs 25.1, Dired+, Dired-K Here my dired buffer: As you can see Dired-K show size of files and folder in KB/MB. OK. Nice. But total available is show in bytes. Is it possible to show ...
0
votes
0answers
61 views

Dired-K: Not change color of file name (change by date)

Windows 10, Emacs 25.1, Dired+, Dired-K Suppose current time is 20:31 Here my init.el (require 'dired+) (require 'dired-k) (define-key dired-mode-map (kbd "K") 'dired-k) (define-key dired-mode-map ...
6
votes
2answers
563 views

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 ...
3
votes
1answer
158 views

Dired+. Is it possible to change color of recent created/edit files/folders?

Windows 10, Emacs 25.1, Dired+ I use file manager Total Commander. And I set them to show different color (blue) for recent(e.g 1 hour) created/edited files/folder. It's very comfortably. Here ...
6
votes
2answers
804 views

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 ...
1
vote
1answer
37 views

How to configure mouse button to execute a program in emacs

I have a lot of video files I want to filter through and delete if they are uninteresting. I opened the directory of video files in emacs and I want a left-click on the file to play that file in vlc. ...
1
vote
1answer
31 views

Dired: How copy to kill-ring name of parent directory without moving to parent's directory name?

Windows 10, Emacs 25.1, Dired If I want to copy to parent's directory name to kill-ring I go to folder name and press w Here result: OK. It's work. But I wan't to move cursor and get parent's ...
1
vote
0answers
55 views

Dired+: Copy to nonexistent directory

Windows 10, Emacs 25.1, Dired+ I try to copy a file from test folder to nonexistent folder new: But I get this error: Is it possible to make Emacs autocreate folder new and copy the file to it? It ...
3
votes
1answer
131 views

Dired+. Autorefresh after copy files

Windows 10, Emacs 25.1, Dired+. I copy file from one folder to another. Here screens: After copy I get the next result: As you can see the bottom buffer is not refresh. So I need to go to bottom ...
1
vote
1answer
69 views

Dired+: Not enter in folder when window is split

Windows 10, Emacs 25.1., Dired+ I want to copy file from folder "test" to folder "response". My steps: Open folder "test" see screen: split window by command (split-window-vertically &optional ...
0
votes
0answers
108 views

How to use dired to open a folder as root

I want to batch editing some files as root in dired, however, when I open dired with /sudo::/my/path/to/dir, dired window does not list anything. What is the correct way to do this ?
0
votes
1answer
24 views

How not to propagate dired-actual-switches as a directory variable to the sub directories

I want to set dired-actual-switches for the directory /path/to/data, but not for data's subdirectories. So I generated the following .dir-locals.el file in /path/to/data: ;;; Directory Local ...
0
votes
0answers
145 views

Spacemacs menu in mini-buffer displays Dired+ “C-x D A” command unreliably

Two weeks ago I installed Dired+. I successfully used Dired+ C-x D A (diredp-add-to-dired-buffer) command. But the Dired+ C-x D A command is not always available. Sometimes after C-x, the D appears ...