ironiridis at gmail.com
Sun May 30 21:18:48 EDT 2010
On Sun, May 30, 2010 at 16:13, Fernando <fcarello at libero.it> wrote:
> Todo list for imgv 0.3.0:
> - Add ability to browse all images in current dir ("imgv all")
The "Unix Way" of doing this would be to allow the shell to provide the
files to view. So, for instance, if you invoked imgv as
imgv should stat stockphotos/children and see that it's a directory, and
handle it accordingly (whether that's recursing into all child directories
or just doing the image files in that directory).
Otherwise, if one did
`find stockphotos -iname "*aqua*.jpg" -print0 | xargs -0 imgv`
imgv would receive a list (possibly a very long one) of filenames provided
by the find utility.
In the context of your example above (`imgv all`) I'd suggest instead `imgv
*` and allow the shell to expand the asterisk into all of the files in the
For the sake of argument, it might be preferred to have a switch that
ignores files that can't be opened by imgv, like so:
`imgv --ignore-non-images *`
because the shell will espand the asterisk for all files in the current
directory, and you wouldn't want imgv to try to open and display "imgv.c"
for instance. :)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the discussion