You are not logged in.

#26 2011-02-01 19:41:31

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: sxiv - Simple image viewer written in C

ber_t wrote:

If it's something like the typical "fit image into window when I press this key", then I can appease you, it's already in the TODO list.

Yes that's what I mean smile

Offline

#27 2011-02-02 16:56:49

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: sxiv - Simple image viewer written in C

Regarding features, while I do agree that it should remain a very lightweight application, there is but one that I miss from feh: showing imagenames pressing 'd'. It hasn't to be overtly complicated but simply filename + size + place in the list (if opening multiple images) will be enough.


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#28 2011-02-02 16:57:53

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: sxiv - Simple image viewer written in C

onearm wrote:

Regarding features, while I do agree that it should remain a very lightweight application, there is but one that I miss from feh: showing imagenames pressing 'd'. It hasn't to be overtly complicated but simply filename + size + place in the list (if opening multiple images) will be enough.

why 'd'?


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#29 2011-02-02 17:04:45

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: sxiv - Simple image viewer written in C

Dieter@be wrote:
onearm wrote:

Regarding features, while I do agree that it should remain a very lightweight application, there is but one that I miss from feh: showing imagenames pressing 'd'. It hasn't to be overtly complicated but simply filename + size + place in the list (if opening multiple images) will be enough.

why 'd'?

Exactly, why 'd'? I prefer 'i' as 'info'.

Offline

#30 2011-02-02 19:12:35

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: sxiv - Simple image viewer written in C

onearm wrote:

Regarding features, while I do agree that it should remain a very lightweight application, there is but one that I miss from feh: showing imagenames pressing 'd'. It hasn't to be overtly complicated but simply filename + size + place in the list (if opening multiple images) will be enough.

All but the filesize are already shown in the window title. Displaying this information in an overlay at a window corner, either using the imlib2-api or the classic xlib approach, seems a bit too complicated, if compared to using just the window title. So it's highly unlikely, that I'm implementing this. Sorry.

Offline

#31 2011-02-02 19:18:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: sxiv - Simple image viewer written in C

ber_t wrote:
onearm wrote:

Regarding features, while I do agree that it should remain a very lightweight application, there is but one that I miss from feh: showing imagenames pressing 'd'. It hasn't to be overtly complicated but simply filename + size + place in the list (if opening multiple images) will be enough.

All but the filesize are already shown in the window title. Displaying this information in an overlay at a window corner, either using the imlib2-api or the classic xlib approach, seems a bit too complicated, if compared to using just the window title. So it's highly unlikely, that I'm implementing this. Sorry.

<facepalm>
I use dwm with the bar hidden so I didn't see the window title. Now I like sxiv even better :-)

Offline

#32 2011-02-02 19:19:33

silenc3r
Member
From: Poland
Registered: 2009-08-29
Posts: 149

Re: sxiv - Simple image viewer written in C

onearm wrote:

Regarding features, while I do agree that it should remain a very lightweight application, there is but one that I miss from feh: showing imagenames pressing 'd'. It hasn't to be overtly complicated but simply filename + size + place in the list (if opening multiple images) will be enough.

Good point, I just entered forum to write about this feature, but you were faster wink. I also think, that despite people being used to feh's 'd', 'i' seems like better idea.

Offline

#33 2011-02-03 09:13:03

onearm
Member
From: Anywhere but here
Registered: 2006-07-06
Posts: 359
Website

Re: sxiv - Simple image viewer written in C

ber_t wrote:

All but the filesize are already shown in the window title. Displaying this information in an overlay at a window corner, either using the imlib2-api or the classic xlib approach, seems a bit too complicated, if compared to using just the window title. So it's highly unlikely, that I'm implementing this. Sorry.

I understand it can be over complicated. I didn't notice the info in the window title because using awesomewm I don't have title bar and sometimes not even a statusbar. Anyway, just adding filesize in the window title will be ok then (and no need for a keybind of course) smile


To get something done, a committee should consist of no more than three persons, two of them absent.
--
My Github

Offline

#34 2011-02-07 17:47:29

erno
Member
Registered: 2009-08-24
Posts: 83

Re: sxiv - Simple image viewer written in C

