Coder Social home page Coder Social logo

sxiv's People

Contributors

4z3 avatar barthalion avatar baskerville avatar bobrippling avatar contyk avatar dwarfmaster avatar dwminer avatar elfring avatar falconindy avatar foldex avatar geneotech avatar hut avatar iagosrodrigues avatar iamleot avatar jwilk avatar mtreca avatar mwgamera avatar naglak avatar octos avatar quite avatar radhermit avatar rck avatar sdx23 avatar shua avatar squibbysquibby avatar sudo-nice avatar vain avatar vaygr avatar vially avatar xyb3rt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sxiv's Issues

Middle click doesn't pan the image

I can't find a problem with your code, the XEvents are picked up fine, the image offsets are applied properly and it's rendered with those offsets. Perhaps it's imlib? I'm using imlib2 1.4.5-2

I tried a git bisect to locate the commit bit I ran into problems:

Some good revs are not ancestor of the bad rev.
git bisect cannot work properly in this case.
Maybe you mistake good and bad revs?

Which is unfortunate.

I'm willing to figure out the bug myself if you can point me in the right direction.
Thanks

Previous Image Binding

'previous image' is bound to 'p' and 'BackSpace' by default and I'd like to bind it to 'Shift-space'.

Add a toggle or option for looping GIFs

It's awesome to find an image viewer that animates GIFs and isn't bloated! To finish off this great app's support, it'd be great to see GIF looping. Maybe shift+R (for 'toggle repeat') would work?

Window straddles monitors on multimonitor

I use XMonad and when I have the next window "float" out of tiling, sxiv will pop up in the center of my two (identical) screens if focus is on the left and if focus is on the right, it shows up with the right half off the screen. Not sure what sxiv needs from X to know where to pop up. Most apps tend to just get it right. Maybe sxiv is trying some geometry stuff that gets mixed up with tiling?

DIsplay image number in thumbnail mode

Please, consider to append image numbers to thumbnails grid. With large grid it could help to navigate to specified thumbnail more faster with G count, if destination`s count is visible.

Resize issue

Hi
I use musca as window manager. When I open an image with sxiv, it doesn't get resized right. Let me show you an example:
This is what it looks like http://i53.tinypic.com/favlt1.png
and this is what it should look like http://i54.tinypic.com/2v0h66q.png
When I open more images in a row, e.g. sxiv *.jpg, then the first image is being displayed wrong, but as soon as I switch to another one, that one gets resized correctly. After that every image is being displayed correctly. But as soon as I change the size of the aria sxiv is allowed to take (e.g. switch to fullscreen), it starts all over again.

I hope you understand what I'm saying. I haven't tried other window managers so far, right now I only have musca on my laptop. If it help, I could try out more if you want me to.

Besides that, really great image viewer!

tagging

hey there, love the latest version.

have you thought about a tagging feature?

i'm thinking XK_t invokes dmenu with an existing (already used) tags, and once selecting the tag, it gets embedded in the image itself using exiv2 or something.

slideshow does not begin

From image mode, slideshow does not begin on pressing s.
doing
cat config.h | grep -i xk_s
shows that slideshow is not defined
adding in the line
{ true, XK_s, i_toggle_slideshow, (arg_t) None},
gives the error
main.o:(.rodata+0x1b8): undefined reference to `i_toggle_slideshow'
on make

Invalid file number and count

Hi,

suppose you have these two files in the current directory:

  • TODO - a text file
  • pic.jpg - some picture
    after running sxiv -n 2 TODO pic.jpg sxiv shows [2/2]... in the title. After pressing Enter key sxiv switches to thumbnail mode and shows only one thumbnail like it should, but now title contains [2/1]... and no thumbnail is selected (one needs to use j and h keys until current file number is less than file count).

Feature request (copy key for file path of current image)

Hey,

first of all I'd like to thank you (Danke!) for the simple (from a user's pov) but great piece of software!

