Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
1answer
55 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
29 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
28 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
20 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
38 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
31 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
22 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
21 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
29 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" ...
2
votes
1answer
38 views

Custom comment in dired

I create around 50 folders in a day. I use dired. I need to add custom comments such as New (N), old (o) and Review (R) to analyse my days work. Is adding the comments in dired possible?
4
votes
1answer
48 views

Mark files whose name starts by a given prefix

I'm using Dired+. In folder1 I have 200 files. 30 files start with 15_02_xxx, 46 files start with 16_02_xxx and the rest have other names. I want to copy from folder folder1 to folder2 only files ...
0
votes
1answer
41 views

Dired: How exclude dot from sort

Emacs 26.1, Windows 10. Dired+ Here some folder: I want to reverse sort. So I press s And here result: I don't want to sort symbols: dot and 2 dots. I want to sort ONLY file names. Is it ...
1
vote
0answers
46 views

org-attach from a Dired buffer

I want to be able to attach files to a sub-tree from a Dired buffer. The org-mode manual gives instructions on how to do this in the link below: https://orgmode.org/manual/Attachments.html At the ...
2
votes
2answers
50 views

Rename file from space to underscore in dired just the filename. Xah function for this also renames all parent directories

I found this function by xah to do this but it also looks at the parent directories. Ideally, this would just look at the filename not including the parent name or parent directories. Something along ...
0
votes
1answer
28 views

helm-mode-dired folder name completion selection without buffer opening

I use dired with helm a lot. Let's say I want to go to /foo/bar/baz folder. I press C-x d to start minibuffer prompt for directory. I type /f and I get 5 suggestions. When I C-n to the one that I need ...
2
votes
1answer
29 views

Viewing the number of words in org or text files in one of the details columns in Emacs Dired

Is there a way to display the number of words in org or text files in one of the details columns in Dired? This would save having to open each file individually and count the words by selecting the ...
1
vote
2answers
22 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 ...
1
vote
2answers
25 views

Unbind CUA <C-return> key only in dired mode

