Force Branch View when Details View is active?
-
- Posts: 90
- Joined: 13 Aug 2018 07:16
- Location: USA
Force Branch View when Details View is active?
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?
XYPlorer, Great Form -- Awesome Function
Re: Force Branch View when Details View is active?
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.Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440
-
- Posts: 90
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Force Branch View when Details View is active?
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:
Any thoughts?
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
Any thoughts?
XYPlorer, Great Form -- Awesome Function
Re: Force Branch View when Details View is active?
After painting the file list
if (get("view") == "0") { goto "<newpath>? /flat"; }
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 90
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Force Branch View when Details View is active?
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"; }
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"; }
XYPlorer, Great Form -- Awesome Function
Re: Force Branch View when Details View is active?
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 90
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Force Branch View when Details View is active?
Interesting; so the script definitely works for you. Whenever I choose View > Details... it doesn't execute the script.
XYPlorer, Great Form -- Awesome Function
Re: Force Branch View when Details View is active?
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...
One of my scripts helped you out? Please donate via Paypal
-
- Posts: 90
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Force Branch View when Details View is active?
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!
#311; #302;
Every time I run that, it will Toggle between LIST VIEW | DETAILS VIEW with BRANCH VIEW.
Thanks!
XYPlorer, Great Form -- Awesome Function
-
- Posts: 90
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Force Branch View when Details View is active?
To get it to toggle properly, I had to use this:
This is super helpful when doing searches. Thanks Highend & KlownBoy!
Code: Select all
#304; #311;
XYPlorer, Great Form -- Awesome Function
Re: Force Branch View when Details View is active?
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.
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#p158075Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440
-
- Posts: 90
- Joined: 13 Aug 2018 07:16
- Location: USA
Re: Force Branch View when Details View is active?
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:
seems to be working, but I haven't tested it very much in real world environment... so we'll see.
- 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
Code: Select all
#304; #311;
XYPlorer, Great Form -- Awesome Function