I have tried the new "Expandable folders" feature, I find it convenient to use Alt + Down to expand a folder, however I was expecting to be able to collapse the folder with Alt + Up while selecting a file inside the folder.
Currently, it doesn't work, we have to go up and select the parent folder to be able to collapse it.
Wouldn't it make sense to allow this behavior ?
For instance:
I have all my folders listed, I want to open a file from a specific folder without moving the current path to this folder
I select the folder and expand it
I go down with the keyboard to select the file I want to open
once I'm done, I would like to "close/collapse" the folder. I cannot do it quickly while the file is selected. I have to select the parent folder to be able to use Alt + Up.
I think it will be trying to collapse the selected folder ("Level 2 folder") which is already collapsed, but Megosu is expecting it to collapse the folder above it ("Level 1 folder").
good example, you have the same issue as I have:
we can clearly see on the video that you couldn't collapse while selecting the child folder "Plugins". You had to go up and select the parent folder "ConfigFiles" folders in order to be able to collapse.
However, you were able to collapse when the child file was selected, which is what I get too.
Any way to be able to collapse the folder when a child folder/file is selected ?
The additional script you mentioned seems great, I'll give it a go but I don't think I need that much power, and I tend to avoid loading external scripts and having to dread the day it won't work anymore because of an update or something else... unless there is no other choice ?
I don't think that's possible, because there is no way of detecting with the evaluator whether the selected folder is expanded or collapsed. You would need a second command for this:
go expandbranch=collapse PATH={filepath|..}
Go {filepath|..} OPENCONTAINER
I'd say this is rather unlikely, and maybe the evaluator learns a few new tricks so we can handle this without any scripting and in a single hotkey.
looks like 13.1.2 (Beta) and 13.2 do the trick, I need to update and try now
This is great news ! Thanks
The Go EXPANDBRANCH=collapse command (bound by default to Alt+Up) now automatically collapses the parent branch if the currently selected item is a file or an already-collapsed folder. Add the noparent argument to disable this new behaviour.