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
2
votes
2answers
154 views

Dired: hide “Omitted N lines” message

I have these settings for dired (setq-default dired-omit-files-p t) (setq dired-omit-files (concat dired-omit-files "\\|^\\..+$")) I was wondering if it is possible to hide/disable the message ...
2
votes
2answers
346 views

Programmatically add files to existing Dired buffer

I have an existing dired buffer created of arbitrary files (basically as described here). How could I add additional files to this existing buffer? The files may, or may not, be in the same directory ...
1
vote
1answer
192 views

Drag the weblink of a file to a dired folder to save in that folder

Assume that I am visiting a folder (directory) on my system by M-x dired in Emacs. Also assume that I am visiting a webpage like http://www.gnu.org/software/emacs/manual/pdf/ by the default web ...
4
votes
3answers
498 views

Dired: can't create a regexp to hide all the necessary files

I read the following article: http://qerub.se/hiding-hidden-files-in-emacs-dired about hiding certain files in dired mode. I decided to hide more files and added a shortcut Alt-q, that will toggle the ...
0
votes
0answers
167 views

What's the mode hook for dired's minibuffer?

Starting dired with M-x dired and hitting M-x dired-create-directory I am now in a mini-buffer. Which mode-hook do I use to set a keybinding for the mini-buffer?
1
vote
1answer
241 views

Link to password-protected FTP server in org-mode

I can't figure out the correct syntax for a link to a password-protected FTP site. I want to insert a link in org-mode, which opens a remote FTP server at a given directory in dired. When I try /...
5
votes
1answer
773 views

Why cannot thumbnails be created by image-dired?

when I view png images in Dired-mode there is no problem but when I try to view the thumbnail of it (C-t d), it fails and throws this error: could not create thumb of <filename>. M-: of ...
7
votes
1answer
179 views

Is it possible to open .iso file in emacs dired?

When I open .iso file in dired, I have to mount it a temp folder mount -t iso9660 foo.iso temp then navigate to that folder, read the files. Is it possible to open .iso file in dired directly? (...
8
votes
3answers
651 views

Search and replace through a multifile project in AUCTeX?

I am about to adopt Emacs to be the only editor I use in all what I am writing including LaTeX documents. I came from WYSIWYG editor which served that purpose fairly nice, namely TexStudio or TXS for ...
4
votes
1answer
460 views

Openwith doesn't work in dired

Here is my openwith settings: (require 'openwith) (setq openwith-associations '(("\\.mov\\'" "smplayer" (file)))) (openwith-mode t) When I press enter in dired mode on a .mov file, it still open it ...
6
votes
3answers
909 views

How to view files ordered by extension in dired?

Instead of viewing dired buffers with files sorted by name, I want to view it with directories at the top followed by files grouped by extension (and then filename). Is there any package to install to ...
11
votes
3answers
581 views

Sort file names (numbered) in dired

When Dired sorts files by name, it sorts in alphabetical order. That's fine with letters; however, when the file names start with numbers, it would be better to sort in numerical value. Example: ...
7
votes
1answer
512 views

How can I add default shell commands for various file types?

When I use ! on a *.tar.bz2 file in Dired, I'm presented with the following prompt: ! on WANem_3.0_Beta2.tar.bz2: {3 guesses} [bunzip2 -c * | tar xvf -] -!- How can I add similar functionality for ...
3
votes
1answer
686 views

Helm-mode-dired-do-rename change name of file to a prefix of itself

Say I have a file named foo in directory bar. I also have helm-mode enabled and am trying to rename foo to fo through dired. Rename here ends up opening helm-mode-dired-do-rename and on typing fo, the ...
3
votes
1answer
250 views

Tell Dired to ignore file-at-point when invoking `ido-find-file` (`C-x C-f` in Ido mode)

I have discovered that a recent update to some of my emacs packages have caused C-x C-f while on a dired file to perform some operation on the entire file before prompting me for other files/...
2
votes
2answers
230 views

Dired show specific files in default omit-mode

I'm omitting certain files in dired mode using this hook: (add-hook 'dired-mode-hook (lambda () (dired-omit-mode 1))) Is it possible for me to display parent directory .. in the omit-mode ?
9
votes
2answers
668 views

How can I create a dired buffer listing all open files?

I have a mechanism for burning items to disc from a dired buffer. Unfortunately, the file's I've patched are strewn accross the file system. How can I create a dired buffer from all open files?
4
votes
1answer
453 views

Invoking “dired+”

This is superficially similar to a question I asked here but I think the answer might be different. I'm trying to use dired+ and highlight but I don't seem to be getting the full functionality. When ...
3
votes
1answer
168 views

Composing a regexp to highlight folder extensions differently

I am having difficulties composing a regexp that will highlight certain folder extensions -- including the preceding dot -- with colors that are different than the rest of the folder -- e.g., .app ...
10
votes
3answers
483 views

Get all filenames in current Dired buffer with Elisp

As the title suggests, how do I get all the file entries in a Dired buffer using Elisp?
1
vote
1answer
233 views

Elisp: Added one key-binding to dired-mode and lost basic dired functionality

I wanted an alternative to the awful C-^ shortcut for moving up one directory so I added the following to init file: (defun dc/dired-mode-keys () "User defined keys for dired mode." (...
1
vote
2answers
127 views

Remove entries in Dired buffer without deleting actual underlying objects

Is there a way to do this for both non-Elisp and Elisp? For Elisp, the only thing I can think of is to create a new Dired buffer from a new list of files, but is there a better way? Note: I want to ...
10
votes
1answer
587 views

How to use Dired marked files as arguments to arbitrary Emacs Lisp functions?

Dired lets me mark files and pass their names as arguments to arbitrary shell commands. I would like a way to supply the marked names as arguments to Emacs Lisp functions, either built-in or those I ...
10
votes
4answers
3k views

Recursively open files matching regexp in marked directories

Generally speaking, I would like to be able to open all files within a given set of directories (and their subdirectories) where the filename matches a given regexp. For example /home/nispio/...
4
votes
3answers
755 views

find-grep-dired equivalents for ack and ag

Is there an equivalent find-grep-dired using ack or ag? With the ability to specify the directory where the search starts? The Dired output itself is not so important (in fact I prefer the ack-mode ...
5
votes
2answers
859 views

Why is dired-find-alternate-file considered confusing?

Pressing a in a dired buffer gives me a warning: [...] disabled command dired-find-alternate-file. It is disabled because new users find it confusing. As far as I can tell, it just opens the ...
1
vote
2answers
263 views

dired: is file under point local or remote?

In a dired buffer, how can I determine whether the file under the point, i.e. (dired-get-file-for-visit), is local or remote? Is there something like (dired-local-file-p) or maybe (tramp-local-file-p ...
6
votes
2answers
541 views

Stop dired opening second window of already open directory

When I open a directory using dired and there is already the same directory opened in dired, a second one is opened with <2>. How can I inhibit this creation of the duplicate window and switch ...
14
votes
1answer
315 views

In dired buffers, place point on the most important file of that directory

90% of the time I visit a directory in Emacs, the first thing I do is move point to a specific file and open it. A lot of times, the file I need to open is very predictable. For instance: If there ...
3
votes
1answer
289 views

Is it possible to sort dired tabs in tab bar-mode by directory structure?

I am using tabbar-mode and I love it. I have only one thing which is irritating me: the sorting order of tabs of fired windows. As in other modes, they seem to be sorted by time opened. But in case ...

1
4 5 6 7
8