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
1 answer
28 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 ...
1 vote
1 answer
83 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"...
0 votes
1 answer
292 views

Doom emacs dired +ranger not obeying evil-mode

I am using doom emacs and in my init file I have (dired +ranger) The problem is when I open dired, I cannot press tab to select for example. I have first to toggle off evil-mode. If I do, I lose all ...
4 votes
1 answer
192 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
1 answer
208 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
1 answer
655 views

Pseudo-terminal will not be allocated because stdin is not a terminal. ssh_askpass: exec(/usr/libexec/openssh/ssh-askpass): No such file or directory

CentOS 7, Emacs 27.1 Here content of file myFile.sh: ssh [email protected] So when in vterm mode I use this: ./myFile.sh then I success connect to the remote machine (ip = 10.111.11.111) by ...
0 votes
0 answers
12 views

Setting `scroll-conservatively` to 101 causes `dired` buffer can not be recentered when revert

When I set scroll-conservatively to 101 as recommended from many scrolling packages. But I find that in a dired buffer containing many files, revert-buffer (g) will not recenter the point to center ...
0 votes
1 answer
43 views

How can M-x locate results be shown in Dired?

I'm not really sure what's the best approach. What I'm trying to do is use org-attach-dired-to-subtree when I find something I'm looking for with M-x locate. That doesn't work, cause M-x locate ...
3 votes
5 answers
2k views

dired alternative to openwith: how to open file per extension?

openwith seems to kill replying in mu4e. Is there a similar/alternative solution for easy defining default apps per extensions in dired?
15 votes
2 answers
1k views

Display recursive folder sizes in-line in dired?

I'd like to display the recursive size (the value that would be reported by du) of folder contents in-line in the dired buffer as an additional column or in place of the directory file size. Is this ...
1 vote
2 answers
202 views

dired-do-delete fails to delete file

In Dired, with point on a file name, I invoke dired-do-delete and confirm. The line disappears, as it normally does when a file is deleted. But the file is not in fact deleted, as I can see by e.g. ...
2 votes
1 answer
187 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
1 answer
186 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: ...
0 votes
0 answers
35 views

dired-do-rename and last path in minibuffer

When attempting to move a file in Dired using dired-do-rename, the prompt in the minibuffer currently defaults to the directory from which the files are being moved. It would be beneficial if Dired ...
1 vote
2 answers
139 views

Read-only mode gets in the way when query-replacing text in multiple files

I am searching and replacing text within all marked files in a Dired buffer, as per this post: https://emacs.stackexchange.com/a/9497/37866 I am successful until the point where it finds the first ...
1 vote
1 answer
139 views

How do I customize the icons used in nerd-icons package

I'm new to emacs and installed the nerd-icons.el package along with the package nerd-icons dired. The problem is I don't like the icons set as default. Even though i've read the nerd-icons GitHub page,...
0 votes
1 answer
222 views

Searching in Dired for content in files while filtering files

From Dired, I'd like to be able to search for content pretty much like I do on my MAC Finder, while showing the files that match the criteria/regular expression (and no other files). I don't want the ...
2 votes
1 answer
359 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 ...
0 votes
1 answer
61 views

How do I hide dotfiles only in the home directory in dired buffers?

