Stack Exchange Network

Stack Exchange network consists of 174 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.

2
votes
1answer
206 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
228 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
186 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
47 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
146 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
56 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
125 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 ...
2
votes
1answer
272 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
348 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
96 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
56 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
71 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
50 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
204 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
54 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
244 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
50 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
113 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
66 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
121 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
122 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
73 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
50 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
83 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
50 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
95 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
681 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
407 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
104 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
124 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
96 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
162 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
568 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
93 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: ...
6
votes
2answers
370 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
23 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
350 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
58 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
120 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
173 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
342 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 ...
0
votes
0answers
36 views

Info.gz file for dired-mode missing

I'm missing the info.gz file which belongs to the dired-mode. It's not in the info directories, so there's no correlating node in C-h i info-mode. I searched the web for many hours, but failed to find ...
4
votes
0answers
57 views

Does Dired have something like “New Folder with Selection” of macOS Finder?

I want to create new folder then move file that is marked to that folder in emacs dired mode. In macOS Finder, you can use the new folder with selection. Is there a feature like this in emacs or ...
0
votes
0answers
70 views

copy (clone) a file into same dired buffer

Im looking for a way to copy (clone) a file into same dired buffer. For example if i have a test.zip file in ~ i would issue it and it would copy test.zip file to ~. a bonus would be if one can ...
3
votes
2answers
65 views

simple function in dired to create a dir with current date?

so im trying to create a simple script to create a directory in dired with a pre defined string (the current date). i have another script that inputs the current date in a format i want (defun z-...
10
votes
1answer
360 views

How to stop dired printing “Reverting buffer …”

After setting dired-auto-revert-buffer to t, even when I'm working on a buffer of file that may produce some results, the message keep printing if there is a dired buffer behind current buffer. This ...
3
votes
1answer
541 views

How can I open an url file in emacs dired?

When using dired in emacs, how can I open an url file in a web browser outside emacs?
2
votes
3answers
1k views

How to sort directories first in dired?

I add (setq dired-listing-switches "-lXGh --group-directories-first") in my init.el But when I go into dired mode. ls does not support --dired; see ‘dired-use-ls-dired’ for more details. insert-...
0
votes
2answers
129 views

print absolute path of symlink?

Is there any function that can print a symlink's full path in dired mode? Alternatively is there any function that can print an arbitrary buffers' full path?