Bug 389803

Summary: Improve Places category show/hide behavior: show/hide when clicking on header
Product: [Frameworks and Libraries] frameworks-kio Reporter: Nate Graham <nate>
Component: PlacesAssignee: David Faure <faure>
Status: CONFIRMED ---    
Severity: wishlist CC: aasifk106, anditosan1000, bugseforuns, claudius.ellsel, kdelibs-bugs, matheus4551, mustacmarijo, office, piotr.mierzwinski, renatooliveira.cin, simonandric5
Priority: HI Keywords: usability
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=407490
Latest Commit: Version Fixed In:
Attachments: How macOS Finder does it

Description Nate Graham 2018-02-02 16:33:51 UTC
Created attachment 110311 [details]
How macOS Finder does it

We now have support for hiding and showing Places panel categories. Yay! However, the UI for this is rather hidden: you have to right-click on the header to hide it and its category, and then when you do, the entire thing--including the header--disappears, so you can easily forget about it or not even realize that there's anything hidden that can be shown!

I would recommend using a UI more similar to how the macOS Finder implements this: when you click on a header, its content collapses, the but the header remains, to show you that there's hidden content. It's quite slick.

Bonus: if we implement this, we can feasibly hide certain categories by default to reduce clutter (like "Search for") without impairing usability or discoverability because people can easily show it if they'd like.
Comment 1 Nate Graham 2018-02-13 22:44:20 UTC
*** Bug 390372 has been marked as a duplicate of this bug. ***
Comment 2 Andres Betts 2018-04-20 04:10:33 UTC
Maybe also the categories can remember the state that the user left them in and hide by default. I like this idea.
Comment 3 Nate Graham 2018-04-20 04:15:40 UTC
Yes, remembering is a must. We already have that, in fact. We just need to improve the UI and the discoverability.
Comment 4 Aasif Khan 2019-04-28 20:46:07 UTC
Hi. I am trying to solve this issue. But I am new to KDE development overall. And looking at the code I think that the code of KFilePlacesModel must be changed because dolphin is using KFilePlacesModel directly for its places panel. Am I headed in the right direction? 
Thanks.
Comment 5 Nate Graham 2019-04-29 04:15:13 UTC
Yep, you're on the right track! Keep in mind that Dolphin does do some custom overlaying on top of that as well.
Comment 6 Nate Graham 2021-01-18 23:57:13 UTC
*** Bug 431806 has been marked as a duplicate of this bug. ***