unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Andreas Politz <politza@fh-trier.de>
To: help-gnu-emacs@gnu.org
Subject: Re: viewing random list of files in dired
Date: Sun, 18 Jan 2009 16:10:14 +0100	[thread overview]
Message-ID: <1232291478.333319@arno.fh-trier.de> (raw)
In-Reply-To: <gkvcbi$ltf$1@news.albasani.net>

Rupert Swarbrick wrote:
> Andreas Politz <politza@fh-trier.de> writes:
> 
>> Hi,
>>
>> 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.
>>
>> Thanks,
>>
>> -ap
> 
> I don't know whether dired will do this directly, but for a similar
> problem in the past I used the following approach: create a temporary
> directory and make symbolic links to each of the files in the list (if
> you really mean random, you can pipe your command through eg shuf),
> naming them 00001 00002 etc.

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.

-ap

> 
> The result will be ordered however you choose (based on the ordering you
> fed to your "counter") and you can just wipe the temporary directory
> when done.
> 
> Rupert


  reply	other threads:[~2009-01-18 15:10 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 [this message]
2009-01-18 16:15     ` Drew Adams
2009-01-18 17:00       ` Drew Adams
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=1232291478.333319@arno.fh-trier.de \
    --to=politza@fh-trier.de \
    --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.
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).