GNOME Bugzilla – Bug 780380
Search: Highlight file in folder when activating "Open Item Location"
Last modified: 2017-08-23 23:15:26 UTC
When using Right-click -> Open Item Location, Nautilus currently scroll the window so the file becomes visible inside the location. I think it would be useful if Nautilus aided visual search even further by selecting the file inside the location too.
This task is part of gsoc for "Modernize backend and improve developer experience" since one of our core goals for 3.26 (and backport to 3.24) is iron out the search use case of type-ahead.
Created attachment 348996 [details] [review] files-view: Select file after "Open item location" Until now we weren't selecting the item that was selected. However it really helps to do that so the user can navigate after searching. For instance this is pretty good to have for the "type-ahead" use case. This commit select the file after the user opens the item location and reveals the file.
Created attachment 348997 [details] [review] icon-controller: Implement reveal_selection It was missing in the new GtkFlowBox based view.
Created attachment 348998 [details] [review] files-view: Reveal file in an idle for the flow view Items are not allocated at that time yet, so it needs some time to be able to calculate the correct allocation of the item, and therefore the correct adjustment for the scrolled window.
Attachment 348996 [details] pushed as 1b84e20 - files-view: Select file after "Open item location" Attachment 348997 [details] pushed as 0e6af80 - icon-controller: Implement reveal_selection Attachment 348998 [details] pushed as 13332ea - files-view: Reveal file in an idle for the flow view
Created attachment 348999 [details] [review] view-model: Don't remove files when adding items A copy paste error from the set_items function.
Comment on attachment 348999 [details] [review] view-model: Don't remove files when adding items Attachment 348999 [details] pushed as 634bc0c - view-model: Don't remove files when adding items
*** Bug 780379 has been marked as a duplicate of this bug. ***
*** Bug 757852 has been marked as a duplicate of this bug. ***