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
0answers
20 views

How to view .docx file from Dired with Cygwin Emacs?

Existing approaches suggest pandoc+markdown or unoconv+Libreoffice and both results are circuitous. Is there a way to get something close to how PDF pages are rendered with pdf-tools? I have tried ...
2
votes
1answer
30 views

Dired doesn't open non-text files with external applications in a Tramp directory listing

In Dired I'm in a Tramp directory opened with /sftp:... (so using the gvfs backend). If I use & to open a non-text file with a local external application (ex. evince for PDF) it doesn't do ...
0
votes
1answer
40 views

Async Rsync Dired error on tramp file not found

I am trying to copy files from one directory on a remote computer to another directory on the same remote computer. Using Dired I can open up the two directories, mark the files I want to copy and ...
1
vote
1answer
58 views

How to use a classical development setup (file explorer + code + terminal) in Emacs

I like using the following setup for development: +--------+---------------------------------+ | . | | | | Python or JS | | Dired+ | ...
1
vote
1answer
74 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?
2
votes
1answer
33 views

Non regex variant of dired-do-find-regexp-and-replace

Dired has the interactive function dired-do-find-regexp-and-replace which can be match based on the regexp you have passed and perform the replace. But I'm looking for non regex variant of dired-do-...
0
votes
1answer
39 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 ...
6
votes
4answers
1k views

Quickly jump to favorite folders

What I actually want I have deep folder structures, and often use a dozen folders pretty far down the directory tree. In Nautilus, I use bookmarks to get to them quickly. I want the same thing in ...
0
votes
0answers
21 views

How do I dired delete in helm?

I just installed Helm and it looks really cool. However, I don't understand how to use dired anymore. I'd usually C-x d to see my directory, then I could do operations like add or delete files. Now ...
52
votes
2answers
15k views

How to quickly copy/move file in Emacs Dired?

In Dired mode, I can m mark files and R to move them to a destination. Some times the destination path is too long. With the destination open in a split window, is there a way to move files quicker? ...
0
votes
1answer
90 views

How to define a custom function that runs a command twice?

In dired mode, 'm trying to make a function that runs dired-next-line twice and then bind to SPC so that I navigate files faster in dired mode. I tried to add this in my dired.el file but it didn't ...
1
vote
1answer
72 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 ...
6
votes
1answer
533 views

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

When I open a folder by pressing "Enter" it will open in the same window: This behavior is OK and basically what I expect. But when I try to open a folder by clicking with the left mouse button the ...
1
vote
0answers
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+ ...
3
votes
1answer
204 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 ...
1
vote
1answer
51 views

How to sort in Dired by size and extension and have directories listed first and full date/time details

I'm using the excelent dired-fixups.el by Dino Chiesa for sorting in Dired by size and extension (see here). The only gotcha is that I'd like to combine it with a fuller date/time description. Also, ...
0
votes
1answer
34 views

Using `dired-do-compress-to` with `tramp`

