jcupitt / vipsdisp

Tiny libvips / gtk+4 image viewer
MIT License
130 stars 10 forks source link

Add multiple file support #28

Closed srhardie closed 7 months ago

srhardie commented 7 months ago

RFE - Are you able to please add keyboard shortcuts for moving forward/backwards through multiple image files in a directory. Currently if there are multiple images in the same directory, from Nautilus file browser I open the first image file for viewing. Then to view the second image, I need to use the 'Replace Image...' dialog or go back to Nautilus and double-click on the next file. This is slow for moving through dozens or hundreds of image files in a directory. Perhaps as mentioned in the vipsdisp TODO list, something like Shift-left and Shift-right? Similar to Gnome Image Viewer (EOG) using left/right arrow keys to move through multiple image files.

Fedora 38, vipsdisp 2.6.3 as a flatpak from flathub.org

jcupitt commented 7 months ago

Hello @srhardie, yes this has to be the most requested feature.

I've been making vipsdisp as a new image view window for nip2:

https://github.com/libvips/nip2

That thing needs updating for gtk4, and image display is probably the bit that's changed most since gtk2. Since this will be a widget in a spreadsheet, it won't need multiple image support.

... having said that, I agree that as a lightweight standalone viewer, it would be useful for vipsdisp.

jcupitt commented 7 months ago

... I decided this feature was more interesting than anything else I had planned today, so I hacked in basic support. There are a few things to look at still:

jcupitt commented 7 months ago

to view the second image, I need to use the 'Replace Image...' dialog or go back to Nautilus and double-click on the next file

git master vipsdisp supports drag and drop and copy paste, so you can just drag files from nautilus. Proper multi-file support is better, of course.

srhardie commented 7 months ago

Thanks! This will be immediately useful in a large image processing project.

I compiled from master and tested it out. Cycling through image files using alt-left/right works great.

Looking forward to an updated flatpak on flathub when you can.