Questions tagged [dired]

Dired is a mode for the Emacs text editor that allows users to conveniently edit files and directories on a file system. Use together with the [emacs] tag.

is a mode for the text editor that allows users to conveniently edit files and directories on a file system.

196 questions
0
votes
0 answers

Show progress and estimated time when copy/move files

Emacs 25.1, Dired+ When I copy files from one folder to another Emacs NOT show a progress. So I don't know when the process will be finish (not show estimated time). Does exist any package for this? Thanks.
Alexei
  • 14,350
  • 37
  • 121
  • 240
0
votes
0 answers

How to open unicode file name in Dired mode in Emacs

For normal file names, we can use ! (shell command) to open files in Dired mode in Emacs (newest version in MS Windows), but when unicode file names are met, it reports error that "[file_name]" is not recognized as an internal or external command,…
r ne
  • 621
  • 7
  • 19
0
votes
1 answer

Emacs Dired not working - Searching for program: no such file or directory, ls

When I open emacs, and type C-x C-f RET, the minibuffer says Searching for program: no such file or directory, ls This also happens when I press return after having typed any directory name. Dired doesn't work when i use C-x d either. Finding…
Vityou
  • 135
  • 12
0
votes
1 answer

open a zipped file in Dired

I'm looking for a way to open a file in a zipped file as Vim can do it with its default configuration. Dired just shows the list of zipped files but cannot open it while vim can do. Do you know how to make it work as Vim does? then could I get your…
windrg00
  • 457
  • 3
  • 9
0
votes
1 answer

Launch magit directly from ido in Emacs

I want to launch magit directly from ido. I.e., I want to launch ido with ido-find-file, navigate to the directory where I want to run magit, press some key combination like C-x g, and have ido quit and and magit open in that directory. I currently…
arvidj
  • 775
  • 5
  • 25
0
votes
0 answers

Emacs: most used directory highlighted with a background color

I'd like to have the most used (or default) directory highlighted with a background color while I'm using Dired mode in Emacs. I know that highlighting works with the hl-line library for current line but unfortunatly I don't know the lisp language…
0
votes
3 answers

problem in `delete-directory` with enabled `delete-by-removing-to-trash`

There is a strange behavior of delete-directory function with enabled flag delete-by-removing-to-trash. It deletes files one by one instead of applying move-file-to-trash to the directory. As a result emacs deletes big directories slowly and…
Andreo
  • 597
  • 5
  • 19
0
votes
1 answer

How to ignore .svn subdirectories when using dired

I need to replace a string across many files in a directory tree. So my plan is to use dired to first locate all the files that contain the string (with % g) and then replace the string with Q. In order to show all subdirectories in the tree I use…
Jasancos
  • 711
  • 1
  • 5
  • 11
0
votes
2 answers

Emacs -- modify `dired-mark` to prevent moving cursor to an empty line at eob

I have a custom function that gets dired marked file names (i.e., the names of every marked file) if more than one has been marked, or if only one, it gets the file name at point. A problem occurs whenever the cursor is in no-man's-land because…
lawlist
  • 13,099
  • 3
  • 49
  • 158
0
votes
1 answer

How to work with ido-vertical-mode inside dired-mode

For example, in the Dired window when I type C on a file called test123.csv under my D: drive, the minibuffer shows: Copy test123.csv to d:/ ->test123.csv hello.csv If I type RET now, Emacs will say that it can't copy the file since it already…
Daniel Wu
  • 5,853
  • 12
  • 42
  • 93
0
votes
2 answers

How to color c h and s files in dired mode?

I would like to color source header and assembly files in the dired mode and differently. Basically, when viewing the folder contents I want to color the files differently. I also would like a way to color files that have a specific word in them…
SFbay007
  • 1,917
  • 1
  • 20
  • 39
0
votes
1 answer

Allow dired-do-copy and dired-do-rename to create new dir on the fly

Does anyone have an emacs lisp hack that would allow the creation of a new directory on the fly during dired-do-copy or dired-do-rename? I understand that it can be created prior to running one of these two commands. Extra points for some type of…
Mikef
  • 1,572
  • 2
  • 10
  • 21
0
votes
1 answer

find-dired how to pass arguments?

I think that the format of this command changed since I've last used it, and now I'm not understanding what it expects of me. I'm getting an error: find: unknown predicate '-name=*.xml' The way it seem to be trying to invoke find is like this: find…
user797257
0
votes
3 answers

Make Emacs dired run program according to Windows registry

When I use Emacs dired, it opens all the files inside emacs. How to make it execute .exe files, open pdf in pdf viewer, etc. So it can't be a replacement to Windows explorer and total commander.
user4035
  • 22,508
  • 11
  • 59
  • 94
0
votes
1 answer

Case conversion of file name (regexp) in Emacs file browser

I have a similar problem to that addressed in Emacs: regular expression replacing to change case I want to use Emacs' file browser mode Dired to rename a file from 08 - hey you.mp3 to 08 - Hey you.mp3. I type % R to replace ^\([0-9]* -…
marcosaedro
  • 103
  • 4
1 2 3
13
14