Skip to main content

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.

92 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
198 views

Dired; Is it possible, to show video duration as column in dired view?

i want to let dired show the duration of multimedia files as a column inside the dired buffer detail view. Is it possible? Any third-party extensions for dired? Currently i use exiftool -T -...
space_held's user avatar
4 votes
1 answer
561 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 ...
a_subscriber's user avatar
  • 4,174
3 votes
0 answers
753 views

Short key to run a binary in dired-mode

In dired-mode I can type ! to use the selected file as an argument for a command. For instance, if I type ! rm <RET> it will run the command rm filename. What I wanted is a short-key to run the ...
rph's user avatar
  • 335
3 votes
0 answers
245 views

Switch between term and shell keeping directory

I am a beginner user of emacs so please answer being aware of this. I use dired to connect to a remote computer and navigate directories. I sometimes want to go to a shell or terminal on the remote ...
user27815's user avatar
  • 249
3 votes
0 answers
88 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 ...
Jay Lee's user avatar
  • 333
3 votes
0 answers
109 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 ...
Vivi's user avatar
  • 361
2 votes
1 answer
224 views

gzip: stdin: unexpected end of file

Linux Mint 20.1 Emacs 27.1 I connect to remote Linux host by tramp mode. Success connect. Nice. But when in dired mode I try to open log file (press Enter) I get the next message: gzip: stdin: ...
a_subscriber's user avatar
  • 4,174
2 votes
5 answers
442 views

Dired: How to open file with ace-window while keeping focus on dired buffer?

I have this Elisp code that allows me to use ace-window to open a file in a selected window from Dired: (defun find-file-dired-ace-window () "Use ace window to select a window for opening a ...
Nicholas Hubbard's user avatar
2 votes
0 answers
94 views

Dired-narrow view disappears after using dired-toggle-read-only

I use the package dired-narrow (which I have bound to C-x /) together with dired-toggle-read-only (C-x C-q). However, if I press C-c C-c to commit my changes after using dired-toggle-read-only this ...
Edman's user avatar
  • 1,229
2 votes
1 answer
581 views

set `all-the-icons-dired` to use consistent directory icon?

I installed all-the-icons-dired package from melpa, however, it does not use consistent icons for directories. Some directories have their own special icon. Example, these are two directories: The ....
WickedJargon's user avatar
2 votes
1 answer
373 views

dired-do-copy in tramp does not go to local when `\ C-j` is pressed. File path stays in the same directory

I am using dired-do-copy to copy a file from remote using tramp to local. When Copy file to path is promted. I used / C-j to go to local path but the path stays in the same directory , does not go to ...
user avatar
2 votes
1 answer
118 views

Switch from Dired to Wdired rename file and directory errors when using "-F" or "--classify" ls switch regex help

If you set -F or --classify in the dired-actual-switches then it places a / at the end of directory names and * at the end of executables. When you finish renaming the files, these characters are ...
J Spen's user avatar
  • 181
2 votes
0 answers
490 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?
user8542613's user avatar
2 votes
0 answers
93 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 ...
lmdic's user avatar
  • 123
2 votes
0 answers
160 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 ...
ivan's user avatar
  • 1,948
2 votes
0 answers
144 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), ...
ivan's user avatar
  • 1,948
2 votes
1 answer
201 views

Manage freedesktop trashcan with dired mode

Trashed files are stored in the FreeDesktop standard location: ~/.local/share/Trash/files. How do I restore or permanently delete files in that folder using dired?
godblessfq's user avatar
  • 1,227
2 votes
0 answers
247 views

Ranger: cleanup doesn't work

I started using ranger and it's awesome, but one thing bothers me: It keeps every visited folder open in a buffer, so it floods my buffer list. There are two options that seem to be made to solve ...
itmuckel's user avatar
  • 267
2 votes
0 answers
126 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 ...
user4035's user avatar
  • 1,069
2 votes
0 answers
166 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 ...
Chillar Anand's user avatar
1 vote
0 answers
104 views

How to enable preview in dired-preview

Having watched https://www.youtube.com/watch?v=_2NAbPp_0zY I came across the option of Previewing a directory in dired mode and would like to implement this feature but can't work out how to do it. I ...
balanga's user avatar
  • 135
1 vote
1 answer
49 views

Strange issue with dired-subtree

This is my simple config: (use-package dired-subtree :ensure t :bind (:map dired-mode-map ("<tab>" . dired-subtree-toggle))) The first time the ...
user129393192's user avatar
1 vote
0 answers
85 views

How do I start emacs with two horizontal windows one of which is dired?

How do I write a function and call it in my init script so that when I open a file, I have two horizontal windows, the left one being dired mode and about 25% of the total emacs screen, while the ...
Aaron's user avatar
  • 111
1 vote
0 answers
130 views

dired-icon not show icons in dired-subtree

Linux Mint 20 Emacs 27.1 package: dired, dired+, dired-icon dired-icon In folder Temp has: Folder: MyFolder Files: someFile.txt someFile2.txt In folder MyFolder has: Folders: mySubFolder_1 ...
a_subscriber's user avatar
  • 4,174
1 vote
1 answer
90 views

dired-recent - not show correct recent visited directories

Linux Mint 20 Emacs 27 dired, dired-recent Steps: 1. "recentf-mode" is turn on 2. Go to directory "Download". Use "Jump to bookmark" (C-x r b). Input "Download"...
a_subscriber's user avatar
  • 4,174
1 vote
0 answers
113 views

dired-quick-sort - sort by name not working

