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 743715 - super-key: search could have an option to show paths
super-key: search could have an option to show paths
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
3.14.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-01-29 21:57 UTC by Joe User
Modified: 2015-02-02 14:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
nautilus-shell-search-provider: Add path as description (2.05 KB, patch)
2015-02-02 14:51 UTC, Carlos Soriano
committed Details | Review

Description Joe User 2015-01-29 21:57:32 UTC
If I push the super key I can type things and get search matches from tracker or a search provider, like nautilus search provider.

e.g. I could type DSC01234 or bill or invoice or accounts or letter, and get results.

Unfortunately the context for the files it finds is missing - the path - which means that I don't know which result to click. Do I want raleigh/DSC01234.jpg or mountainview/DSC01234.jpg? Do I want 2015/accounts.ods or 2001/accounts.ods? Well I don't know which is which because that information isn't shown, so I can't use the search interface. It seems a pity.

Maybe some of the providers should show a path, like the nautilus provider.
Comment 1 Jasper St. Pierre (not reading bugmail) 2015-01-29 22:20:14 UTC
Well, then let's ask the nautilus guys.
Comment 2 Florian Müllner 2015-01-29 22:22:19 UTC
From gnome-shell's perspective, all results are just provider-specific identifiers with no particular meaning. To display a result, we ask the provider to pass us additional information for a given ID - namely a display name, an icon and optionally a description. We could add another optional 'file-path' field there, but we'd have to figure out a place to display it if the provider gives us both a description and a path. Given that this is quite nautilus specific anyway, and its provider does not use the description field at all, I think it would be better to just make nautilus use that (if we want that feature).

(Apparently Jasper already reassigned in the meantime, but posting the comment anyway)
Comment 3 Carlos Soriano 2015-02-02 14:51:25 UTC
Created attachment 295952 [details] [review]
nautilus-shell-search-provider: Add path as description

It's useful to differentiate files from different folders with
the same name. That's a common problem that we hit in the normal
nautilus search.
But it's easily fixable for the shell provider search, adding the path
as a description.
Comment 4 Carlos Soriano 2015-02-02 14:53:37 UTC
Attachment 295952 [details] pushed as c8ea933 - nautilus-shell-search-provider: Add path as description