How about adding a key to copy the (full) file path of the currently opened image in window mode (or the focused/selected image in thumbnail mode)?

I think this would prove very useful if you occasionally want to edit the file or use it anywhere else. In conjunction with the fast thumbnail mode this might even give the little extra.

I am sorry if I violated any rule or missed anything relating the feature request.

Best regards,
qwertzix

Add animated image support

Is support for animated images planned? Not sure what bindings would make sense. p for "play once" and P for "loop" with either one pausing/resetting the image if it's already animating?

Can't call a script on multiple images

I would be nice to have a way to call a user script with multiple images passed as arguments.
At the moment, only the currently viewed image can be acted on.

Show Full Path in Status Bar

sxiv doesn't show the full path it received as arguments but just the file names, hence, there's no way of knowing where the files belong.

Feature request: support SVG

Please add the SVG support. I'm not actually sure about the proper way of getting this done, as long as imlib2 doesn't support SVG currently...

Window sometimes shrinks

In a tiling window manager (XMonad here), sxiv sometimes becomes a 1x1 or 1xN window when focus is gained or lost. flipping focus around can get it to be the proper size again.

Disable anti-aliasing of thumbnails

When an image is smaller than the thumbnail, the resulting thumbnail is blurry, it would be convenient not to use smoothing here, or to provide a setting to disable it.

Implement Tagging?

I'm wondering if tagging isn't necessary after all.
To indicate a tagged image, an inner border could be drawn on the image/thumbnail.
Then shell command would be run in sequence, by passing each tagged image as argument successively.

page up, page down when reading comics

I use sxiv to view images and to read comics (a directory with about 40 images).
I discovered it yesterday and I already like it very much.

I have one suggestion.
The default behaviour of space key is perfect to view images but a bit annoying when reading comics.
I would prefer the following behaviour

  1. if you are at the bottom of the page go to next image
  2. else go to the bottom (or better scroll one page)
    It's the default behaviour of many pdf viewers.

Moreover I don't think it would be annoying when we only look at images (else we could also use another key, pagedown for instance).

What do you think of this suggestion? Do you think it is easy to implement?

Remark 1: I know we can use a combination of space and J but I would prefer one key.
Remark 2: Is it the right place to post suggestion? Or is this section intented for bug report?

Thanks for this great work!

Build on OpenBSD

When compiling main.c, gcc complains about select() and accompanying macros (FD_*), which on OpenBSD are defined in <sys/select.h>. Should this be included in main.c?

Provide a Command to Modify the File List Through a Script

I thought it would be important to be able to sort images on the fly.

I'm proposing the following approach:

Provide a command that would provide a script the current list of images being handled as a list of newline separated absolute paths to the its stdin and read back the modified list on the its stdout.

For example, the following script would eliminate non-existent files:

#! /bin/dash

xargs ls -1d 2> /dev/null

And this script would sort files by size:

#! /bin/dash

xargs ls -1dS

Some questions about zooming

What about a key to fit image to window width ?
I suggest

  • key 'w' to fit to width
  • key 'z' to fit to window size
    (as xpdf)
    As with the current fit to window size, I would prefer the change to be global (not only for the current image).

I also notice that zooming is local to the image so when we change of image (with space) we return to the default zoom.
It's certainly what we want most of the time. But sometimes, we would prefer to zoom globally (when reading A4 scanned pages for example). Could we have 2 keys, one for local zoom and one for global zoom?

Thanks for your fast answers.

Manpage on openbsd

I don't know if this is something you'll want to change upstream, but the BSD version of find doesn't support the -delete option. In the thumbnail caching section in the manpage, for it to work, the appropriate command would look something like find . -type d -empty -print0 | xargs -0 rmdir.

Correction: the above doesn't have the same results. This should do it correctly:
find . -depth -type d -empty ! -name '.' -exec rmdir {} ;

I know its a bit uglier. I have it patched in the openbsd port that way.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.