GNOME Bugzilla – Bug 327788
Search for *all* files by leaving the search entry blank
Last modified: 2012-07-20 12:24:26 UTC
in accordance to gnome-search-tool, in simple (no beagle) search, leaving the search entry void should search for all files. Currently nothing is searched. Other information:
Thanks for the report. We will be reviewing our search functionality this release cycle and will decide about this then.
Actually, I agree with this. Setting to new.
Created attachment 179374 [details] [review] proposed patch Patch to special case the '*' characted (instead of an empty string) to search for all files. The problem with leaving the entry empty is that several places in the code assume that it _can't_ be empty. If the current approach is not acceptable, I will attempt to fix the code to allow for an empty string. Please review.
Created attachment 179588 [details] [review] proposed patch, take 2 Okay, new patch that implements the required behavior: now searching an empty string (i.e., just leaving the search text entry empty and pressing enter) searches for all files. I have not attempted to fix the tracker-based search engine to simulate the same behavior, partially because I have zero knowledge of sparql, partially because the tracker-based search does FTS instead of matching filenames. It might be worth checking that nautilus_query_to_xml does the right thing when query_text = "", however.
Created attachment 179704 [details] [review] corrected patch I managed to mess up with git while generating the previous patch; fixed patch attached.
Fixing the summary as this is not about using "*" for the search (bug 340332). Still valid in 3.1.4
The new search in master works this way.