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.

4
votes
1answer
450 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, ...
3
votes
1answer
156 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 ...
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 ...
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 ...
3
votes
0answers
38 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 ...
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 ...
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), ...
3
votes
0answers
75 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 ...
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 ...
2
votes
0answers
126 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 ...
2
votes
0answers
58 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 ...
2
votes
0answers
106 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 ...
1
vote
0answers
31 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 ...
1
vote
0answers
33 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 ...
1
vote
0answers
46 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 ] ...
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
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 ...
1
vote
0answers
92 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?
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, ...
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
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
0answers
29 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?
1
vote
0answers
96 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 ...
1
vote
0answers
114 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" "$...
0
votes
0answers
45 views

How quick jump to desire folder in dired mode?

windows 10, Emacs 26.1 Suppose I open folder test in dired mode. Smt like this: Suppose in kill-ring I has full path to another folder.E.g. d:/dev/tests/wiremock/ Now I want quick jump to d:/dev/...
0
votes
0answers
25 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 ...
0
votes
0answers
18 views

Why “dired-jump” open folder in dired mode with split mode?

windows 10 (64 bit), Emacs 25.1, dired+ I open my init.el. The I press C-x C-j (dired-jump) as result open folder d:/Programs/Emacs/.emacs.d/" in dired mode with split vertically. Why? I need to ...
0
votes
0answers
26 views

Jump to bookmars - how show only last folder?

windows 10, emacs 26.1 In my init.el (diredp-toggle-find-file-reuse-dir 1) As result when I press Enter in helm-mini buffer show only last opened folder. Nice. This exactly what I need. But... ...
0
votes
0answers
29 views

Russian file names problem on linux-mint

On my system, there are files and folders with russian file names. However, in dired buffers and filename complations they are garbled (as mojitake). The problem is compounded by the fact that even ...
0
votes
0answers
34 views

Advance work with archive (e.g. zip) in Dired+ mode

Windows 10, Emacs 25.1, Dired+ If I want to work with archive (e.g. zip) I use Total Commander. It's has many capabilities to work with many type of archives: zip, 7z, rar, gz, tar and so on. Here ...
0
votes
0answers
58 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 ...
0
votes
0answers
61 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 |----...
0
votes
0answers
29 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 ...
0
votes
0answers
107 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 ...
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?...
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 ...
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
0answers
144 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 ...
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-...
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 ...
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 ...
0
votes
0answers
35 views

Dired stopped working (trace with debug-on-error)

I just installed Emacs on a new laptop, moved over my init files, and all of a sudden Dired+ stopped working. With: (setq debug-on-error t) I see: Debugger entered--Lisp error: (wrong-type-...
0
votes
0answers
90 views

How to change ranger current line face?

I can not figure out how to change current line bg in ranger - I'm unable to find customize group for that, is that possible at all? Maybe its inherited from other dired face, can somebody point me ...
0
votes
0answers
30 views

dired: different action from same bind based on file type (extension), maybe hydra?

i really would love to have the option to launch different apps for a specific file type. for example if i have a .jpeg file i would want an option to launch in gimp, inkscape etc. Ideally i would ...
0
votes
0answers
43 views

Open files with Dired recursively but exclude one top level dir

So I open all files matching a patter frequently using C-u C-x d, add the R switch etc. (Recursively open files matching regexp in marked directories). But what I need to do is exclude one top level ...
0
votes
0answers
45 views

quick insert pre stored commands to dired-do-async-shell-command

Does anyone know or has coded some mechanism (using helm/swiper/other) to quickly insert complex commands when issuing dired-do-async-shell-command? For example I want to stand on a folder and issue: ...
0
votes
0answers
342 views

How to fix Slow emacs access of host mounted drive on Windows 7 under VirtualBox?

I'm setting up a virtual Windows 7 machine on my Mac OSX El Capitan using VirtualBox. The windows 7 install seems to work well, however, when launching Emacs 24.1 it is extremely slow on all file ...
0
votes
0answers
18 views

Get a list of the “Recent opened files” in the OS

I think it would be really useful to have a command which list the last opened files in the computer in the minibuffer (just like any file manager). Do you know how to do this?
0
votes
0answers
84 views

Unable to Send Commands to Omxplayer from Dired

When opening a video file with Omxplayer through dired using dired-do-shell-command, I am unable to send commands to the external program to, for example, pause the video. The file plays fine but all ...
0
votes
0answers
127 views

What's the mode hook for dired's minibuffer?

Starting dired with M-x dired and hitting M-x dired-create-directory I am now in a mini-buffer. Which mode-hook do I use to set a keybinding for the mini-buffer?