Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Schuller
Posts: 195
Joined: 02 May 2023 21:08

Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by Schuller »

I want to set TagMaxTagsInMenu=5 in the Xyplorer.ini file but also want to define what those 5 tags are and set them so they don't change in the tool bar buttons "Find by Tags" and "Add Tags". Each time I add more tags the list populates with the last added tags.
Can someone please tell me if this is possible to configure. I know about the tag clouds catalog option and I'm using that but that is not what I want in this case. I have a sort of master set of tags that get used the most across catalogs, tab sets and so on and would find it convenient at the top.

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

Re: Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by highend »

Afaik not possible that way.

The option: Write a script that behaves like those buttons (evtl. with reduced functionality for the find tags button, depending on what you really need) that you can populate with your own <x> number of tags
One of my scripts helped you out? Please donate via Paypal

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

Re: Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by highend »

E.g.:
Find tags from favorite tags_v0.1.xys
To see the attached files, you need to log into the forum.
One of my scripts helped you out? Please donate via Paypal

Schuller
Posts: 195
Joined: 02 May 2023 21:08

Re: Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by Schuller »

How does work or get applied? I tried copying to a user button but nothing?

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

Re: Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by highend »

Then show the user button setup?
One of my scripts helped you out? Please donate via Paypal

Schuller
Posts: 195
Joined: 02 May 2023 21:08

Re: Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by Schuller »

user button setup.jpg
user button setup-01.jpg
To see the attached files, you need to log into the forum.

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

Re: Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by highend »

You commented out the full script code and are wondering why nothing happens? oO
One of my scripts helped you out? Please donate via Paypal

Schuller
Posts: 195
Joined: 02 May 2023 21:08

Re: Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by Schuller »

Okay, I'll figure it out later

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

Re: Tweak XYplorer.ini to force a defined set of 5 tags to always stay at top of list

Post by highend »

The correct way to handle this stuff is to copy the .xys file into your XY scripts folder, rename it by stripping the version info (==> Find tags from favorite tags.xys (or however you want to call it)) and then load the script from the button:

On left click: load "Find tags from favorite tags.xys";

Why this way?
Easier to update, easier to edit (with a good editor, syntax-highlighting, better edit options, etc.)
One of my scripts helped you out? Please donate via Paypal

Post Reply