After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 680161 - Show search matches for current directory first
Show search matches for current directory first
Status: RESOLVED DUPLICATE of bug 663242
Product: nautilus
Classification: Core
Component: general
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-07-18 12:01 UTC by William Jon McCann
Modified: 2012-08-13 16:46 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description William Jon McCann 2012-07-18 12:01:02 UTC
Currently we do a deep filesystem search and only return results when that has finished. I think we should return results from the current directory immediately. This is particularly important for the file system crawler search provider.

I think it is probably fine to continue to do a full tracker search since that should always be fast.

One way to do this could be to instantiate two versions of the simple search, one that searches the current directory and one that searches everything else. We could then add a "loaded" signal or similar that indicates to the search directory that results may be shown but that searches are still in progress.

The two instances of the simple provider could be differentiated by either settings a property on one of them or sending one a different query. Seems like using a property may be cleaner since it will also allow us to differentiate the instance more directly when results are returned by just checking that property.
Comment 1 Tobias Wolf 2012-07-19 05:37:38 UTC
Don’t you already have the list of files in the current view in memory?
Comment 2 William Jon McCann 2012-08-13 16:46:59 UTC

*** This bug has been marked as a duplicate of bug 663242 ***