Bug 460673 - Ctrl+click should open/close all one level sibling tree view nodes of the clicked node.
Summary: Ctrl+click should open/close all one level sibling tree view nodes of the cli...
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Usability-Ergonomy (show other bugs)
Version: 7.9.0
Platform: Appimage Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-18 17:56 UTC by Jens
Modified: 2023-05-13 13:43 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens 2022-10-18 17:56:18 UTC
SUMMARY
In the left sidebar (folders/albums/tags/timeline/faces), and in the right sidebar in every tree view, Ctrl+mouse click on a ">" or "v" arrow should not just expand or collapse the clicked node, but all nodes on the same level (siblings).

This works in many apps, and is a huge time saver if you want to expand/collapse a tree view of any kind.

I think this cannot be a configuration option (right?), but I see no reason to not make this the default behaviour.

Is this feasible to be implemented in Digikam's tree view widget by default, so that it works in all tree views?
Comment 1 Maik Qualmann 2022-10-18 18:04:27 UTC
Dolphin shows the same behavior here as digiKam, CTRL also does not open/collapse the sub-nodes. In which programs is it implemented in this way?
Do you know the options in digiKam's right mouse button menu?

Maik
Comment 2 Maik Qualmann 2022-10-18 20:21:21 UTC
Here are the available keys explained for a QTreeView:

https://doc.qt.io/qt-6/qtreeview.html#key-bindings

You can expand everything recursively with the Asterisk key (*).

Maik
Comment 3 Jens 2022-10-18 20:32:19 UTC
My experience comes mainly from (commercial) Windows software. Maybe this is a default feature of some Windows library, WinForms, Win32, whatever .. I don't know. I just think this improves efficiency immensely when navigating through large trees of any kind.

Thanks for the hint about the context menu.
Comment 4 Jens 2022-10-18 21:22:15 UTC
True.
My use case is rather something like this:
I have albums called 2009 .. 2022, each full of subalbums, all expanded.
I want to collapse all these albums by one level.

Right now I can collapse/expand *everything*, and collapse/expand *one* object on all levels, but I cannot collapse/expand *all* sibling objects by *one* level. Also not with the options in the context menu, unless I have overlooked something.
Comment 5 Maik Qualmann 2022-10-20 09:57:50 UTC
Hmm, I can recursively expand and collapse a node with all its sub-items, tested with the Windows version.

Maik
Comment 6 Jens 2022-10-20 13:36:53 UTC
Yes, and I want to expand and collapse a node with all of its *siblings*, but just one level deep.
This is a different feature :-)