Currently, the expandable folder arrows are only seen on the regular file view. When switching to the Flat View, the arrow disappears. It would be nice to have an option to keep the arrow so that we can still collapse certain folders we're not interested in viewing flatly.
Instead of using Flat View, use the option to expand all folders.
That option only expands them 1 level deep, so it won't recursively go into each sub-folder and repeat the expand action.
It'll expand the next level each time it's used.
We could probably add something to do a recursive expansion in a single operation, if it's needed.
It actually collapses them instead. I've attached a video of the behavior in action:
Trying to edit the button using the embedded functions within DOpus but can't seem to make it expand as advertised:
Using v13.0.52 BETA at the moment.
This will expand the next level each time, without collapsing:
Go * EXPANDBRANCH=wild
Indeed it does, but requires clicking it for each depth. I can't seem to find a way to loop through the current folder breadth-first and grab the list of all the folders, then expand them all at once.
Can you please indicate which version of EcmaScript does DOpus support? I can see there is support for JScript
, which I assume stands for JavaScript
, but I am wondering which version is supported.
I'm not sure if there's a good way to loop and expand everything at the moment. The issue is that the expansions are done in the background, and I'm not sure there's an easy way for a script to know when to stop or keep going.
I did a quick test with this script, but it doesn't entirely work at the moment:
function OnClick(clickData)
{
var tab = clickData.func.sourcetab;
var cmd = clickData.func.command;
cmd.ClearFiles();
cmd.deselect = false;
var dirCount = tab.dirs.count;
while(true)
{
DOpus.Output("Run - count = " + dirCount);
cmd.RunCommand("Go * EXPANDBRANCH=wild");
tab.Update();
if (dirCount == tab.dirs.count)
break;
dirCount = tab.dirs.count;
}
DOpus.Output("Stop");
}
JScript is a very old version of JavaScript which Microsoft have abandoned without providing any kind of replacement.