Open probonopd opened 3 years ago
https://github.com/mate-desktop/caja/pull/110/files contains a patch for Caja. It's not Qt but maybe useful anyway for looking at.
https://www.youtube.com/watch?v=QIRGoOzbp88
KDE Plasma has it, "kinda", apparently not in the Dolphin file manager but in the "pseudo file manager" on the Plasma desktop.
In the Dolphin file manager, there are also references of it, called ExpandableFolders
:
https://github.com/KDE/dolphin/search?q=expandableFolders
Reference: https://forum.kde.org/viewtopic.php?f=223&t=165329
This is the basic patch by @ssj-gz that was supposed to enable the feature in Dolphin:
https://github.com/KDE/dolphin/commit/b94777f9d19b3d515088493a81885082a50be791
Not sure whether we can use anything from that implementation but possibly we can at least learn something.
/**
* Grants auto expanding functionality to the provided item view.
* Qt has its own auto expand mechanism, but this works only
* for QTreeView. Auto expanding of folders is turned on
* per default.
*
* If the provided view is an instance of the class QTreeView, the
* expanded of the directory is automatically done on hover. Otherwise
* the enterDir() signal is emitted and the caller needs to ensure that
* the requested directory is entered.
*
* The FolderExpander becomes a child of the provided view.
*/
https://github.com/helloSystem/Filer/issues/164#issue-1475025884 When using this function, it will be terminated by the right-click menu.
Spring-loaded folders would greatly improve productivity, especially in conjunction with Spatial Mode.
Apple held patents which since have expired.
See below for an implementation that would need to be ported to Filer.