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
1answer
63 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 ...
0
votes
1answer
21 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
0answers
34 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
23 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? ...
3
votes
1answer
158 views

Dired+. Autorefresh after copy files

Windows 10, Emacs 25.1, Dired+. I copy file from one folder to another. Here screens: After copy I get the next result: As you can see the bottom buffer is not refresh. So I need to go to bottom ...
2
votes
1answer
32 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") "-...
0
votes
3answers
101 views

dired+ not open in same buffer

Windows 10 (64 bit), Emacs 26.1, dired+-20170818.1411 I want (in dired mode) to open all folders in ONE buffer when press Enter. So in my init.el (diredp-toggle-find-file-reuse-dir 1) But it not ...
2
votes
2answers
946 views

(Evil) “General” leader key (SPC) not working in some modes (dired, *Messages*)

I use Evil, and I'm using the General package to set my custom keybindings. I'm using SPC as a leader key. The trouble is, I find that SPC is not interpreted as my leader key in some modes, namely ...
0
votes
1answer
25 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) ))) ...
3
votes
1answer
204 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 ...
2
votes
1answer
29 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
30 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
47 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
55 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 ...
2
votes
1answer
71 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 . ...
1
vote
1answer
38 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 ...
3
votes
1answer
50 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
1answer
18 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 ...
-1
votes
2answers
31 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 ...
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. ...
0
votes
0answers
29 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
123 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
35 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
48 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 ...
1
vote
1answer
139 views

Quicklook in dired-mode using a process/sentinel with external viewer

In dired-mode, I use an external quicklook tool on OSX called qlmanage, which pops open a window displaying a human readable image of the file with mouse scrolling capabilities. If I hit the space ...
0
votes
0answers
11 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
34 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
42 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.
1
vote
2answers
30 views

advice-add FOR function dired-do-copy

I got a problem for an advice-add inside Dired's copy function (dired-do-copy). My object is it to filter all marked files/directories in Dired, which should be copied to an other location within ...
3
votes
2answers
399 views

How show size in KB in dired mode?

Windows 10 (64 bit), Emacs 25.1, package dired+. In dired mode files size show in bytes. But I want to show in KB.
2
votes
1answer
30 views

How to use `recover-session` and `dired-omit-mode`?

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-locals.el containing ((...
4
votes
1answer
27 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
51 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 ...
2
votes
1answer
122 views

How to make Dired sort on special characters in the beginning of file or folder names?

In Windows File Explorer (FE) I can give a file or folder a name with a special character as the first character, and thereby make them move on top when sorting the files alphabetically. For instance, ...
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
40 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
64 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
3answers
395 views

Project management in projectile or other, like Sublime Text's projects

Ever since I first started using Emacs (Spacemacs) a few months ago I've been trying to set up a sane multi-project workflow. I got the single project workflow going by having Emacs start up into what ...
1
vote
1answer
237 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: ...
9
votes
6answers
2k views

Simple ways to copy/paste files and directories between dired buffers

Is there a simple M-w C-y approach to copy paste files and directories between two dired buffers? I mean marking some items (files and buffer) by m then copying them by M-w (or another shortcut), ...
3
votes
2answers
289 views

Dired reuse buffer on mouse click

I am currently using the diredp-toggle-find-file-reuse-dir feature of Dired+ so that selecting a directory in a dired buffer opens the directory in the current buffer as described here. However, it ...
2
votes
1answer
94 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
31 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
46 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 ...
0
votes
1answer
52 views

Dired buffer's cursor change of behavior in dired+

I have in the past been using (require 'dired) (require 'dired-x) quite happily. Recently I've been even happier after switching to (require 'dired) (require 'dired-x) (require 'dired+) (require '...
18
votes
2answers
2k views

Current path in Dired or Dired+ to clipboard

Say we have a Dired buffer open on some directory. How can I send the directory path to the clipboard? Also, how can I do the same when the Dired cursor is on a specific file, without opening the ...
1
vote
1answer
52 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 ...
8
votes
4answers
1k views

How can I run a keyboard macro in selected buffers from Ibuffer or selected files from dired?

If I have to do some variable name refactoring, I use ag and multiple-cursors. But when I have to do some code block removal/addition/moving, I use keyboard macros. But I need to switch to each ...
2
votes
2answers
169 views

Find files like in Nautilus' search

I occasionally find myself using Nautilus instead of dired to search for files and would like to change that. When looking for a file, I often don't know the capitalization of its name which is why I ...
1
vote
1answer
43 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 ...