thank you for bringing more suckless into the world

Offline

#35 2011-02-07 21:10:04

ga01f4733
Member
From: NYC
Registered: 2008-12-05
Posts: 117

Re: sxiv - Simple image viewer written in C

You nail it, ber_t!

Fantastic Image Viewer, thank you.

Last edited by ga01f4733 (2011-02-07 21:13:07)


There are no foreign lands. It is the traveler only who is foreign. --R.L Stevenson

Offline

#36 2011-02-08 09:14:07

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

Re: sxiv - Simple image viewer written in C

erno wrote:

thank you for bringing more suckless into the world

Right, many thanks for this do one thing and do it well software.

It's this kind of image viewer I always want.
Great use with ranger the filemanger.

Now, I use feh only for thumbnails previewing.
Do you know if there is a great sxvi companion for that ?

Offline

#37 2011-02-08 09:53:59

Falstaff
Member
Registered: 2008-11-03
Posts: 81

Re: sxiv - Simple image viewer written in C

It would be nice if it could run gifs.

Last edited by Falstaff (2011-02-08 16:31:23)

Offline

#38 2011-02-08 12:27:11

gorilla
Member
From: Berlin
Registered: 2010-06-15
Posts: 72

Re: sxiv - Simple image viewer written in C

mentat wrote:

Now, I use feh only for thumbnails previewing.

Thumbnails with feh - in ranger? Can you tell me how to do that? Since I know sxiv and imlibsetroot I dropped feh from my mashine, but that would be a reason to reinstall it, if there is nothing else...

Offline

#39 2011-02-08 13:01:47

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: sxiv - Simple image viewer written in C

gorilla wrote:
mentat wrote:

Now, I use feh only for thumbnails previewing.

Thumbnails with feh - in ranger? Can you tell me how to do that? Since I know sxiv and imlibsetroot I dropped feh from my mashine, but that would be a reason to reinstall it, if there is nothing else...

I think he meant

     -t, --thumbnails
             Same as Index mode, but the thumbnails are clickable image
             launchers.  Note that --full-screen does not affect the thumbnail
             window. It does, however, work for the image windows launched
             from thumbnail mode.

Offline

#40 2011-02-08 13:06:41

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: sxiv - Simple image viewer written in C

Falstaff wrote:

I would be nice if it could run gifs.

+1 tongue


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#41 2011-02-08 13:48:32

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

Re: sxiv - Simple image viewer written in C

karol wrote:
gorilla wrote:
mentat wrote:

Now, I use feh only for thumbnails previewing.

Thumbnails with feh - in ranger? Can you tell me how to do that? Since I know sxiv and imlibsetroot I dropped feh from my mashine, but that would be a reason to reinstall it, if there is nothing else...

I think he meant

     -t, --thumbnails
             Same as Index mode, but the thumbnails are clickable image
             launchers.  Note that --full-screen does not affect the thumbnail
             window. It does, however, work for the image windows launched
             from thumbnail mode.

Right karol,

But I ve a feh profile in my .fehrc

# default
feh --scale-down -F

# thumb profile
thumb -t -Sfilename -C /usr/share/fonts/TTF/ -e DejaVuSans/8 -E 128 -y 128 -W 1280

So when run ranger I make a selection press "!" to type

feh -Tthumb %s

or without a selection to see all pictures in the curent folder type

feh -Tthumb .

I can see a thumnails plate and directly select a picture with mouse.

Need to read more feh manpage to fix the plate and images repetition (mosaic style) because I work with ratpoison wm.
if you have suggestion ?

Hope will help.

Offline

#42 2011-02-08 14:45:35

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: sxiv - Simple image viewer written in C

First of all: version 0.5 is out...
New: option -r for opening directories recursively; show filesize in window title; key mappings 0/w/W, zoom to 100%/to fit window and resize window to fit image.

@mentat,gorilla: I will not implement thumbnails, so please stick to feh if you want them.

@Falstaff,Dieter@be: Sorry, but I also do not plan to implement gif animation support. Please have a look at gifview, which comes with extra/gifsicle.

Offline

#43 2011-02-08 16:14:27

