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
29 views

`void-variable: Symbol’s value as variable is void: v` when deleting remote directory in dired

This recently started happening. Whenever I try to recursively delete any remote directory from dired (i.e. D over the dired entry), I get this after Emacs asks me for confirmation: void-variable: ...
0
votes
1answer
34 views

Search and Replace for a block on many lines in a dozen files

I have a a bunch of HTML files and in each of them I want to replace a fixed block of approx 30 lines with a one liner. Is there an Emacs command or package which makes this easier? Using e.g. dired-...
0
votes
3answers
69 views

How can I recursively find and replace in the current git repository

I am working inside a git-repo. Here I want to apply my search operation based on the root directory of the git repo that current buffer is open. Here I do: find-dired "~/my_project" ... in ...
1
vote
4answers
26 views

How to programmatically mark files in dired based on file modification time?

I'd like to write a bit of elisp to mark all files in a dired buffer that are "old": the files were last modified more than 10 days ago, say. What would be a good way to do that? It seems ...
0
votes
0answers
24 views

dired+: Not correct show marked files/dirs in doom-modeline

Linux Mint 20.2 Emacs 27.2 Install packages: dired, dired+, doom-modeline. If I use doom-modeline and when I mark files/dirs in mode line not correct show marked files. But if I'm not use dired+ - ...
1
vote
0answers
7 views

dired-icon not show icons in dired-subtree

Linux Mint 20 Emacs 27.1 package: dired, dired+, dired-icon dired-icon In folder Temp has: Folder: MyFolder Files: someFile.txt someFile2.txt In folder MyFolder has: Folders: mySubFolder_1 ...
1
vote
1answer
27 views

How not select dot and double dots in dired mode

Linux Mint 20 Emacs 27 package dired, dired+ In folder Downloads I has: one folder and two files. I want to delete all content of folder Downloads So as result on Dired mode I press t. Here result: ...
0
votes
1answer
15 views

How to show recent directories on separate lines in echo area?

