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
1
vote
1answer
15 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
29 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
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
33 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
36 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
71 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
23 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
34 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
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 ...
0
votes
0answers
34 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
37 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
62 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....
0
votes
1answer
35 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
114 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 ...
1
vote
1answer
36 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
284 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
69 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
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
51 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
52 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
75 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
39 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
1answer
76 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
56 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
21 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
28 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
146 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
244 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+...
9
votes
2answers
2k 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 ...
1
vote
0answers
36 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 ...
4
votes
2answers
117 views

Is it possible to have multiple *Find* buffers in emacs?

If I execute a M-x find-name-dired command the output is a *Find* buffer containing the results. However if I perform a subsequent find-name-dired the contents of the *Find* buffer are overwritten ...
0
votes
0answers
28 views

Why dired buffer is gone after open file?

dired+ emacs 26.1 suppose I open folder d:/temp/test_this in dired mode and here list of buffers (C-x C-b) OK. As you can see the buffer test_this is in the buffer's list. Nice. Now I open file 3....
1
vote
1answer
22 views

Why dired+ not save sort mode?

windows 10, Emacs 26.1, Dired+ Suppose I has 3 files and sort it by name in dired mode. Smt like this: OK. Now I sort it by date, press s Here result: OK. Now I edit file 3.txt and after save ...
1
vote
1answer
14 views

Why in diredp-dired-recent-files show folder in title?

Emacs 26.1 Dired+ I'm in folder d:/temp/test and use command "diredp-dired-recent-files" here steps: And here result: As you can see the frame's title is correct: Recently visited files Nice. ...
0
votes
0answers
39 views

Using find-name-dired on ms-windows in spacmacs not linking to full filename when using C-c l for org-store-link

How to get link to file when using find-name-dired on MS-Windows? I am using MS-Windows and spacemacs. I am use org mode files to manage information. I also have a directories with many reference ...
0
votes
1answer
52 views

In Dired, how can I color the names of files younger than 1 hour?

windows 10, Emacs 26.1 , Dired+ I install dired+ from here https://www.emacswiki.org/emacs/DiredPlus Here example of some dir in the dired+ mode Is it possible to change color of file names that ...
1
vote
1answer
133 views

How to format shell commands run from Dired?

I want to execute a formatted shell command on a file from within Dired. I am aware that I can use dired-do-shell-command to run a shell command on a selected file file by entering ! <command> ...
0
votes
1answer
238 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
2answers
79 views

Why in dired+ mode some text is strikethrough?

Windows 10, Emacs 26.1, Dired+ (download from here https://www.emacswiki.org/emacs/download/dired%2b.el) Open some directory: Here result: Why some text is strikethrough?
1
vote
1answer
30 views

Can't mark specific folder in all subfolders in dired mode

Emacs 26.1 Windows 10, Dired Show content of folder "myproject". All files and subfolders. M-x dired-maybe-insert-subdir (C-u i) -R and here result Nice. Now I want to mark only folder build %m ^...
0
votes
1answer
40 views

How delete folder named “build” in all subfolders?

Emacs 26.1, Dired+, Windows 10 Suppose I has the next dir tree: myproject myproject\app\ myproject\app\build myproject\app\src myproject\lib\build myproject\lib\src myproject\lib2\build myproject\...
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
135 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 ....
1
vote
1answer
78 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 ...
2
votes
1answer
150 views

How can I set color for listing executable files in Dired Mode?

Trying here to set color for executable files, as it is for ls command! How can I do that? I've already managed to set color for certains file extensions, using Diredful package, but couldn't do it ...

1
2 3 4 5
8