Mini Tree activation

Discuss and share scripts and script files...
Post Reply
Borut
Posts: 1466
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Mini Tree activation

Post by Borut »

Is there a way to explicitly activate or deactivate MiniTree? I have found just a way to toggle.

Please have mercy if the answer was obvious and I overlooked it.
Win 10 Pro 64bit

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Mini Tree activation

Post by serendipity »

Borut wrote:Is there a way to explicitly activate or deactivate MiniTree? I have found just a way to toggle.

Please have mercy if the answer was obvious and I overlooked it.
Toggle IS the way to activate/deactivate it.

Borut
Posts: 1466
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Mini Tree activation

Post by Borut »

At a certain point in script I want to activate it, irrespectively of its current state (be it on, or off, I want to put it on). And vice versa. I do not want to toggle.
Win 10 Pro 64bit

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Mini Tree activation

Post by serendipity »

Borut wrote:At a certain point in script I want to activate it, irrespectively of its current state (be it on, or off, I want to put it on). And vice versa. I do not want to toggle.
Oh, sorry my mistake. I don't see a way (maybe I overlooked).
Closest I got was to try and get minitree state by using "get ("#489");" but that is not yet coded.
Maybe others know a way.

admin
Site Admin
Posts: 65173
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Mini Tree activation

Post by admin »

serendipity wrote:
Borut wrote:At a certain point in script I want to activate it, irrespectively of its current state (be it on, or off, I want to put it on). And vice versa. I do not want to toggle.
Oh, sorry my mistake. I don't see a way (maybe I overlooked).
Closest I got was to try and get minitree state by using "get ("#489");" but that is not yet coded.
Maybe others know a way.
Correct, I also think coding get("#489") will be the only way. Or I add something to the loadtree command...

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: Mini Tree activation

Post by Stefan »

Borut wrote:At a certain point in script I want to activate it, irrespectively of its current state (be it on, or off, I want to put it on). And vice versa. I do not want to toggle.
Dirty trick as an work around,

if it is no problem to always save your configuration:

Code: Select all

#193;                                                 //File / Settings / Save Configuration to XYplorer.ini

   $MinitreeEnabled = getkey("Minitree", "Settings"); //read the XYplorer.ini

   if ($MinitreeEnabled == 0){#489;}                  //View / Mini Tree

admin
Site Admin
Posts: 65173
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Mini Tree activation

Post by admin »

admin wrote:Correct, I also think coding get("#489") will be the only way.
While I'm at it, any other desires of this type, IOW other comand IDs I should add here?

Zardoz2293
Posts: 594
Joined: 09 Nov 2011 20:20
Location: USA

Re: Mini Tree activation

Post by Zardoz2293 »

admin wrote:
admin wrote:Correct, I also think coding get("#489") will be the only way.
While I'm at it, any other desires of this type, IOW other comand IDs I should add here?
At the risk of being off topic, I was directed here for problems I'm having. I don't know enough about the command ID thing to know if I'm on the right 'branch' so to speak. So please excuse my ignorance. That topic was http://www.xyplorer.com/xyfc/viewtopic. ... 409#p68409

1. Branch View: Order By FOLDERS, FILES (default), but desire Order By FILES, FOLDERS
Zardoz2293 wrote:Default: Order By FOLDERS, FILE

Code: Select all

F:\XY.Test\Test\PDF\v3                                      <DIR>
F:\XY.Test\Test\PDF\v3\v3.10 (2005-10-03)                   <DIR>
F:\XY.Test\Test\PDF\v3\v3.10 (2005-10-03)\Install.exe
Required/Needed: Order By FILES, FOLDERS

Code: Select all

F:\XY.Test\Test\PDF\v3\v3.64 (2010-12-10)\Install.exe
F:\XY.Test\Test\PDF\v3\v3.64 (2010-12-10)                   <DIR>
F:\XY.Test\Test\PDF\v3                                      <DIR>
2. Branch View: Ability *not* to have List View switch displaying the Branch View with the included "status" bar being modified.

What are your thoughts? (if I'm in the wrong spot I'll delete and re-post elsewhere)
:off:MacOS Tahoe v26.1 | Windows 11 Pro v25H2.26200.7309 >> Scaling VMs: 2056x1285 @100%; 4112x2658 @400%

admin
Site Admin
Posts: 65173
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Mini Tree activation

Post by admin »

Zardoz2293,

1. No, but I could add a command to reverse the current sort order (whatever it is). Would that help?

2. Don't understand.

Zardoz2293
Posts: 594
Joined: 09 Nov 2011 20:20
Location: USA

Re: Mini Tree activation

Post by Zardoz2293 »

admin wrote:1. No, but I could add a command to reverse the current sort order (whatever it is). Would that help?
Yes, it would be helpful with some cases as the order is perfect in reverse order.
admin wrote:2. Don't understand.
I'll create another thread as it has nothing to do with Mini Tree activation. http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=7568

Thanks Don!
Last edited by Zardoz2293 on 31 Jan 2012 14:27, edited 1 time in total.
:off:MacOS Tahoe v26.1 | Windows 11 Pro v25H2.26200.7309 >> Scaling VMs: 2056x1285 @100%; 4112x2658 @400%

Borut
Posts: 1466
Joined: 19 Oct 2010 19:29
Location: Win10 Pro 64b 22H2, @120DPI (125%)

Re: Mini Tree activation

Post by Borut »

Code: Select all

v10.80.0102 - 2012-01-31 12:41
      Example:
        echo get("#489", "Mini Tree", "Maxi Tree");
Nice, thanks Don! So I am using minimalistic things like these, if anyone once needs some simple examples:

Code: Select all

"MiniTree: Load : minitreeload"
   loadtree "", 3;
   #1040; // optimize tree

"MiniTree: Toggle : minitreetoggle"
   #489;  // toggle minitree
   #1040; // optimize tree

"MiniTree: On : minitreeon"
   if (get("#489")==0) {#489;}; // toggle if minitree off
   #1040;                      // optimize tree

"MiniTree: Off : minitreeoff"
   if (get("#489")==1) {#489;}; // toggle if minitree on
   #1040;                      // optimize tree
Win 10 Pro 64bit

abercrombie
Posts: 2
Joined: 27 Apr 2012 05:44
Location: New York
Contact:

Re: Mini Tree activation

Post by abercrombie »

serendipity wrote:
Borut wrote:Is there a way to explicitly activate or deactivate MiniTree? I have found just a way to toggle.

Please have mercy if the answer was obvious and I overlooked it.
Toggle IS the way to activate/deactivate it.
Thanks for your reply. I have activated it .

Post Reply