Stack Exchange Network

Stack Exchange network consists of 174 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.

0
votes
1answer
34 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
31 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
47 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
21 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
28 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
14 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
15 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
58 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
45 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
72 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
48 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
41 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
41 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
25 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
100 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
60 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
51 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
84 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
67 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
90 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
33 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
54 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
18 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
70 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
29 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
34 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
38 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
63 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
274 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
62 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
230 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
138 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
66 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
163 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
58 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
67 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
166 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 ...
1
vote
1answer
44 views

Dired / Wdired: How to test whether a filename is relative / absolute

I am creating a dired-mode buffer with: (dired (directory-files-recursively default-directory "")) This gives me absolute paths for each file, which is great. I am still unsure how the default-...
4
votes
2answers
57 views

Subdirs in Dired: display relative paths

I've hacked something together for myself to hide/toggle columns of my choice in Dired and display what's left with a less obtrusive face. As a side effect this makes the width of Dired buffer small ...
4
votes
2answers
165 views

How to make sure I run Dired+

I have downloaded and put the dired+.el file into /Users/ri/.emacs.d/elisp and added the following code to the init file (add-to-list 'load-path "/Users/ri/.emacs.d/elisp") (require 'dired+) When ...
5
votes
1answer
419 views

Is it possible to load Dired+ automatically with use-package?

I'm trying to add dired+ to my init.el with use-package but I can't seem to find the name of dired+ on any of the package repositories ( marmalade, melpa or elpa ). I'd been able to add dired+ after ...
1
vote
1answer
41 views

Printing a list of folders which has been modified today

Is there any way to export a list of folder names which has been modified today using a dired mode or any other package on emacs
7
votes
5answers
1k 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), ...
0
votes
0answers
61 views

How can I set a directory buffer in one window to open files in another window?

The setup I am going for would look something like this: ------------------------------ | | | | | B | | | | | A |----...
1
vote
2answers
109 views

How can I use Regexp to rename files in Dired mode?

I've have some videos (.mp4) with subtitles files (.SRT) that I need to rename. These files have long names so I can only rename them manually. I've tried Python to rename them, but it fails. I've ...
2
votes
1answer
57 views

Rename full path folder in dired mode

Windows 10, Emacs 25.1, Dired+ Suppose I has folder d:\TEMP\test\com\myproject\android\common\ Here: I want in dired mode by one step to rename full path to net\newproject\iphone\data. So as ...
4
votes
1answer
172 views

Show git branch in dired modeline

I would like to see the git branch shown in the dired mode-line at least for the top directory of git projects. Anyone done this or know how to?
0
votes
1answer
242 views

prelude-ivy: How to select and open multiple files

I have installed Ivy (along with Swiper and Counsel) as part of Prelude by doing a (require 'prelude-ivy) in my prelude-modules.el file. It seems to work, but I am not able to figure out how to do ...