get("FavoriteFolders");

Features wanted...
Post Reply
highend
Posts: 13313
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

get("FavoriteFolders");

Post by highend »

Hi,

I'm currently recreating the custom XY items in the shell context menu for the tree and list (by scripting them).
Why? Because they are missing in the x64 shell context menu xD

Most of these entries are available as internal commands but a few aren't.

Atm I'm struggling with "Move/Copy/Backup To" -> ... -> Favorite Folders -> <list of favorite folders>

Sure, when you save the config, they are available in the XYplorer.ini file under [Favorites].
But
- Without saving the config the list is outdated
- Saving the whole config just to update the list is... :blackstorm:

So, may I ask for another parameter to the SC get(), specifically

Code: Select all

get("FavoriteFolders", [separator="|"]);
Which returns the list in the same way as "Menu - Favorites - Favorite Folders"
If icons paths are included -> Great
If not -> I can live with it

Thanks!
One of my scripts helped you out? Please donate via Paypal

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: get("FavoriteFolders");

Post by TheQwerty »

Wouldn't you prefer a way to retrieve AND modify either favorites list in a function with a short and sweet name like favs()?

EDIT: Through for your needs GetList() would be a great option too!

*sigh* :(

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

Re: get("FavoriteFolders");

Post by highend »

:mrgreen:

I didn't want to ask for too much^^ (as Don already said: a lot of work would be involved).
A small step is still a step...

I knew I've seen a similar feature request before but a quick search for "favorite" didn't reveal it (maybe: fast enough)
One of my scripts helped you out? Please donate via Paypal

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: get("FavoriteFolders");

Post by LittleBiG »

highend wrote:I knew I've seen a similar feature request before but a quick search for "favorite" didn't reveal it (maybe: fast enough)
Yes, for example here, not so long ago: viewtopic.php?f=5&t=15589
I also mentioned/asked for it a couple of times, first in 2012, last time here, in the last sentence: viewtopic.php?f=5&t=15229#p138409

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

Re: get("FavoriteFolders");

Post by admin »

TheQwerty wrote:Wouldn't you prefer a way to retrieve AND modify either favorites list in a function with a short and sweet name like favs()?
*sigh* :(
Finally I get round to do the irrestible stuff...

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

Re: get("FavoriteFolders");

Post by highend »

Cool!
One of my scripts helped you out? Please donate via Paypal

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: get("FavoriteFolders");

Post by klownboy »

Another cool :tup:
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

Post Reply