We’re rewarding the question askers & reputations are being recalculated! Read more.

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
0answers
21 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 ...
3
votes
2answers
74 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
21 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
17 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
8 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
11 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
43 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
33 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
48 views

C-x C-q wants to quit Emacs

I want to use C-x C-q to make the Dired buffer editable, however, this key combination seems to be bound to quitting Emacs for some reason. I did not bind this key combination somewhere in my config. ...
0
votes
0answers
34 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 ...
1
vote
2answers
41 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
25 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
32 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\...
1
vote
1answer
26 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? ...
0
votes
0answers
57 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 ....
0
votes
1answer
35 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
38 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
vote
1answer
69 views

Why so strange sort in dired mode?

windows 10, emacs 26.1, dired+ here myfolder in dired mode sort by name (by default): Now I want to sort by date (inverse mode). I press s and here result: why file new.txt is above two dots? The ...
1
vote
2answers
56 views

Copy all dirs exclude all subdirs with name “build”

emacs 26.1 dired+ I have dir my_dir. This dir contains 10 subdirs. In every of those dirs there are 2 subdirs: src build I need to copy in DIRED MODE all dirs and files from my_dir to my_dir2 and ...
0
votes
1answer
30 views

How can I open dired with reversed sorting of name, and with the cursor on the first line?

I use the following initial code to open one om my frequently used folders: (global-set-key (kbd "C-6") (lambda() (interactive) (find-file (format "C:/Users/%s/notes" user-login-name) ))) ...
1
vote
1answer
52 views

How can I start dired in omit mode?