Goal: unbind <C-return> key ONLY in dired mode in order to rebind it to dired-w32explore. My configuration is using use-package with something like this: (use-package dired :init (unbind-...
4
votes
1answer
77 views

Overwriting files in an emacs dired buffer using move or copy

When copying or moving a file/files in a dired buffer sometimes the file already exists in the location one is moving or copying to. Emacs then prompts the user and asks whether to "overwrite" the ...
0
votes
0answers
52 views

How quick jump to desire folder in dired mode?

windows 10, Emacs 26.1 Suppose I open folder test in dired mode. Smt like this: Suppose in kill-ring I has full path to another folder.E.g. d:/dev/tests/wiremock/ Now I want quick jump to d:/dev/...
2
votes
1answer
89 views

Emacs mark and copy/move to buffers or bookmarked directories

Is there a way to use bookmarks or the buffer list of open buffers to efficiently copy/move marked files/directories to another directory? As an example, imagine I want to copy the files foo.txt and ...
1
vote
1answer
63 views

Tool to work with archive?

Windows 10, Emacs 26.1 I need the archive tool that in dired mode that can: work with many archive: zip, 7z, gzip and so on create archive from selected files in dired mode and folders (with ...
0
votes
1answer
45 views

How open all folders only in one buffer in dired mode? [duplicate]

Windows 10, Emacs 26.1 When in dired mode when I press Enter over folder it's open in separate buffer. So after input in 10 folder the Emacs open 10 buffers. I know about press "a". But it not ...
1
vote
1answer
89 views

Dired: How to find all files under a directory that match a glob pattern (wildcards)?

Emacs 26.1, Windows 10 In my directory: d:/TEMP/test/ I has 2 text files. Also in subdirectories I has 2 text files. If I want to find all files in directory d:/TEMP/test/ I do: C-x d d:/TEMP/test/*...
0
votes
0answers
28 views

How quick search folder/file only by letters only?

Emacs 26.1, Window 10 If I want to find in dired mode some file/folder I : C-s Input file/folder name Here result: OK. It's work. But it slow. Is it possible to search file/folder only by input ...
1
vote
2answers
132 views

Disable ivy for find-file

Is it possible to disable ivy-mode for file prompts? In a past I used find-file to copy current file name or path to file. dired-do-rename also is broken by Ivy: no default completion for current ...
1
vote
2answers
81 views

dired-hide-details show size and date [duplicate]

I can't see that there is anyway in dired to hide permissions and ownership, but show size and date. As the only user on the system and using a version control system, my files generally belong to me ...
0
votes
1answer
67 views

Dired: File open using external viewers, based on filetype, and without prompting

When I hit RETURN on a filename in Dired, I'd like Emacs to automatically do one of several things, depending on the file's type: 1 - If it's a text file, I'd like to open the file in a new buffer in ...
1
vote
1answer
88 views

How can I open 'dired' mode from any buffer by ONE hotkey?

I am using Windows 10 and Emacs 26.1. Suppose I open some file: And now I want fast open dired mode. The result must be like this: I want to do this by ONE hotkey direct from a buffer. E.g. C-x j. ...
0
votes
1answer
87 views

How to show details initially in Dired mode?

windows 10, emacs 26.1 Here dired in summary mode: If I want to show detail I press ( and here result: Nice. But I want always to show dired in details. So I set this variable: '(global-dired-...
3
votes
3answers
94 views

Keyboard macros or command for quick refiling using dired or similar

I scan all the mail (not email, but good ol' mail) I receive and have these saved as PDF files into a directory, which we think of as an inbox. I would like to find a workflow to quickly refile these ...
0
votes
1answer
39 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 '...
1
vote
1answer
63 views

How run bat, exe files?

Windows 10 (64 bit), Emacs 26.1 Here my init.el (require 'openwith) ;; Settings for package "openwith" (when (require 'openwith nil 'noerror) (setq openwith-associations (list (list (...
0
votes
0answers
22 views

Why “dired-jump” open folder in dired mode with split mode?

windows 10 (64 bit), Emacs 25.1, dired+ I open my init.el. The I press C-x C-j (dired-jump) as result open folder d:/Programs/Emacs/.emacs.d/" in dired mode with split vertically. Why? I need to ...
0
votes
0answers
26 views

Jump to bookmars - how show only last folder?

windows 10, emacs 26.1 In my init.el (diredp-toggle-find-file-reuse-dir 1) As result when I press Enter in helm-mini buffer show only last opened folder. Nice. This exactly what I need. But... ...
0
votes
2answers
78 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 ...
0
votes
0answers
30 views

Russian file names problem on linux-mint

On my system, there are files and folders with russian file names. However, in dired buffers and filename complations they are garbled (as mojitake). The problem is compounded by the fact that even ...
0
votes
0answers
39 views

Advance work with archive (e.g. zip) in Dired+ mode

Windows 10, Emacs 25.1, Dired+ If I want to work with archive (e.g. zip) I use Total Commander. It's has many capabilities to work with many type of archives: zip, 7z, rar, gz, tar and so on. Here ...
3
votes
0answers
43 views

Switch between term and shell keeping directory

I am a beginner user of emacs so please answer being aware of this. I use dired to connect to a remote computer and navigate directories. I sometimes want to go to a shell or terminal on the remote ...
3
votes
1answer
67 views

Move point to beginning of file name in WDired

Example: -rw-rw-r-- 1 bs bs 20598 Jul 28 14:55 I-am-a-file.txt ^(cursor here) A magic shortcut key is pressed, then: -rw-rw-r-- 1 bs bs 20598 Jul 28 14:...
1
vote
0answers
33 views

Folder navigation on remote windows machine can't see folders with spaces

I've been trying to navigate folder structures on a remote Windows machine with Cygwin installed, but I can't seem to navigate to folders which contain a space in them. Emacs claims that "File no ...
3
votes
2answers
383 views

Dired: Open files by external application in Linux

I want to open several types of files in Dired by different external applications. For example: .doc files with LibreOffice .pdf files with evince .jpg files with pinta etc... How do i configure ...
0
votes
1answer
67 views

Add dired buffers to evil jump list

I want dired buffers to be included in jump list so I can visit them with Ctrl-i and Ctrl-o. One possible catch is that My Ctrl-x d binding is taken by ido-dired. What I've tried so far (without ...
0
votes
2answers
272 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
3answers
169 views

how open xlsx file in excel

(On MacOS, emacsclient in -nw mode ) when point is at a xlsx file in a dired buffer, how can I open the xlsx file with MS-Excel. I have Excel installed in the Mac. and the xlsx file extension is ...
0
votes
1answer
68 views

Updating `dired-directory` after renaming a file

Q:   I have a list of strings: '("apple" "pear" "peach" "nectarine" "watermelon"). How can I replace "peach" with "plum" and maintain the same order of fruits?  [CAVEAT: The list may be very long ...
3
votes
1answer
184 views

Splitting window vertically (rather than horizontally) when searching in Dired

My Emacs Dired window is wider than it is tall. After marking some files (say %m *.cpp) in Dired and running M-x dired-do-find-regexp <REGEXP> (A), I find myself in split-window-below (ex split-...
0
votes
0answers
73 views

Re-map evil-commentary key in dired mode

I am trying to re-map a key in evil-mode/evil-commentary-mode when in dired-mode. I tried to add a hook to dired-mode to disable the minor commentary mode, but it disables it for other major modes as ...
0
votes
1answer
75 views

Emacs Dired `C-x C-j` opens a new frame instead of a new window

I am using Aquamacs 3.3 GNU Emacs 25.1.1 and Dired+. Sometimes the key sequence C-x C-j opens the Dired buffer in a new frame instead of a new tab in the running frame. I want the behaviour that the ...
6
votes
1answer
217 views

Follow symlinked directories in Dired

On a Linux machine I symlink some directories into my home directory like this: /home/mrdarcy: total used in directory 231 available 520120 drwxrwxr-x 3 4k 04-30 18:16 bin drwxr-xr-x 2 4k ...