linuxmint / thingy

Library - Recent and favorite documents
26 stars 5 forks source link

[WIP] Add search capability #16

Closed m8 closed 1 year ago

m8 commented 2 years ago

This pr introduces search capability for thingy, it searches on recent and favorites without an app_id.

While using add_document_to_library function i passed app_id as a null string. Please let me know if this should be change.

image

mtwebster commented 1 year ago

Hi, a few things:

Thanks!

edit: You might want to consider using a filter for the flow box, instead of rebuilding the view each time:

https://lazka.github.io/pgi-docs/#Gtk-3.0/callbacks.html#Gtk.FlowBoxFilterFunc https://lazka.github.io/pgi-docs/#Gtk-3.0/classes/FlowBox.html#Gtk.FlowBox.invalidate_filter