I would like to hide dotfiles only in the home directory in dired buffers, but I do not know how to achieve this. I have been trying with the following: (use-package dired :ensure nil :commands (...
2 votes
2 answers
72 views

Nordic characters rendered incorrectly in non-file buffers

I am having trouble with nordic characters (å, ä and ö) not rendering correctly in Emacs. In text files, they render correctly, but in dired and other non-file buffers (like counsel-find-file) they ...
0 votes
1 answer
41 views

diff two files in two windows

After creating a split window and using dired in each, how do I run diff to compare two files? I have looked but haven't found any clear explanation.
0 votes
1 answer
445 views

Why in sizes of files not show in human-readable format?

Linux Mint 20 Emacs 26.3 I install packaged dired-k And set this param in my init.el '(dired-k-human-readable t) But it not work in dired mode. Here example As you can see size of files not show ...
68 votes
4 answers
32k 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
1 answer
35 views

Emacs macro variables

Does Emacs have 'macro variables'? Midnight Commander allows the use of macro substitution expressions like %f %D %t which can be use when running commands. eg %f is the name of the current file in a ...
3 votes
1 answer
272 views

Deleting a file to ~/.Trash produces "File already exists..." if a file of that name is there [duplicate]

I have (setq trash-directory "~/.Trash") and (setq delete-by-moving-to-trash t) in .emacs to be able to have files moved to ~/.Trash via d and then x in dired-mode. (This is in macOS.) But ...
7 votes
5 answers
3k views

Open file from dired in the same window -- using the mouse

How do you configure emacs to open a file in the current window -- using the mouse -- when it is selected from a dired buffer? That is, when I open a directory and then select a file with the mouse ...
0 votes
1 answer
33 views

Can I add options to dired-rsync?

I recently installed dired-rsync which is exciting, but I immediately could not figure out how to add options when using it, like -a or -u, etc. Is it possible to use such options and if so, how?
0 votes
1 answer
95 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 ...
0 votes
1 answer
63 views

Faster way to go from directory bookmark to file heading?

I currently have a dired bookmark set to a directory. So in order to access a particular heading, the sequence is as follows: Bookmarks keybind, type initial letters of directory bookmark. (Dired ...
2 votes
5 answers
390 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 ...
2 votes
1 answer
550 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 ....
6 votes
3 answers
2k views

How to get ibuffer to use directory tree as filter groups

So I'm looking for some insight into how to customize my ibuffer window. I don't know much lisp but have a decent amount of emacs experience. I tried solving it based on some google searches: http://...
4 votes
1 answer
543 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 ...
15 votes
2 answers
6k 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 (...
2 votes
1 answer
116 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 ...
0 votes
1 answer
96 views

Dired shell command with parameters

I want to provide additional command line options to a command in dired marked with '!', eg how do I add '-V' to something like 'less'?
1 vote
0 answers
62 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 ...
0 votes
0 answers
18 views

How can emacs preview java jmod file like jar file from dired?

They are both zip file actually. I can preview jar file directly from dired, but not for jmod files. I tried adding jmod to dired-compress-file-suffixes, not working. (add-to-list 'dired-compress-...
1 vote
1 answer
48 views

Getting dired to open an xterm instance without waiting

I like to use dired-do-shell-command to open audio and video files in an independent terminal using the default command gnome-terminal -- mplayer * and this works great. But now I've changed my ...
1 vote
1 answer
97 views

How to save a register with a dired buffer?

I'm new to Emacs. I saw that you could have registers with special files. I really like that feature, and I was wondering if I could get the same functionality with a Dired buffer. For example, the ...
3 votes
1 answer
141 views

dired - view file in other window?

Is there some way to have two windows open with a dired buffer in one and a file view of current file in the other? v loads the file into the dired buffer. o loads the file into the other window but ...
0 votes
0 answers
174 views

Doom Emacs : Creating project using dired not working

I'm a new to emacs. So I just try to learn by using it. And What I'm trying to do is just making simple project. I make a directory in dired using + command. And inside that directory I create ....
1 vote
1 answer
56 views

How to ignore some directories with find-grep-dired?

When I search with find-grep-dired it also searches /Library/ directory and finds hundreds of cached links. Is there a way to ignore /Library/ directory? I found this : M-x customize-option <return&...
3 votes
3 answers
2k views

How to show MS Windows drives in dired?

I'm beginning to think that dired (+ extensions) is the file browser I've always been looking for. Under Windows, however, dired does not allow to switch to other drives easily. While most things are ...
0 votes
1 answer
60 views

How to bind dired-up-directory to key

I'm tryng to bind F6 to dired-up-directory using (global-set-key (kbd "<f6>") but when I use this in dired-mode, I get <f6> is undefined. What have I done wrong?
2 votes
1 answer
961 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
0 answers
254 views

error in process sentinel: Wrong type argument: integer-or-marker-p, nil

I get this error when I search dired with M-x find-name-dired: error in process sentinel: Wrong type argument: integer-or-marker-p, nil The search finds the files then ends with this error. I'm not ...
0 votes
0 answers
35 views

Is there a way to customize dired so that it exclusively shows the file size, as well as the month and day of creation, for each item in the listing?

I've added an image to provide visual clarity. The portion highlighted in red is the area I intend to keep. I'm aware that there's a method to completely remove all detailed information and display ...
0 votes
0 answers
27 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 ...
0 votes
1 answer
34 views

In elisp, how can I convert a string to an escaped string?

In DirEd, when I copy a filename, using C-u 0 w , it's copied fine, but I can't use this string in a shell command, cause it's not escaped. Is there a function to convert a string to an escaped ...

1
2 3 4 5
11