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.

Filter by
Sorted by
Tagged with
0
votes
1answer
114 views

Updating `dired-directory` after renaming a file

Q:   I have a list of strings: '("apple" "pear" "peach" "nectarine" "watermelon"). How can I replace "peach" with "plum" and maintain the same order of fruits?  [CAVEAT: The list may be very long ...
9
votes
3answers
2k 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" ...
0
votes
0answers
111 views

Re-map evil-commentary key in dired mode

I am trying to re-map a key in evil-mode/evil-commentary-mode when in dired-mode. I tried to add a hook to dired-mode to disable the minor commentary mode, but it disables it for other major modes as ...
6
votes
1answer
580 views

Follow symlinked directories in Dired

On a Linux machine I symlink some directories into my home directory like this: /home/mrdarcy: total used in directory 231 available 520120 drwxrwxr-x 3 4k 04-30 18:16 bin drwxr-xr-x 2 4k ...
1
vote
1answer
55 views

Dired / Wdired: How to test whether a filename is relative / absolute

I am creating a dired-mode buffer with: (dired (directory-files-recursively default-directory "")) This gives me absolute paths for each file, which is great. I am still unsure how the default-...
4
votes
2answers
98 views

Subdirs in Dired: display relative paths

I've hacked something together for myself to hide/toggle columns of my choice in Dired and display what's left with a less obtrusive face. As a side effect this makes the width of Dired buffer small ...
0
votes
3answers
146 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&...
3
votes
2answers
325 views

How to make sure I run Dired+

I have downloaded and put the dired+.el file into /Users/ri/.emacs.d/elisp and added the following code to the init file (add-to-list 'load-path "/Users/ri/.emacs.d/elisp") (require 'dired+) When ...
8
votes
1answer
912 views

Is it possible to load Dired+ automatically with use-package?

I'm trying to add dired+ to my init.el with use-package but I can't seem to find the name of dired+ on any of the package repositories ( marmalade, melpa or elpa ). I'd been able to add dired+ after ...
5
votes
1answer
1k views

Making Dired work with FTP on OS X 10.13

So apparently Apple has (stupidly) dropped support for "insecure" Unix commands such as telnet, ftp, etc. in 10.13, or "High Sierra" (see these threads for more info). Unfortunately, I use Dired as an ...
1
vote
1answer
56 views

Printing a list of folders which has been modified today

Is there any way to export a list of folder names which has been modified today using a dired mode or any other package on emacs
1
vote
1answer
215 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 ...
1
vote
1answer
466 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, ...
2
votes
2answers
346 views

Only open files which should be opened via Emacs via RET in dired

I got ;; Opens files externally from dired. (defun dired-open-file () "In dired, open the file named on this line." (interactive) (let* ((file (dired-get-filename nil t))) (message "Opening ...
2
votes
1answer
100 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 ...
2
votes
1answer
763 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
121 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+...
5
votes
2answers
292 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 ...
1
vote
1answer
152 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 "...
1
vote
2answers
898 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 ...
41
votes
7answers
20k 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 ...
6
votes
1answer
6k views

How to learn Dired in Evil mode?

I am learning Dired in Evil mode. h j k l / are Evil keys that obviously work in Dired. Are there others? Is there a table of Evil keys for Dired? I am using Emacs 25.2.1 with Evil, Spacemacs, and ...
1
vote
1answer
30 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
69 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
350 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
65 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 ...
6
votes
1answer
1k 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?
1
vote
1answer
353 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
149 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
54 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 ...
3
votes
1answer
567 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
295 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 ...
2
votes
1answer
135 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 ...
7
votes
1answer
814 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: ...
1
vote
1answer
199 views

Cannot use find-dired: setq: Searching for program: is a directory,

The error is raised by shell-command--shell-command-with-editor-mode. But further stack trace is obfuscated by bytecompiled output. Recently I had to set (setq explicit-shell-file-name "bash") to be ...
2
votes
2answers
140 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 ...
0
votes
1answer
101 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
65 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 ...
3
votes
1answer
208 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 ...
1
vote
1answer
132 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, ...
0
votes
0answers
41 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?...
2
votes
1answer
96 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.
1
vote
1answer
160 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 ...
1
vote
1answer
144 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
4answers
175 views

uninstall doc viewer in emacs

I am trying to open files in Emacs using dired. But whenever I open pdf files, the doc viewer in Emacs keeps loading the document. Is there any way to stop the pdf files being opened in Emacs ...
0
votes
0answers
106 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 ...
7
votes
2answers
1k 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 ...
6
votes
2answers
2k 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
52 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
1answer
71 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 2 3
4
5
8