Page 1 of 1
Possible to organize "Favorite Files" under menus/submenus?
Posted: 03 May 2016 15:07
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
Re: Possible to organize "Favorite Files" under menus/submen
Posted: 03 May 2016 15:39
by bdeshi
No, unfortunately that is not possible without scripted favorite items.
Re: Possible to organize "Favorite Files" under menus/submen
Posted: 03 May 2016 16:40
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
Re: Possible to organize "Favorite Files" under menus/submen
Posted: 03 May 2016 19:24
by LittleBiG
Re: Possible to organize "Favorite Files" under menus/submen
Posted: 06 May 2016 07:35
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.
Re: Possible to organize "Favorite Files" under menus/submen
Posted: 06 May 2016 10:47
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)?
Re: Possible to organize "Favorite Files" under menus/submen
Posted: 06 May 2016 13:55
by bdeshi
I'm sure his next efforts will be better.

Re: Possible to organize "Favorite Files" under menus/submen
Posted: 06 May 2016 19:49
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.
Re: Possible to organize "Favorite Files" under menus/submen
Posted: 06 May 2016 20:17
by highend
Sorry, still a complete mess
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.
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.