GNOME Bugzilla – Bug 743715
super-key: search could have an option to show paths
Last modified: 2015-02-02 14:53:41 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.
Well, then let's ask the nautilus guys.
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)
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.
Attachment 295952 [details] pushed as c8ea933 - nautilus-shell-search-provider: Add path as description