Trick that works for Favorite Folders fails in Power Filters

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Trick that works for Favorite Folders fails in Power Filters

Post by aurumdigitus »

A trick I have used since shortly after the last Ice Age has been to have "Favorite Folders"::#612; as the last item in the list so when using the TB it was possible to get there directly for modification without having to go through List Management per se.

Now that Power Filters has grown on me have tried the same concept placing "Power Filters"::#652; in there but it does not function.

Does the problem lie with the syntax or the way Power Filters is written and coded?

Clearly it would be nice to have this work and think other users would find it convenient too. :)

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

Re: Trick that works for Favorite Folders fails in Power Fil

Post by admin »

aurumdigitus wrote:Does the problem lie with the syntax or the way Power Filters is written and coded?
Yep. :)

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Trick that works for Favorite Folders fails in Power Fil

Post by aurumdigitus »

Hummmm. As you seem less than enthusiastic about the idea how about the ability to "comment out" unwanted filters instead of having to remove them? :eh:

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

Re: Trick that works for Favorite Folders fails in Power Fil

Post by admin »

Currently I'm into keeping this feature as simple as possible.

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Trick that works for Favorite Folders fails in Power Fil

Post by aurumdigitus »

Understand your position. Do remember what I said about Babe Ruth!

Have a handful of CTB's left. Maybe set one to #652. Not sure about an apropriate icon though ...

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

Re: Trick that works for Favorite Folders fails in Power Fil

Post by TheQwerty »

aurumdigitus wrote:Understand your position. Do remember what I said about Babe Ruth!

Have a handful of CTB's left. Maybe set one to #652. Not sure about an apropriate icon though ...
Maybe you've already considered it but you could make an imitation Visual Filter button if you don't mind an additional click to get to the Dropdown arrow's menu (or make a Power Filter button of it's own).

If Don grants my wish we could make it an even better imitation.

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Trick that works for Favorite Folders fails in Power Fil

Post by aurumdigitus »

TheQwerty wrote:Maybe you've already considered it but you could make an imitation Visual Filter button...or make a Power Filter button of it's own
Do not comprehend. Explanation please. :oops:

BTW - What is your wish ADMIN is cerebrating on?

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

Re: Trick that works for Favorite Folders fails in Power Fil

Post by TheQwerty »

aurumdigitus wrote:BTW - What is your wish ADMIN is cerebrating on?
It's for a GetList function which you could use to retrieve the Power Filters list. Then you could use that with Load/PopupMenu to customize the menu with your own additions.

Don put it on the backburner though so there's no ETA.

aurumdigitus wrote:
TheQwerty wrote:Maybe you've already considered it but you could make an imitation Visual Filter button...or make a Power Filter button of it's own
Do not comprehend. Explanation please. :oops:
Sorry I didn't explain that better. :oops:

You could create a CTB that imitates the Visual Filter button through use of the Button command. For example:
Open the snippet importer (go to "::Snippet;" in the address bar).
Paste the following and hit okay:

Code: Select all

Snip: CTB 1
  XYplorer 11.90.0208, 1/17/2013 9:20:18 AM
Action
  NewUserButton
Name
  Filter
Icon
  :visualfilter
ScriptL
  Button('visualfilter', 1);
ScriptR
  "Power Filters" Button('visualfilter', 8);
  "Edit Power Filters" #652;
  "Options" Button('visualfilter', 2);
FireClick
  1
That creates an imitation Visual Filter button. It's an imitation because the Right Click requires an additional click to access the other menus. EDIT: But otherwise it offers all the same actions the builtin Visual Filter does.

I know there's been discussion on auto-executing CTB's right-click scripts, but sadly I haven't paid close enough attention to know if something came of those, nor have I played with improving this with "<get trigger>".


The other option would be to just create a CTB that displays a menu of filters you want to apply and pretend like the Power Filters list and menu don't actually exist in XY - so you'd manage them however you'd like in your script. After all "Power Filters" is just a fancy name for "Visual Filters which work on Properties."

Since my wish doesn't sound like it will be granted soon if you wanted to incorporate the Power Filters list or Most Recently Used filters into this CTB you'd have to read them in from the config file, which is why I say it's easier to pretend they don't exist and manage it all within a script. ;)

Hope that helps!

aurumdigitus
Posts: 1075
Joined: 30 May 2008 21:02
Location: Lake Erie

Re: Trick that works for Favorite Folders fails in Power Fil

Post by aurumdigitus »

@ TheQwerty - Thank you for the careful description as to what is going on here. As Don has stated he wishes to keep Power Filters simple, over the weekend your snippet will be implemented and tested

Hope that GetList eventually is melded into XY. Sounds like it would be a very powerful tool in the armamentarium for scripters.

Post Reply