Search should permit multiple search terms
Thank you for adding recursive search to Thunar. It's a feature I'm very used to in Nautilus, and have come to rely on.
A feature of the Nautilus recursive search is how it allows you to enter more than one search term, split by whitespace. As far as I can tell, each term is then used in a strict substring match, and all terms must match for the item to be returned in the search.
Use cases 🤹
-
Use case 1: Jane is an amateur photographer. She stores her photos with keywords and ISO-style dates in the file names, and has been doing so for many years after reading an old photography block article. She likes how you don't have to faff with metadata and photo management software if you do that. She likes how Nautilus allows her to quickly search her rather deep tree of photos for a given month, a given set of keywords, and combinations. For example: "2009-03 wedding", "Jacob Millie Chichester .jpg".
-
Use case 2: Milden is an application developer. They want a quick way of rummaging through their source tree for some generated icon files named like myapp-main-open.png, myapp-main-connect.svg and so on. They're in a deep tree somewhere under data/icons, and Milden is only interested in the PNG versions, and wants to run an action on them from the search results if they look OK. He types in "myapp-main .png" into the search box.
Please could Thunar's new recursive search be modified to allow this?
Patch🩹
Here is an initial implementation in case anyone wants to try it out:
This is my first submission. I wasn't able to fork and send you an MR, so I hope I get everything right! I didn't find a contributing guide, but I've tried to match your coding style as best I can.