Linux Mint 20, Emacs 27.2 Install package dired, dired+ I want to show recent directories visited in the minibuffer. Something like this: I tried this: (defun my-recent-dir () (interactive) ...
0
votes
1answer
22 views

How to see all recent directories?

Linux Mint 20 Emacs 27 package: dired, diredp (https://www.emacswiki.org/emacs/dired%2b.el) Jump to bookmark. Input Temp Press ENTER. As result open folder MyFolder Press ENTER. As result open ...
0
votes
1answer
18 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
0answers
12 views

dired--unhide: Buffer is read-only: #<buffer bufferName> when set bookmark in a dired buffer

When I use C-x r m in a Dired buffer to add this directory to my bookmark, it complains: dired--unhide: Buffer is read-only: # The enabled minor modes in this buffer include: Async-Bytecomp-Package ...
1
vote
2answers
190 views

Dired mode: Toggle show hidden files/folders by keyboard shortcut

I am using Emacs 27.1 (GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-03-28, modified by Debian) with "default" dired mode. There are no ...
3
votes
1answer
62 views

How can I set the ls program dired uses only for local directories

I have set the ls program dired uses via (setq insert-directory-program "gls")) (so that I can specify --group-directories-first in dired-listing-switches). Trouble is when I browse a ...
0
votes
1answer
36 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 ...
1
vote
1answer
75 views

How can I load Dired+ only if I actually use Dired?

I'm loading dired+ from a file ( as it has been removed from Melpa ), but it won't load when I try to make it conditional of opening a dired buffer. ;; ---- Dired + -------- ;; Loads Dired+ (use-...
0
votes
0answers
28 views

Plus symbols near some directory names in dired?

I've noticed in recent versions of emacs that some directoies in a dired listing have + "plus" symbols near them (see image). Would someone be so kind as to explain the meaning? I have not ...
0
votes
1answer
34 views

Git track flag in Dired

How can I show an additional column in Dired, where I can see if the file is tracked or not by git in the current branch?
1
vote
1answer
26 views

Can't unbind mouse button from keymap

This is more of an academic question than a practical one, as I've already worked around it. However, the curiosity / mystery is killing me. I'm about 10 days into emacs, so new to a lot of this. As I'...
1
vote
2answers
57 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 ...
1
vote
2answers
47 views

Open recent directories like Ido opens files

When I want to open a recent file, I use ido-find-find (C-x C-f) or ido-switch-buffer (C-x b) and type a few characters and Ido automatically finds the right file among the recent files I have visited....
2
votes
3answers
137 views

Copy a file content to clipboard with dired

I would like to emulate the fonctionnality of xclip in dired. That is, copying file content to clipboard (but without opening it in Emacs). Sadly, using dired-do-async-shell-command and xclip does not ...
0
votes
1answer
41 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 myuser@10.111.11.111 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
0answers
68 views

Not work C-t (tab-new) in the dired mode

Linux Mint 20, Emacs 27.2 Here my keybinding ;; You can run the command ‘tab-new’ with C-x t 2 (global-set-key (kbd "C-t") 'tab-new) (global-set-key (kbd "C-<tab>") 'tab-next)...
0
votes
2answers
56 views

How to remove gray color in Dired mode?

Linux Mint , Emacs 27.2 Dired, Dired+, Dired-k As a result here is the dired mode view As you can see, the names of files: to.do.org to.do.org_archive_2017 to.do.org_archive_2019 are gray. Can I ...
2
votes
1answer
66 views

How do I get all marked files from all Dired buffers?

I'm trying to write a function that opens all marked files externally in their default programs. I've tried using (dired-get-marked-files) to get the filepaths, but that only returns the marked files ...
1
vote
3answers
49 views

Append some text to multiple files in a directory

I want to append some text to multiple files in a directory. So, I opened the directory in dired buffer and selected the files. After this, is there any shortcut/ command to append some text to these ...
0
votes
1answer
75 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 ...
1
vote
1answer
47 views

Omit files in a certain directory

I'm trying to omit html files from a certain directory when using dired. For all directories I could do it like so; (setq dired-omit-files "\\.html$") I only want to hide html files from my ...
1
vote
1answer
14 views

Emacs: DiredSort : can't sort by size

Linux Mint 20.1 Emacs 26.1 Install dired+ package. Also install DiredSort from here https://www.emacswiki.org/emacs/DiredSort I try to sort by size. dired-sort-size But I get error on empty screen: ...
1
vote
0answers
41 views

dired-quick-sort - sort by name not working

Linux Mint 20.1 Emacs 26.3 In folder temp I have some files. Here is what it looks like (sort by name) in file manager Nemo Sort by name: how.build.txt is first. Nice. Now same folder in dired mode ...
0
votes
0answers
33 views

How to use Dired in multiple directories when open a project?

I'm using spacemacs on macOS. When I open a project with Dired, the first time it can list a target directory. But if I change the dired directory by using C-x d again, whenever I switch to an another ...
0
votes
1answer
104 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 ...
1
vote
1answer
32 views

Tramp with Dired produces unwanted //DIRED// line

Connected via Tramp to an old remote system, when I list a directory using Dired, I get: /plink:user@example.com:/tmp: total used in directory 549 available 114.7 MiB drwxrwxrwt 3 root ...
3
votes
3answers
78 views

Dired+ doesn’t work on old remote system

When connected to an old remote system with Tramp 2.4.3.27.1, the buffer shows no files. With tramp-verbose set to 6, I looked at the Tramp debug buffer, then found (anonymized): 13:27:21.657267 tramp-...
0
votes
0answers
12 views

Can't auto set "Group directories" (dired-quick-sort) when start Emacs

Linux Mint 20.1 Emacs 26.3 Install package: (require 'dired-quick-sort) (dired-quick-sort-setup) https://github.com/emacsmirror/dired-quick-sort And I want to show first directories in dired mode. To ...
0
votes
1answer
22 views

How auto set "diredc" mode when start Emacs?

Linux Mint 20.1 Emacs 26.3 I install package "diredc". https://github.com/Boruch-Baum/emacs-diredc To start in I use: M-x diredc Nice. It's work fine. But problem is when I restart Emacs I ...
0
votes
1answer
239 views

How to get package `dired-icon` to show icon images in Dired?

I installed the package dired-icon and restarted Emacs. I then ran M-x dired-icon-mode But no icon shows up in Dired mode and in the minibuffer the following message is shown: Opened text-plain.png ...
0
votes
1answer
31 views

How to disable confirmation for large files

When you recursively copy a large remote directory through Tramp, it will ask for confirmation for large files. Because of that, you can't leave the copy in the background, since the confirmation ...
1
vote
1answer
77 views

In dired how can I omit executables?

On Linux/macOS, using omit-mode in Dired is there a way to omit executables? Executables are files which have the Unix executable flag set and are then listed via ls -lF with an * after the filename. ...
0
votes
1answer
28 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
8 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
33 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
65 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
28 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
36 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
64 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
199 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
242 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
19 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
107 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 ...

1
2 3 4 5
9