"Go EXPANDBRANCH=toggle" don't work

Reproduce steps:
go to a directory that contains sub directory
select a sub direcory
run Go EXPANDBRANCH=toggle by click button
No matter how many times the button is clicked, the selected directory will not expand

The problem is that Go EXPANDBRANCH=toggle is a command specific to the existing expansion state of currently selected folders. If they are not already expanded, this command doesn't expand them.

The command Go EXPANDBRANCH=toggleall expands selected folders not already expanded.

I hope this is correct.
It is roughly 4AM in London, so if I'm wrong you may need to wait a while for a Directory Opus developer reply.

It appears you have found a bug.

If Preferences - File Displays - Mouse - Expand sub-folders on hover is selected then Go EXPANDBRANCH and its arguments do not expand and collapse folders.

@jinsight
Yeah, looking at this a bit more I think you may be right.
Something isn't quite right here.
Once the Go EXPANDBRANCH=toggle is used to attempt to open an unopened expanded folder, the Go EXPANDBRANCH=toggleall no longer works without a refresh.

Well, it's good that Leo is getting proper sleep tonight. :slight_smile:

@David thanks for reply, I found that Go EXPANDBRANCH=toggle can also expand and collapse multiple selected directories already expanded,
so I'm curious about what is use case of EXPANDBRANCH=toggle

@jinsight thanks for reply,
I don't enable the config Expand sub-folders on hover , the EXPANDBRANCH=toggle still don't work ..

Many thanks. That has been fixed for the next beta.

You can use this as a workaround until then:

@nodeselect
Go {filepath$} EXPANDBRANCH=toggle
2 Likes