Page 1 of 1

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

Posted: 18 Jan 2024 22:58
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.

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

Posted: 19 Jan 2024 00:25
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

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

Posted: 20 Jan 2024 13:06
by highend
E.g.:
Find tags from favorite tags_v0.1.xys

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

Posted: 21 Jan 2024 09:16
by Schuller
How does work or get applied? I tried copying to a user button but nothing?

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

Posted: 21 Jan 2024 09:19
by highend
Then show the user button setup?

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

Posted: 21 Jan 2024 09:26
by Schuller
user button setup.jpg
user button setup-01.jpg

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

Posted: 21 Jan 2024 09:37
by highend
You commented out the full script code and are wondering why nothing happens? oO

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

Posted: 21 Jan 2024 09:42
by Schuller
Okay, I'll figure it out later

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

Posted: 21 Jan 2024 09:54
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.)