mentat
Member
From: France
Registered: 2009-01-13
Posts: 138
Website

Re: sxiv - Simple image viewer written in C

ber_t wrote:

@mentat,gorilla: I will not implement thumbnails, so please stick to feh if you want them.

@bert_t : Of course please don't implement this. It was not a demand, I prefer use plenty of simple tool like sxiv.
Indeed I m very happy you resist feature creeps.
I post only if someone know an "do one thing well" alternative to the feh function.

Thx for your work.

Offline

#44 2011-02-08 16:44:51

Falstaff
Member
Registered: 2008-11-03
Posts: 81

Re: sxiv - Simple image viewer written in C

ber_t wrote:

First of all: version 0.5 is out...
New: option -r for opening directories recursively; show filesize in window title; key mappings 0/w/W, zoom to 100%/to fit window and resize window to fit image.

@mentat,gorilla: I will not implement thumbnails, so please stick to feh if you want them.

@Falstaff,Dieter@be: Sorry, but I also do not plan to implement gif animation support. Please have a look at gifview, which comes with extra/gifsicle.

Didn't knew about gifview, works fine. Thanks.

Offline

#45 2011-02-08 20:14:54

gorilla
Member
From: Berlin
Registered: 2010-06-15
Posts: 72

Re: sxiv - Simple image viewer written in C

ber_t wrote:

@mentat,gorilla: I will not implement thumbnails, so please stick to feh if you want them.

The recursive-option is great!

I don't plan to go back to feh. For the big photo-archives I can use the thumbnail-function of thunar (which is installed for my guest-account). Don't like feh for couple of reasons.

Offline

#46 2011-02-10 13:08:10

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: sxiv - Simple image viewer written in C

ber_t wrote:

@Falstaff,Dieter@be: Sorry, but I also do not plan to implement gif animation support. Please have a look at gifview, which comes with extra/gifsicle.

so, if i open a gif file with sxiv-git, notice it doesn't work, i have to close it and manually type another program name?


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#47 2011-02-10 13:29:39

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: sxiv - Simple image viewer written in C

Dieter@be wrote:
ber_t wrote:

@Falstaff,Dieter@be: Sorry, but I also do not plan to implement gif animation support. Please have a look at gifview, which comes with extra/gifsicle.

so, if i open a gif file with sxiv-git, notice it doesn't work, i have to close it and manually type another program name?

This or file associations: every gif is opened with xyz.

Offline

#48 2011-02-10 14:09:11

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: sxiv - Simple image viewer written in C

Dieter@be wrote:

so, if i open a gif file with sxiv-git, notice it doesn't work, i have to close it and manually type another program name?

I'm currently thinking about some new mechanisms, which would make such interactions with other programs much simpler. I will shortly describe them here, and would like to ask you all to comment on which ones I should implement, if any:

1. New option flag -e to specify a command line, which is run on the currently visible image after pressing a certain key. Could also be extended to options -1 to -0 and corresponding keys F1-F10. Should the image always be reloaded after triggering such an external action?
2. Key mapping to print the filename of the currently visible image to stdout, or mark/unmark the currently visible image and then print the filenames of all marked images to stdout when quitting sxiv. This would be useful in scripts, for instance to open a bunch of images and decide which ones to delete.

Offline

#49 2011-02-10 15:06:27

hellnest
Member
From: $ dmesg | grep ATA
Registered: 2010-11-11
Posts: 194
Website

Re: sxiv - Simple image viewer written in C

@ber_t
Can you add support to view xbm and xpm?


roll Snapping my own life roll
hmmgithubhmm
coolMyBlogcool

Offline

#50 2011-02-10 16:15:16

ber_t
Member
From: Berlin, Germany
Registered: 2010-03-10
Posts: 214
Website

Re: sxiv - Simple image viewer written in C

hellnest wrote:

Can you add support to view xbm and xpm?

XPM is working here, and, eh, wait there are still .xbm's out there? Well, it's not supported by imlib2 and it would be quite a lot of work to implement support for every "exotic" file format in sxiv, instead of just using imlib2. If you really want it, then please ask the imlib2 devs...

Offline

Board footer

Powered by FluxBB