all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'harven'" <harven@free.fr>, <help-gnu-emacs@gnu.org>
Subject: RE: Dired like functionality on a custom text file
Date: Mon, 19 May 2008 13:38:46 -0700	[thread overview]
Message-ID: <007201c8b9f0$5679c690$c2b22382@us.oracle.com> (raw)
In-Reply-To: <6db01013-2953-4c52-b053-a6767caa035e@d77g2000hsb.googlegroups.com>

> > I have a situation where I have a lot of common files i need to edit
> > but they are all in various directories spread across my hard drive.
> > I was trying to come up with a way where I could make a 
> > text file that has all the paths to the files I commonly need and
> > somehow open that file into a dired like mode.  Is there anyway I
> > can do this, or even alternatively possibly easily pass the current
> > line my cursor is on in that file to the mini buffer when I put in
> > the visit command?
> 
> M-x find-name-dired prompts for the name of a directory
> and a filename wildcard, and fetch in a Dired buffer all
> files in the subdirectories matching the wildcard.
> 
> M-x find-grep-dired fetches files which contain strings matching a
> regular expression, recursively starting from a given directory.
> 
> Finally, dired-x is an extension to dired which provides a feature
> called "Virtual Dired". This feature puts a buffer with Dired-like
> contents in Dired mode. Have a look at the dired-x manual (C-h i m
> dired-x), which comes with a basic emacs install. You need first to
> enable dired-x with something like
>  (add-hook 'dired-load-hook  (lambda ()
>                  (load "dired-x")))

Here's another approach you might want to consider: 

1. Choose the files and subdirectories you want to access together. This is a
one-time operation, but you can modify the list later if you want.

2. Use that set of files and directories as completion candidates for file
operations.

You can do this with Icicles. See, for instance:
http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Support_for_Projects

There are links on that page for how to use such a defined set of files to do
various things, such as find and replace.





  reply	other threads:[~2008-05-19 20:38 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-19 18:38 Dired like functionality on a custom text file Jesse
2008-05-19 19:26 ` harven
2008-05-19 20:38   ` Drew Adams [this message]
2008-05-19 21:57 ` David Kastrup
2008-05-20  5:01 ` Dmitri Minaev
2008-05-20 11:16 ` Chris McMahan
2008-05-20 12:07 ` Bernardo Bacic
2008-05-20 15:03   ` reader
2008-05-21 11:39     ` Bernardo Bacic
2008-05-21 14:10       ` reader
     [not found]       ` <mailman.11963.1211387800.18990.help-gnu-emacs@gnu.org>
2008-05-24  5:39         ` Alan
2008-05-24 15:51           ` Drew Adams
2008-05-20 13:31 ` Drew Adams
2008-05-20 20:54   ` Drew Adams
2008-05-20 17:35 ` Ilya Zakharevich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='007201c8b9f0$5679c690$c2b22382@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=harven@free.fr \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.