Possible to organize "Favorite Files" under menus/submenus?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
cadu
Posts: 287
Joined: 18 Mar 2012 21:50

Possible to organize "Favorite Files" under menus/submenus?

Post by cadu »

Hi,

I am using "Favorite Files" to set a kind of Windows "start menu" with my main apps (http://i.imgur.com/ZV6BSkE.png).

However, "Favorite Files" has become overpopulated vertically.

a) Is it possible to organize "Favorite Files" under menus/submenus?

b) Besides the "Favorite Files" way of organizing, would there be other ways/alternatives to set menus/submenus with apps in XYplorer, similarly to Windows "start menu"?

Many thanks!
Cadux

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Possible to organize "Favorite Files" under menus/submen

Post by bdeshi »

No, unfortunately that is not possible without scripted favorite items.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

klownboy
Posts: 4468
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

Re: Possible to organize "Favorite Files" under menus/submen

Post by klownboy »

There are a number of ways to make menus in XYplorer not associated with Favorite Files or Favorite Folders and there are quite a few threads on the forum. Here are a few of them I had bookmarked. http://www.xyplorer.com/xyfc/viewtopic. ... =15#p93665 and http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=13469 and http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=12308


tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: Possible to organize "Favorite Files" under menus/submen

Post by tiago »

Check this out, cadu: http://www.xyplorer.com/xyfc/viewtopic.php?f=7&t=15840

Code is a mess but working fine here.
Power-hungry user!!!

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Possible to organize "Favorite Files" under menus/submen

Post by highend »

Code is a mess
Why didn't you clean it up so that it get's:
- readable
- correctly indented
- without unnecessary code fragments
-> maintainable / changeable through somebody else (if someone wants to make a change on his own)?
One of my scripts helped you out? Please donate via Paypal

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Possible to organize "Favorite Files" under menus/submen

Post by bdeshi »

I'm sure his next efforts will be better. :)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: Possible to organize "Favorite Files" under menus/submen

Post by tiago »

highend wrote:
Code is a mess
Why didn't you clean it up so that it get's:
- readable
- correctly indented
- without unnecessary code fragments
Done as far as I see what could be re-done either on my side or original author's.
highend wrote:-> maintainable / changeable through somebody else (if someone wants to make a change on his own)?
Can't say much on this as I am myself changing it doing the best to preserve original looking. Which was fairly easy: SF taught me a bit so I'm a tad familiar to his coding as he always said new user friendliness was a goal.

@SammaySarkar:

Let's hope so...
Cheers!

@author:

While this is a workaround I'd still join the OT as my script requires some mumbo jumbo and its resulting favorites script is not possible to be easily updated, requiring a whole new run of entire process just for adding a single or many favorites to it.
Power-hungry user!!!

highend
Posts: 14996
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Possible to organize "Favorite Files" under menus/submen

Post by highend »

Sorry, still a complete mess :biggrin:

Code: Select all

   if ($opF >= $tt) { $op = $tt + 1; }
   else {  }
                    }
   else {  }
                     }
Things like that. WTF?

Empty if conditions (not shown above), empty else conditions, ...

A novice who tries to read such a script will probably never try to do some scripting afterwards.

If you really want to make it understandable, give variables speaking names.

Code: Select all

   $op++;
   $opF++;
   $opM++;
Great, but what is counted here? It's just an example of non-obvious variable names.

Btw, you didn't indent the contents of loops and please use either tabs or 4 spaces (not three).

You don't need to quote variables in all places.

Code: Select all

$LreL = $LreL . "$Lnr" . "$Ltk" . "|"; //name goes here
Either do it this way:

Code: Select all

$LreL = $LreL . $Lnr . $Ltk . "|"; //name goes here
or that way:

Code: Select all

$LreL = "$LreL$Lnr$Ltk|"; //name goes here
Second one is shorter but harder to read so you better use the first one.
One of my scripts helped you out? Please donate via Paypal

Post Reply