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
1answer
16 views

How to make image-dired work on remote files?

I've tried sshand scp for tramp's method (both work for tramp), yet image-dired thumbnail creation fails Thumb could not be created for /scp:raspi:/media/pi/91D4-7E58//IMG_1.JPG: exited abnormally ...
0
votes
0answers
6 views

dired and some keyboard shortcuts don't work on Emacs on MacTerm's vt220 emulator

I use MacTerm 4.0 on OS X 10.7.5 and I use the vt220 option base emulator. When I open emacs -nw on it, when I press C-x C-c (to quit Emacs) it says C-x C-g is undefined When I type C-x C-s (to save ...
1
vote
1answer
31 views

Open 4 or any number of files in rectangles (dired open all in splits)

When you have a dired buffer open and it's listing 4 files in a directory, is there a way to 'open all' the files, and be able to see all the files as 4 split windows in emacs.
0
votes
1answer
43 views

.dir-locals for specific directory but not its children

How to set a directory local variable for a directory itself non-recursively? I don't want the variable set in .dir-locals.el affect the sub-directories. Edited: My use case is: I'd like to hide dot ...
0
votes
1answer
25 views

is there a shortcut to re-type the original filename and then edit it, when at the dired copy (C) minibuffer prompt

While in a dired buffer, after pressing C to copy a file, often the new filename you want is actually a variation of the original file name. Is there a easy way to get original file name in to the ...
1
vote
1answer
32 views

Prevent dired recenter buffer when reverting buffer

When a directory contains many files, more than the visible lines of the window, use end-of-buffer to go to end of buffer, then press g to revert-buffer, one can see the last line is recentered to the ...
0
votes
1answer
37 views

Can I read a macOS Extended Journaled Encrypted USB flash using Emacs 27 Dired?

Is there a way to browse a flash USB drive formatted in Mac OS Extended (Journaled, Encrypted) using Emacs 27 Dired? After I Enter a password to unlock the disk “XYZ”. I can browse the folders and the ...
1
vote
2answers
58 views

how to open a network folder in dired?

Unfortunately, I'm stuck on Windows. I have a network folder under this PC. Is there a way to navigate into it with dired without mounting it as another drive?
0
votes
1answer
70 views

dired by name - change directory and create new file

I want to open a new file in a different directory than the current one. Pressing C-x C-f -> I could enter a file name. But I don't. Pressing RET The directory listing (mode (dired by name)) comes ...
0
votes
0answers
16 views

How can I make dired display .tbz2 files

When using dired and I see a .tar.xz file I can visit this file in other window (<mouse-1>) and the file is a browsable tar archive. How do I get .tbz2 files to behave in the same way? I am ...
2
votes
1answer
74 views

Open a wildcard-link directly rather than through dired

In Org mode, when I open a link (C-c C-o) to a file such as file:something.pdf, the file is opened with my system PDF viewer. However, if the link contains a wildcard, such as file:3_o*.pdf, Emacs ...
0
votes
0answers
26 views

Emacs on Windows. Dired - no sorting. Unrecognized symbols

Set up Doom Emacs on windows. Works fine but in Dired i have unrecognized symbols and also in org-capture. Sorting in dired does not work either. Any ideas? Latest Emacs.
1
vote
1answer
37 views

Which `ls` program is used when running dired over tramp?

How does dired determine which ls program to use when running over tramp? I couldn't find it anywhere in the document. If it is insert-directory-program, what would it do if the path doesn't exist on ...
0
votes
0answers
13 views

How to make directed-subtree-cycle ignore the specified file?

I'm using dired harks https://github.com/Fuco1/dired-hacks. I've used directed omit to ignore files. But when I use dired-subtree, dired-subtree-cycle expansion can't ignore omit files in real time. ...
2
votes
3answers
150 views

How to duplicate a file in Dired?

Let's say I have the following file shown in Windows File Explorer: If I enter C-c C-v to copy and paste the file, the file is duplicated and automatically given a name: We can repeat this to get ...
0
votes
0answers
28 views

How to delete symlinks in Dired?

Attempting to delete a symlink in Dired gave me an unexpected result: the target got deleted. I have lots of Lisp code, and that may be a bug in some Lisp code that is not currently part of Emacs. ...
2
votes
2answers
170 views

How to open image files with an external application in Dired?

Linux Mint 19, Emacs 26.1 I has different app to show image.Like Drawing, Image Viewer, XnView. And from Nemo file manager I success open any images by this app. Nice. But I want to open image in ...
0
votes
1answer
40 views

dired: copy a symlink'd file

dired-do-copy copies a symlink as a symlink. Sometimes I want to copy the actual file of a symlink, not make a copy of the symlink. Is there already a way to do that? I can write some elisp code but ...
1
vote
1answer
35 views

How to disable “/” 's default behavior on the F interactive mode?

I use interactive mode with Ivy and Dired for interactively creating new files, like so: (evil-local-set-key 'normal (kbd "t") (lambda (file) (...
1
vote
1answer
29 views

How to revert Dired drag and drop for dirs to old behavior?

When I drag and drop a directory to Dired in Emacs 26.3, it copies the directory (and its contents) to the directory that Emacs is showing. This is like the behavior in MS Windows explorer. I don't ...
0
votes
1answer
56 views

Prevent dired-find-alternate-file from killing emacsclient

When visiting a folder with emacsclient, for example through emacsclient ., using dired, opening a folder using a will cause emacsclient to terminate. I believe this is because a, bound to dired-find-...
0
votes
0answers
27 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
42 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 ...
2
votes
1answer
43 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-...
1
vote
1answer
92 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+ | ...
0
votes
0answers
44 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 ...
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+ ...
1
vote
1answer
72 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
71 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 ...
0
votes
0answers
61 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
0answers
47 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
1answer
224 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, ...
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....
1
vote
1answer
45 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
166 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
13 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 ...
1
vote
1answer
50 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 ...
3
votes
1answer
744 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 ...
3
votes
2answers
88 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 -...
3
votes
1answer
31 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
72 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
78 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
151 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
56 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
21 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:
3
votes
1answer
149 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
62 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
23 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/...
5
votes
3answers
245 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 ...
2
votes
1answer
673 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?

1
2 3 4 5
8