waypaper icon indicating copy to clipboard operation
waypaper copied to clipboard

Feature: Add search to gui application to filter images

Open mylinuxforwork opened this issue 1 year ago • 4 comments

Hi,

In the current version you’re showing all images as previews in alphabetical order. In case of a large collection it’s difficult to find the right image just by scrolling.

That’s why I request a search function implemented as a search field above the thumbnails to filter the images by filename. The list should get filtered everytime I type a character in.

Thank you for considering this feature.

mylinuxforwork avatar Jul 26 '24 05:07 mylinuxforwork

Sounds useful, but personally, I have no idea how to code, especially so that it gets filtered upon entering every new character. I'll check, maybe there's some standard GTK implementation available for search...

anufrievroman avatar Jul 26 '24 06:07 anufrievroman

Hi,

In the current version you’re showing all images as previews in alphabetical order. In case of a large collection it’s difficult to find the right image just by scrolling.

That’s why I request a search function implemented as a search field above the thumbnails to filter the images by filename. The list should get filtered everytime I type a character in.

Thank you for considering this feature.

Hello, I have some experience in doing filtering in programming and would be willing to implement this feature if you have not already. I like your Hyprland dotfiles btw. Currently I have some experience in adding one feature to this project and I think it's a great idea.

chrissolanilla avatar Aug 06 '24 18:08 chrissolanilla

Currently I have some experience in adding one feature to this project and I think it's a great idea.

Sure, please. On the side note, I think re-filtering upon every new letter might be too much as the library of images are sometimes too large and it might be difficult to reload all thumbnails. So it's better to start with just a search after hitting enter.

anufrievroman avatar Aug 06 '24 22:08 anufrievroman

re-filtering upon every new letter might be too much as the library of images are sometimes too large and it might be difficult to reload all thumbnails

Maybe re-filtering after a certain amount of time has passed without an user input (like 250ms) would be a solution?

Reyshyram avatar Aug 07 '24 14:08 Reyshyram

I am working on the search image feature and it is almost done. I also added menu for swww options.

Preview

https://github.com/user-attachments/assets/1177a195-4c85-4230-a2c9-3e9138629ef7

Sandesh2007 avatar Nov 09 '24 14:11 Sandesh2007

Thanks to @Sandesh2007 this feature is implemented. Thank you all for suggestions and contributions. The feature will be available in the next release. But don't hesitate to install waypaper-git or from the main branch to test it.

anufrievroman avatar Nov 13 '24 07:11 anufrievroman

@anufrievroman @Sandesh2007 Awesome. Thank you so much for this great improvement.

mylinuxforwork avatar Nov 13 '24 20:11 mylinuxforwork