Within a eamcs -q session and in a tramp dired buffer and call dired-do-compress-to on a file, I got this eror zip I/O error: No such file or directory zip error: Could not create output file (/ssh:...
1
vote
1answer
30 views

How to replace strings including `.` (dot) as first character using dired-do-find-regexp-and-replace

(defun my-find-orgfiles () (interactive) (find-name-dired "." "*py")) (global-set-key (kbd "M-n") 'my-find-orgfiles) Than, t to toggle marked/unmarked files (thus marking them all, since none ...
0
votes
1answer
208 views

Using dired via tramp on a remote machine

Maybe I am missing something rather simple but I completely fail to use dired on a remote machine. I can connect via ssh directly without emacs and I can edited a file using Tramp on the remote ...
2
votes
1answer
129 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 ....
0
votes
0answers
26 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 ...
0
votes
1answer
64 views

How can I open dired with reversed sorting of name, and with the cursor on the first line?

I use the following initial code to open one om my frequently used folders: (global-set-key (kbd "C-6") (lambda() (interactive) (find-file (format "C:/Users/%s/notes" user-login-name) ))) ...
4
votes
1answer
308 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 ...
0
votes
0answers
33 views

Add custom project config loading via `.dir-local.el`

I have a custom config for a project which I would like to load whenever emacs is started from project's root directory. The custom config lies in path/to/project/emacs.d/custom-init.el. I have also ...
1
vote
0answers
22 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....
0
votes
1answer
84 views

C-x C-q wants to quit Emacs

I want to use C-x C-q to make the Dired buffer editable, however, this key combination seems to be bound to quitting Emacs for some reason. I did not bind this key combination somewhere in my config. ...
2
votes
1answer
45 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 ...
12
votes
2answers
4k views

Tramp/Dired transfers files inline over ssh instead of using scp externaly

I am using tramp via ssh to access remote files. For text files, this is working really well, but whenever I want to copy larger remote files to my local machine, tramp uses its slow inline method (...
1
vote
1answer
105 views

find files containing “Emacs”

I employed find within the current directory to find files containing "emacs" $ find . -type f -iname "*emacs*" | nl | tail -3 34 ./sources/tech/20190916 The Emacs Series Exploring ts.el.md ...
0
votes
0answers
12 views

After Filename Option Shell Command on Given File

How can be executed an shell command on given file with options AFTER the filename? Trying here to run convert ScramTree.pdf ScramTreeImg.png via ! on dired mode, but command runs minibuffer input ...
2
votes
2answers
59 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 -...
1
vote
1answer
32 views

How to tweak dired-create-empty-file to facilitate the easy creation of files

I currently have bound the command dired-create-empty-file to f7. Emacs then prompts me for a file name. When I press f7 I would like Emacs to automatically create an ORG file and automatically ...
1
vote
1answer
241 views

How to rename a file with dired with the current file name as default?

In the macOS Finder, I can rename a file or directory by pressing RET and the current value becomes the default for the new file name. This helps if I make a small change, such as adding a date at the ...
1
vote
2answers
48 views

advice-add FOR function dired-do-copy

I got a problem for an advice-add inside Dired's copy function (dired-do-copy). My object is it to filter all marked files/directories in Dired, which should be copied to an other location within ...
3
votes
1answer
27 views

is any way to show empty paths in Dired like com/domain/example/database as single item?

for example, Java/Scala sources have a convention that packages like com.domain.example.database should be represented as com/domain/example/database folder structure (and all dirs are empty except ...
0
votes
1answer
44 views

How to set the default of `truncate-lines` for dired buffers to `truncate`?

How can I set the default of truncate-lines for dired buffers to truncate? I.e. when I open a new dired buffer it should show the directory truncated and not wrapped into the next line.
2
votes
1answer
47 views

Can Dired query replace use regular expression to rename a group of files?

So I have long list of files that I'm trying to use regex to rename but, it looks like it does not take standard regular expressions. I’m sure I’m just doing this incorrectly. After entering dired ...
0
votes
2answers
58 views

How to navigate in a Dired buffer?

window 10, Emacs 26.1, Dired+ Suppose I open in Dired+ mode some folder: d:/TEMP/test_folder/folder2/ I need next: When press button "End" then go to the last file in the folder. Like this: When ...
0
votes
0answers
37 views

Why am I getting `max-specpdl-size` error on one markdown file when opening via projectile but not dired?

I am getting a max-specdl-size error on only one .markdown file. I have increased the size via (setq max-specpdl-size 50000) to test, and I still get the error. This does not happen on any other ....
1
vote
0answers
16 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:
2
votes
2answers
61 views

image-dired: Change thickness of cursor

On a hires screen I find it really hard to see on which image the cursor currently is, because the rectangle around the image is very thin. Is it possible to increase the line width of that rectangle? ...
2
votes
1answer
66 views

How to remove subdirectories inserted into the dired buffer with i?

Pressing i on a subdirectory in the dired mode inserts that directory in the buffer. How can I remove it from the buffer?
1
vote
0answers
54 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 ...
0
votes
0answers
20 views

Dired move file with quotation

When I do dired-do-copy on a file with a quotation for example "test"f.txt, I get the following error when copying/moving file with quotation symbols Copy ‘/home/user/Music/"test"f.txt’ to ‘/media/...
0
votes
0answers
26 views

Error in post-command-hook (ido-exhibit): (invalid-regexp “Trailing backslash”)

Windows 10, Emacs 26.1, Ido, Dired Suppose I'm in in Dired mode. I'm in folder d:/TEMP/test_cases/ And I want to jump to folder e:\BACKUP\mobile\my_backup\ The path is in kill-ring. So here steps: ...
4
votes
2answers
135 views

Count the total no. of lines for a set of marked files in dired

I would like to be able to return the total no. of lines for a set of marked files in dired. i.e. if I marked 3 text files: file 1 contains 100 lines file 2 contains 50 lines file 3 contains 60 ...
1
vote
1answer
203 views

How to drill back up a folder in Dired?

In Dired, I'm able to drill down folders with the key i, but how can I unfold a folder that was once opened, that is, go to its parent folder?
0
votes
0answers
23 views

Can image-dired track renamed files?

I would like to view images using image-dired, then rename them. What I do at the moment: Open image-dired with my directory of choice. Mark an image that I want to rename. In the corresponding dired+...
8
votes
1answer
1k views

Why can't I list the contents of Desktop on macos using dired?

When I do C-x C-f on ~/Desktop/ in macos Catalina, I get the following error. Listing directory failed but 'access-file' worked I can list the directory for just ~. I'm new to Emacs and know little ...
2
votes
1answer
142 views

can I use .dir-locals.el to set a default mode for files, and still allow dired?

I have a directory that is all little shell code snippets for being sourced. Tried creating an auto-mode-alist, that does not seem to be effective, so tried creating a .dir-locals.el thusly: ((nil . ...

1
2 3 4 5
8