Page 1 of 1
Force Branch View when Details View is active?
Posted: 02 May 2021 20:12
by Lusayalumino
This branch view is tremendous; thanks for adding this.

Is there a way to force Branch View (#311) any time Details View (#302) is activated?
Re: Force Branch View when Details View is active?
Posted: 02 May 2021 20:47
by klownboy
A one liner script like this will do it if (get("view") == "0") {#311;}, but to make it apply automatically, you would have to set up a Custom Event Action (CEA) in Configuration for "Changing locations". For the "Action" block, pick "Run script" from the drop down and in the "Script" block use what I have above. If you need additional help with that let us know.
Re: Force Branch View when Details View is active?
Posted: 04 May 2021 16:53
by Lusayalumino
Thanks so much KlownBoy... my first interaction with CEA's. Here's what I tried:
Configuration > General > Custom Event Actions > Changing Locations > [EVENT ITEM] > Run Script > if (get("view") == "0") {#311;}
I tried each of these [EVENT ITEMS] but none of them switched on Branch View when toggling to Details View:
- Before Browsing a Folder
After Browsing a Folder
After Painting the File List
I also tried putting the script in all 3 of the EVENT ITEMS, but still no joy.
Any thoughts?
Re: Force Branch View when Details View is active?
Posted: 04 May 2021 17:03
by highend
After painting the file list
if (get("view") == "0") { goto "<newpath>? /flat"; }
Re: Force Branch View when Details View is active?
Posted: 04 May 2021 17:24
by Lusayalumino
With respect to "after painting file list" - I tried all these variants, without success:
if (get("view") == "0") { goto "<newpath>? /flat"; }
if (get("view") == "0") { goto "<newpath>? /flat"; #311; }
if (get("view") == "0") { #311; goto "<newpath>? /flat"; }
if (get("view") == "0") { goto "<newpath>? /flat"; } { #311; }
if (get("view") == "0") { #311; } { goto "<newpath>? /flat"; }
Re: Force Branch View when Details View is active?
Posted: 04 May 2021 17:42
by highend
Re: Force Branch View when Details View is active?
Posted: 04 May 2021 18:55
by Lusayalumino
Interesting; so the script definitely works for you. Whenever I choose View > Details... it doesn't execute the script.
Re: Force Branch View when Details View is active?
Posted: 04 May 2021 19:10
by highend
Em. No^^ This is a change location script. It automatically fires when you enter a folder. There is no internal way to run a script just because you're manually switching a view mode. You'd need e.g. an AutoHotkey script that monitors XYs behaviour and does that...
Re: Force Branch View when Details View is active?
Posted: 04 May 2021 20:22
by Lusayalumino
Ahhhh... gotchya. I'll just do a script and bind it to a keyboard shortcut using:
#311; #302;
Every time I run that, it will Toggle between LIST VIEW | DETAILS VIEW with BRANCH VIEW.
Thanks!
Re: Force Branch View when Details View is active?
Posted: 04 May 2021 20:30
by Lusayalumino
To get it to toggle properly, I had to use this:
This is super helpful when doing searches. Thanks Highend & KlownBoy!
Re: Force Branch View when Details View is active?
Posted: 05 May 2021 01:20
by klownboy
As highend stated, the CEA for "Changing locations" is only going to work for you when you enter a folder not when switching views. You may want to consider having a saved folder view(s), FVS for those folders you want in detail view (i.e., save the FVS for that folder in detail view). This way when you first enter that particular folder(s), the folder will be in detail view and the CEA script for changing location will also put in branch view and as you mentioned, you could have a customized keyboard shortcut or CTB to cycle the branch view when needed.
You can also script to detect if there is a saved folder view (FVS), for example in "Detail view" and have the script only work for those folders you have a saved folder view in Detail view.
get("FVS", folder, "view"); See
viewtopic.php?f=7&t=13582&start=75#p158075
Re: Force Branch View when Details View is active?
Posted: 05 May 2021 14:53
by Lusayalumino
Thanks klownboy. I feel bad, as I should have given more detail in my opening problem statement. I have a bunch of custom searches created, and generally I want thumbs in the results (my default view is thumbs). But after running some of the searches, I sometimes want to toggle between LIST VIEW and DETAILS VIEW + BRANCH VIEW. I have my favorite views bound to keyboard shortcuts:
- CTRL+1 = List View (toggles between List View & Details View - this is where I wanted to add Details View + Branch View)
CTRL+2 = Details with Thumbs
CTRL+3 = Thumbs 1
CTRL+4 = Etc, etc
So far, Replacing CTRL+1 with
seems to be working, but I haven't tested it very much in real world environment... so we'll see.