I use the following code for including dired omit mode: (require 'dired-x) (setq dired-omit-files "^\\...+$") (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1))) ;(dired-omit-mode 1) When I ...
0
votes
1answer
19 views

Compare files in dired mode: Cannot operate on ‘.’ or ‘..’

windows 10 (64 bit) Emacs 26.1, Dired+ I need tool that can compare files by content with highlight different symbols. Example: As you can see I mark two files. Is it possible to compare this ...
0
votes
1answer
15 views

Remove the auto-generated marks from dired buffer

Upon invoking dired with C-x d, it display Five of the files have already been marked automatically , Consult with the manual of operation on files Strik U and * u to remove the mark but failed. ...
-1
votes
2answers
33 views

What tool can I use to compare files by content in dired mode? [closed]

windows 10 (64 bit) Emacs 26.1, Dired+ I need tool that can compare files by content with highlight different symbols. Example: As you can see I mark two files. Is it possible to compare this ...
3
votes
1answer
54 views

Enable follow-mode in dired

Upon working on org agenda, it's super convenient to employ (org-agenda-follow-mode) The Org Manual: Agenda Commands It display the original contents on other window instantly while scrolling ...
0
votes
0answers
30 views

How to have list of program on `dired-do-shell-command` with Emacs server started by systemd

I'm using Emacs as a server started by the systemd user unit. And on any dired buffer when i try to do dired-do-shell-command or dired-do-async-shell-command I cannot autocomplete any program and ...
2
votes
1answer
130 views

Chown with dired over Tramp, from Windows machine

I launch dired over Tramp (from Win machine to Linux server): C-x d /plink:user@server|su:root@server:/path-to-folder-controlled-by-root/ Then I type "O" to chown a folder, but I get chown not ...
0
votes
1answer
42 views

Show powerline git information in dired

Powerline shows git branch information for a buffer that are under version control vc-mode. Only when vc-mode is set for a buffer the Git branch information is displayed. When inside dired there is no ...
1
vote
0answers
53 views

Short key to run a binary in dired-mode

In dired-mode I can type ! to use the selected file as an argument for a command. For instance, if I type ! rm <RET> it will run the command rm filename. What I wanted is a short-key to run the ...
0
votes
0answers
16 views

Async Rsync Dired error on tramp file not found

I am trying to copy files from one directory on a remote computer to another directory on the same remote computer. Using Dired I can open up the two directories, mark the files I want to copy and ...
2
votes
1answer
36 views

Can flymake or flycheck mark in dired (or in buffer lists) files with errors?

It would be nice if, in addition to flymake/flycheck marking errors in particular files, they could somehow mark files with errors in dired (or maybe just in the open-buffers list). The goal would be ...
1
vote
0answers
43 views

opening org link in dired

[[D:/dev::line][code]] stores the link to my code directory. How can i used dired to open it in emacs. Currently with this code explorer opens the directory. I'm using Windows 7.
2
votes
1answer
81 views

can I use .dir-locals.el to set a default mode for files, and still allow dired?

I have a directory that is all little shell code snippets for being sourced. Tried creating an auto-mode-alist, that does not seem to be effective, so tried creating a .dir-locals.el thusly: ((nil . ...
2
votes
1answer
46 views

How to use `recover-session` and `dired-omit-mode` in Emacs 26 and lower?

Using Emacs 26.1, I have enabled dired-omit-mode globally with (add-hook 'dired-mode-hook #'dired-omit-mode). When using recover-session, I don't see any files. How to fix this? Creating a .dir-...
4
votes
1answer
34 views

Default file extension for `dired-do-rename`

I am wondering how to make renaming files in dired to use the current file extension as the default. For example, imagine I run dired-do-rename on the file foo.bar and then type foo2 and press Enter....
1
vote
1answer
52 views

How to return focus to dired window after killing buffer opened from dired?

Sometimes I use dired to view or edit several files in one folder, one after the other. Dired is open in one window, and I open the files in another window by typing o in dired. When I finish with one ...
0
votes
0answers
48 views

Force opening file in new buffer

Is there a way in emacs to open a file (or a dired directory) in a new buffer, even if there's a buffer with the same file (or directory)? find-file and find-alternate-file always return the open ...
1
vote
1answer
42 views

Search files in folder

Windows 10, Emacs 26.1 dired+ I want in dired mode find files by names, content Approach#1 - use external tools. What tools you can suggest? Approach#2 - use only built-in Emacs function on ...
3
votes
2answers
70 views

Is it possible to show all files in all subfolders in one buffer?

Emacs 26.1, Windows 10, dired+ Suppose I has folder with 2 subfolders. In every folders has files. Is it possible , to show all files in one buffers. Smt like this: P.S. If I use "i" (dired-maybe-...
0
votes
1answer
68 views

How to define a custom function that runs a command twice?

In dired mode, 'm trying to make a function that runs dired-next-line twice and then bind to SPC so that I navigate files faster in dired mode. I tried to add this in my dired.el file but it didn't ...
1
vote
1answer
416 views

How show hidden and system folder/files?

Emacs 26.1. , Dired+ Here content folder TraderMonitor in Total Commander: and here how look same folder (TraderMonitor) in Emacs, dired mode: How show hidden/system folders: .git .idea and file: ...
2
votes
1answer
107 views

How to revert a buffer using the “g” shortcut

I can refresh my dired buffer using M-x revert-buffer and I've seen multiple places that I can do this more easily using g but don't understand how that would be run. Does it mean M-x g or running g &...
0
votes
2answers
32 views

How to automatically enable a mode for only one specfic type of buffer?

I user dired to browse file, and I would like to use hl-line-mode which highlights the currents line, but I only want it to be enabled automatically when using dired
0
votes
0answers
50 views

Don't use completion text

When i am trying to rename a file in dired-mode, for just find a file with (C-x f), it uses auto-completion to help me out. Most of the time this is super useful. However when I am trying to rename a ...
2
votes
1answer
33 views

How to redisplay dired buffer after changing listing-switches

This sample code doesn't work: (defun toggle-hidden-in-dired () (interactive) (setq dired-listing-switches (if (equal dired-listing-switches "-l --group-directories-first") "-...
1
vote
1answer
56 views

How to hide all dired buffers in ibuffer?

I want to hide all Dired buffers as major mode in Ibuffer. But (add-to-list 'ibuffer-never-show-predicates "magit*") ibuffer-never-show-predicates accepts a regexp and a function. How can I hide ...
1
vote
1answer
44 views

Package to help display status of each git repo contained in a common directory

I have a directory and in the directory is a rather long list of git repositories. Is there a package or options where a dired listing of the directory would also add in the status of each git repo ...
1
vote
1answer
33 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 ...
1
vote
1answer
23 views

Is there a way to make dired buffers created by lists behave more like traditional dired?

For example, when doing: (dired '("custom-buffer" "~/.emacs.d" "/Volumes" "~/.bash_profile")) I cannot sort, and when changing a name of a file it will not reappear in the buffer. An additional ...
0
votes
0answers
90 views

Dired-sidebar displays icons twice

I installed dired-sidebar but for some reason, icons are displayed twice, it goes back to normal when I refresh it though with g . Code in init file: (use-package dired-sidebar :bind (("s-t" ...