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
0answers
119 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
151 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 ...
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 ...
5
votes
1answer
486 views

Customize dired's display

This might seem like a duplicate of How to customize dired's display. However, I did not find a satisfactory answer there. Consider the following picture: It has many columns: permissions, user, ...
2
votes
2answers
184 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 ...
6
votes
4answers
562 views

Quickly jump to favorite folders

What I actually want I have deep folder structures and use about a dozen folders pretty far down the directory tree a lot. In Nautilus, I use bookmarks to get to them quickly. I want the same thing ...
1
vote
0answers
106 views

Dired, async copy files

Windows 10, Emacs 25, Dired. I tried to copy a lot of files in dired, and Emacs "freeze" while copying. What is the best package for async copy/move files in Dired?
5
votes
1answer
270 views

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

Windows 10, Emacs 25.1, Dired+ When I open folder by press "Enter" it's open in the same window: OK. But when I try to open folder by click mouse -> it's open in anoter window. But I need to open ...
3
votes
3answers
236 views

Open Dired for an arbitrary set of files

There is a project with 100 files in a flat directory. I want to navigate a subset of the files, depending on what part of the project I am working on. Creating files with links to files of interest ...
1
vote
1answer
211 views

emacs archive-mode rar files

While the documentation states that archive mode supports rar files, I seem to have no luck with it. Trying to view/open a rar file in dired, lead to this message: File mode specification error: (...
1
vote
0answers
54 views

How to make Dired sort on special characters in the beginning of file or folder names?

In Windows File Explorer (FE) I can give a file or folder a name with a special character as the first character, and thereby make them move on top when sorting the files alphabetically. For instance, ...
4
votes
2answers
167 views

Async file deletion with Dired

I use async with Dired copy/move/rename, but deletion somehow does not work. On top of it when deleting +100 files the deletion is very slow. Anyone knows a remedy for either: 1. Faster file deletion, ...
2
votes
0answers
59 views

Dired. Is it possible to change color of file name when file was changed?

Windows 10, Emacs 25.1 I use Dired+ as file manager. All files names color are yellow. If some file was changed not later than one hour ago then : this file name change it color, e.g blue after one ...
0
votes
4answers
129 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 ...
3
votes
1answer
332 views

Get filename from dired using elisp

Using elisp, I call this function (dired "~"), for example, to get to my Home directory in dired mode. When I press RET on one of the files, I want to capture the file path and store it in a variable ...
3
votes
2answers
357 views

Meaning of character `C` in front of `dired` rows?

Some of my dired-rows are prefixed with an uppercase C character and I can't quite figure out what that should tell me. By experimenting around I managed to find out that the character doesn't seem to ...
3
votes
1answer
3k 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 ...
2
votes
1answer
113 views

dired not showing recently created files when emacs is run in daemon mode

When running emacs in daemon mode, a directory listing using dired does not seem to show the latest created files. What could be the cause of this issue, and how can I fix it?
3
votes
1answer
67 views

Dired: move cursor to last position when entering a subdirectory again?

When dired moves up a directory, in the new buffer, the cursor will be positioned on the directory from where it originated. However, the other way around is not supported by default: upon returning ...
2
votes
1answer
74 views

What does emphasized dired file permission mean?

For example, below we see a website directory, and that the write permission for group is emphasized (in orange): No emphasis when the group of the file doesn't have write permission, for example, ...
1
vote
1answer
52 views

How to prevent dired from changing window (frame) title?

Using graphical version of gnu emacs v24.4.1 on centos7. I set the window (frame) title manually with this: (setq frame-title-format '("SAMPLE TITLE")) It is working OK and tittle gets set fine. ...
4
votes
2answers
207 views

Dired+ hangs emacs in -no window mode

I have this in my init.el file: (use-package dired :init (progn ;; Details toggling is bound to "(" in `dired-mode' by default (setq diredp-hide-details-initially-flag nil)) :config ...
1
vote
0answers
57 views

Is there any way to abbreviate dired-header?

/home/farhad/phpPlay: controllers index.php /home/farhad/phpPlay/controllers: index.php In a dired-mode buffer like above I want to replace /home/farhad/ with ~. Is it possible?
1
vote
2answers
284 views

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.
1
vote
0answers
55 views

emacs dired ignores LC_COLLATE=C when using sudo?

My emacs dired changes sort order from ASCII to case-insensitive whenever I view a directory listing under sudo::. Checking getenv on LC_COLLATE shows that emacs still thinks the value is 'C'; and ls -...
1
vote
1answer
132 views

How to rsync/fetch/download the folder open with ssh/tramp

I work in a folder on the server, peyote2 in this case. I can edit files there etc, we all know that. However I have there a pdb file (RNA 3D structure) that to view I have to download it to my ...
3
votes
0answers
71 views

Dired: use dimmed face for file details (permissions, ownership, etc.)?

I'd like to customize dired so the non-filename details (permissions, ownership, etc.) are slightly dimmed, putting visual emphasis on the filenames themselves. I like having the details present (I ...
1
vote
1answer
123 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
1answer
132 views

dired copy files without overwriting?

Q: how do I use dired to copy/move files without overwriting? I'd like to use dired to copy (or move) files from directory A to directory B. However, I only want to copy files in A that do not ...
3
votes
0answers
74 views

Accidentally visiting a FIFO

I'm in Dired, and one of the files in the current directory is a named pipe (FIFO) prw-r--r--+ 1 ivan staff 0 Feb 6 11:13 some_pipe If I (accidentally) visit it (with dired-visit-file), ...
1
vote
1answer
51 views

string splitting (renaming files)

new user here. I am wondering- can somebody walk me through how to do the following: In a given directory I have files that look like this fluc_sk2_556.png even_sk2_922.png I would like, with ...
1
vote
1answer
90 views

Match blank lines at end of file

How can I match – in, for example, a group of files from a Dired buffer – all files that have one or more blank lines at the end of the file? The specific need that prompts this question is to remove ...
0
votes
1answer
53 views

void-variable dired-after-readin-hook in emacs 25

I've get emacs 25 build ppa taken from this ask ubuntu answer and I have this functions and macro: (defun remove-lambda-helper (list matcher) "function that remove lambda from a list if match the ...
0
votes
2answers
103 views

Hide symlink destination in ls-lisp output?

By default Emacs' ls-lisp shows the symlink destination in its output like this: /tmp: total used in directory 2 available 12933091 lrwxr-xr-x 40 02-07 16:12 foo -> bar -rw-r--r-- 0 03-06 14:45 ...
1
vote
1answer
764 views

(Evil) “General” leader key (SPC) not working in some modes (dired, *Messages*)

I use Evil, and I'm using the General package to set my custom keybindings. I'm using SPC as a leader key. The trouble is, I find that SPC is not interpreted as my leader key in some modes, namely ...
2
votes
2answers
458 views

How to show MS Windows drives in dired?

I'm beginning to think that dired (+ extensions) is the file browser I've always been looking for. Under Windows, however, dired does not allow to switch to other drives easily. While most things are ...
3
votes
1answer
105 views

How do I convert .doc file to plain text on demand?

I would like to convert .doc files to plain text when opening them in Emacs. The command line tool antiword can read Word files. How do I pass them to antiword and then get the result in an emacs ...
2
votes
2answers
133 views

Eshell and Dired are unable to extract port number from authinfo file

My default-directory is: /ssh:lawlist@12.34.567.89#2222:/home3/lawlist My .authinfo file contains: machine 12.34.567.89 login lawlist password abcdefg The above-combination works just fine. ...
3
votes
1answer
106 views

Writing a complex dired function to open xterm and execute a command on all current marked files in dired

I'm trying to write a complex (to me) dired function, where I want to open a xterm window which will launch an application (fbot) with many arguments and input all marked dired files into that ...
4
votes
2answers
170 views

Use shift-up/down keys to mark/unmark lines in dired?

The default in dired is to mark files and folders with m, and to unmark them with u. Instead of this, I'd rather like to use shift-up and shift-down for marking or unmarking lines (in a DWIM fashion). ...
7
votes
3answers
605 views

How to grep marked files in the dired mode of emacs?

I hope it's a simple problem.. I'd like to search for the regexp 'thisWord' only in the marked files of a dired buffer. Usually I used in the dired buffer: M-x grep and then in the mini-buffer grep ...
1
vote
2answers
99 views

multiple marked files in `dired-do-async-shell-command ` open seperate instances of app (picard)..how does one pass them as a list?

So I'm trying to send a bunch of marked files to picard with dired's '&' (dired-do-async-shell-command). In the normal command line this opens one instance of picard with all the selected files: ...
7
votes
2answers
380 views

How to always kill dired buffer when deleting a folder?

If I'm in dired and have a subfolder with another dired buffer (a common situation when navigating up/down directory) and want to delete a folder, I hit Dx to mark for deletion, then execute. Emacs ...
0
votes
0answers
25 views

dired function i wrote passes only current marked folder at point, can i send all marked folder?

i have this simple function i wrote (tbh i have zero coding skills.i gathered stuff from the web :)): (defun z/dired-media-filebot (file) (interactive (list (expand-file-name (dired-file-name-at-...
2
votes
1answer
382 views

Dired search and replace is throwing no results

I am trying to quickly search and replace in multiple files using dired. The steps I follow are from this question (Chris Conway's and Frank Henard's answers), I am pretty sure the instructions are ...
5
votes
1answer
60 views

How to run `find-dired` and toggle all files?

This is what I have so far: (defun find-and-toggle () (interactive) (find-dired "~/my-project" "-name *.py") (dired-toggle-marks)) This switches to the find-dired buffer, but dired-toggle-...
1
vote
1answer
129 views

How to know when dired is done if called async?

If I am copying files using dired having previously called (dired-async-mode) to make it copy asynchronously, how do I know when it has successfully finished copying the files?
5
votes
1answer
185 views

Dired up to parent directory on symlink

I have a symlink ~/link -> ~/a/really/long/path When I press ^ in the buffer, it takes me to ~ but I want to go to ~/a/really/long Is there a right way to do this? Another question is, if I'...
1
vote
2answers
379 views

On orgmode link- dired like open with or open in dired current link?

I sometimes need to open links in org (mainly for image link) in an external editor (let's say gimp). Is there any way to do that? That is, instead of the default open link, add a open with option or ...