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
27 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
27 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
20 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
40 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
39 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
117 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
29 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
52 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
52 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
55 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
40 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
46 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
36 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
13 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
38 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
29 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
76 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
71 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
11 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
26 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
72 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
25 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
7 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
32 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
58 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
34 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
52 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
145 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
167 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
18 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
97 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
28 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
43 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
14 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
254 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
39 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
281 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
55 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
42 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
34 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
75 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
34 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
46 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
54 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
116 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
64 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
2 3 4 5
9