unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Andreas Politz'" <politza@fh-trier.de>, <help-gnu-emacs@gnu.org>
Subject: RE: viewing random list of files in dired
Date: Sun, 18 Jan 2009 09:00:46 -0800	[thread overview]
Message-ID: <006601c9798e$4f51af00$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <005b01c97988$00b8e440$0200a8c0@us.oracle.com>

> > >> is it possible to view a random list of files with dired ?
> > >>
> > >> What I really want is to examine a couple 100 of images from
> > >> different directories as thumbnails with associated filename.
> > >> The names come from the command line. None of the programs I
> > >> have tried (gthumb,gqview,xzgv,feh) can do it.
> ...
> > By random I ment that the files have no particular common property
> > (like coming from the same directory).
> > Creating links in a new directory seems to be the best bet. After
> > the frustration from trying 5 different programs settled down, I
> > modified dired-image to accept a list of files. While the results
> > are pleasing, it just takes to long for > 1000 files.
> 
> Yes, and you don't need to create symlinks or otherwise 
> modify your file system.
> 
> If you use Icicles, you can define a set of arbitrary file or 
> directory names and later open Dired for just that set. You can
> save the set persistently, if you like.
> 
> You can create the list of file names any way you like - it's 
> just a list of names. The names could originally "come from the
> command line", for instance. 
> 
> You can also create or add to such a set of file names using 
> the files that are marked in Dired buffers.
> 
> http://www.emacswiki.org/emacs/Icicles_-_Dired_Enhancements


I should add that you can also do this without Icicles - Icicles just makes
things easier.

Function `dired' will accept a list of file names as its first argument. That is
the key here. This is all you need, to open Dired using a list `file-names':

(dired (cons (generate-new-buffer-name "My Dired")
             (nreverse (mapcar (lambda (file)
                                 (if (file-name-absolute-p file)
                                     (expand-file-name file)
                                   file))
                               file-names))))






  reply	other threads:[~2009-01-18 17:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-18 13:04 viewing random list of files in dired Andreas Politz
2009-01-18 13:54 ` Rupert Swarbrick
2009-01-18 15:10   ` Andreas Politz
2009-01-18 16:15     ` Drew Adams
2009-01-18 17:00       ` Drew Adams [this message]
2009-01-18 17:38         ` Harry Putnam
2009-01-18 17:48           ` Drew Adams
2009-01-18 18:28             ` Harry Putnam
2009-01-18 18:45               ` Drew Adams
2009-02-17 14:16   ` David Combs

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='006601c9798e$4f51af00$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=politza@fh-trier.de \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).