Linux Mint 20.1 Emacs 26.3 In folder temp I have some files. Here is what it looks like (sort by name) in file manager Nemo Sort by name: how.build.txt is first. Nice. Now same folder in dired mode ...
a_subscriber's user avatar
  • 4,174
1 vote
0 answers
29 views

Would Emacs Manages Files and Writes in HDD in Someway That Would Cause Malfunction in it?

Noticed here that var partition is constantly returning error in boot process, compelling me to do a fsck frequentily. Once it has been used to do high-level using, in dired, org, tramp, Bookmarks+ ...
Waldemar22's user avatar
1 vote
1 answer
220 views

How change directory only in one window

Emacs 26.1, Dired+ Open some folder in dired mode. Split buffer by M-4 (split-window-vertically) Now I want to open src folder but only in TOP WINDOW. The bottom window must not be change. I press ...
a_subscriber's user avatar
  • 4,174
1 vote
0 answers
147 views

Replace normal state keymap in Evil with another

I don't like Evil collections or the Evil keybindings in the dired-mode. I would like to re-map only few keys in the normal state like j, k, and a few more keys with g prefix and I would like to keep ...
Arktik's user avatar
  • 972
1 vote
0 answers
23 views

How to Set Visit File Keystroke to Ask Root Password If Needed in Dired Mode

Trying here to accelerate root file editing via dired mode. That way thought in somehow adjust visit file keystroke f, as default, to either ask for root password or to enter it as root automatically....
Renan41's user avatar
  • 75
1 vote
0 answers
47 views

Can Dired (or Dired+) detect symlinks in Windows?

Can Dired(+) be made to show symlinks in Windows? A picture is worth a thousand words:
kotchwane's user avatar
  • 523
1 vote
0 answers
64 views

Sorting org files in Emacs Dired on the basis of the org time stamp in the file itself

Is there a way of sorting org files (.org) in Emacs Dired on the basis of the org time stamp in the file itself. With every org file I create, I insert an org time stamp near the top of the file. This ...
Edman's user avatar
  • 1,229
1 vote
0 answers
117 views

opening org link in dired

[[D:/dev::line][code]] stores the link to my code directory. How can i used dired to open it in emacs. Currently with this code explorer opens the directory. I'm using Windows 7.
Aviik's user avatar
  • 41
1 vote
0 answers
301 views

org-attach from a Dired buffer

I want to be able to attach files to a sub-tree from a Dired buffer. The org-mode manual gives instructions on how to do this in the link below: https://orgmode.org/manual/Attachments.html At the ...
Edman's user avatar
  • 1,229
1 vote
0 answers
58 views

How quick search folder/file only by letters only?

Emacs 26.1, Window 10 If I want to find in dired mode some file/folder I : C-s Input file/folder name Here result: OK. It's work. But it slow. Is it possible to search file/folder only by input ...
a_subscriber's user avatar
  • 4,174
1 vote
0 answers
77 views

Folder navigation on remote windows machine can't see folders with spaces

I've been trying to navigate folder structures on a remote Windows machine with Cygwin installed, but I can't seem to navigate to folders which contain a space in them. Emacs claims that "File no ...
strange's user avatar
  • 81
1 vote
0 answers
210 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 ...
Arktik's user avatar
  • 972
1 vote
0 answers
78 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 ] ...
Vishal Belsare's user avatar
1 vote
0 answers
80 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 ...
Alex's user avatar
  • 303
1 vote
0 answers
100 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 ...
Alex's user avatar
  • 801
1 vote
0 answers
116 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?
fhdhsni's user avatar
  • 703
1 vote
0 answers
125 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 -...
ericx's user avatar
  • 283
1 vote
0 answers
105 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 ...
zeltak's user avatar
  • 1,745
1 vote
0 answers
187 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 ...
Wasteland's user avatar
  • 111
1 vote
0 answers
144 views

How to make dired-do-async-shell-command wait for all sub processes to finish

I'm trying to run the bash script, ~/bin/xlda, ... #!/bin/sh # ~/bin/xlda old_filename="$1" new_filename=`echo $old_filename | sed 's/\(.*\.\)flac/\1m4a/'` ~/bin/xld -f alac -o "$new_filename" "$...
Donavan Costaras's user avatar
0 votes
0 answers
33 views

Change escape characters of substitutions in dired-do-shell-command

I've recently found nushell and made it my default shell, and in many ways it's great, but the syntax does differ a bit from bash, and that causes substitutions to be wrong when I use dired-do-shell-...
Alexander Praehauser's user avatar
0 votes
0 answers
13 views

projectile not showing files under a .git directory

I had a directory structure like this: .projectile lots of folders onefolder/nested/.git onefolder/bunch of other stuff when locked into the top-level project, none of the files under the .git ...
user129393192's user avatar
0 votes
0 answers
51 views

Add a shell command to dired mode

I want to add a command to dired-mode, which executes a shell command on the highlighted file. For example, from Bash, I can run qvm-copy {FILENAME}. I would like to replicate this behavior, but from ...
ch-pub's user avatar
  • 220
0 votes
1 answer
27 views

How can I jump to a file in dired after M-x locate?

If I M-x locate a file, then want to open it in dired, there's no function to jump directly to the file. I can only hit V, which opens the directory, but it does not highlight the file.
Jason Hunter's user avatar
0 votes
1 answer
79 views

"Aliasing" `ls` to `gls`

gls not ls: My system has two forms of ls, the standard "old school" version of ls, and GNU ls which is available as gls. In my shell, I simply created an alias to use gls, but I have not ...
Anoduck's user avatar