Power Filter [v1.0 alpha4]

Discuss and share scripts and script files...
admin
Site Admin
Posts: 64838
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Power Filter [v1.0 alpha4]

Post by admin »

xycooper wrote:@FluxTorpedoe
New script works great for me. Just one request could you add "Filter tags".

@Don
I might be dreaming but, it would be great if there was a way for the user to pick
which filters they would like to have or add to your list. Though your list would be good for most.
Actually you will be able to fully edit and add to the filters via list management. :)

eil
Posts: 1814
Joined: 13 Jan 2011 19:44

Re: Power Filter [v1.0 alpha4]

Post by eil »

need easy way to add those icons from screen, please.
yet, can i somehow restrain power reset to only "when the view is filtered, a Left Click (Power Reset) will only remove the filter and won't change the view or sorting." ?
Win 7 SP1 x64 100% 1366x768|1900x1080

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Power Filter [v1.0 alpha4]

Post by FluxTorpedoe »

@Don
Geeeez, you must've been part of the Demo Scene to be coding this fast!!! :appl: 8)
And as glad as I am to have been able to bring a tiny contribution to XYplorer's spirit, I gotta say IMO your implementation through "List Management" (and updated syntax) is pretty smart - powerful yet opened! ;)

@all
The icons pack is now uploaded correctly in the first post.

• Since the new simplified syntax = less code, and less code = (potentially) less trouble (and more openness in user-defined item types filtering), I implemented it to give it a try. So here's a "private" alpha 6 - working just fine here, but remember you MUST have the latest XYplorer beta (>= 11.80.0106).
PowerFilter.xys
(15.06 KiB) Downloaded 409 times
---------
xycooper wrote:Just one request could you add "Filter tags".
That makes perfect sense! It's in the new version (alpha 6).
---------
eil wrote:can i somehow restrain power reset to only "when the view is filtered, a Left Click (Power Reset) will only remove the filter and won't change the view or sorting." ?
Maybe I don't understand your request... The script is behaving this way by default, so you don't have to do anything.
It was only reseting "Sorting" to "Name" when the view was in List, but I removed it since I discovered that by default XYplorer now has "Show sort headers in all view" ON by default.

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Power Filter [v1.0 alpha4]

Post by kunkel321 »

Yay! I managed to change the icons without breaking the whole thing!
Of course I still think my custom icon http://www.xyplorer.com/xyfc/viewtopic. ... 909#p79432 is the best thing since sliced bread! :whistle: :wink:
It occurs to me that we could probably come up with some icons for the other menu items as well, though if your PowerFilter gets integrated as a full-on XYplorer feature, then it will probably lose all of its menu icons anyway :(

Feature ideas:
- It would be nice if we could define our own time filters AND ISOLATE time periods (e.g. "Modified Last Week" would exclude older items, but also exclude items that were modified THIS week).
- I don't know if this is possible, but have the script read the part of the XYplorer.ini that defines the visual filters. That way, we could use Don's GUI for making a text-based custom visual filter, but have the filter show up on our PowerFilter list. (I do, of course, realize there's no room for this!) :lol:

Question: Can I rearrange the menu items (via the script) without breaking the thing? I'd like to have the show/hide folders and size ones at the top; and the multimedia, label, and comment ones at the bottom.

Thanks for your work on this Flux! You're a real asset to the Starfleet arsenal!
ste(phen|ve) kunkel

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Power Filter [v1.0 alpha4]

Post by FluxTorpedoe »

@Don
Yes those new Filters are even better than one could have thought... :wink:
And they're especially powerful when stored in task-oriented Tabsets! (or whole "Sessions" :whistle: :biggrin: )
- In this spirit, I don't know if I missed something but can you already "power filter" by tags/labels/comments?

@kunkel
- I'm not sure an "isolated period" would be that interesting as a dedicated filter - at least in this script. Its place belongs more in a search (it's in PF's brother "Power Search", which I'll upload someday when this one's settled...).
- As for the script that grabs a script to run a script... Well, that's sounds as fun as convoluted! :kidding: But I'd probably better spend my time proof-testing the Power-related tetralogy (I'd forgotten one: they're Filter, Search, Select, and Mark).
kunkel321 wrote:Can I rearrange the menu items (via the script) without breaking the thing?
Sure! you can move items in any order without breaking anything - as long as you don't "insert" them in other items of course.
You can even rename the titles if you want, except the "_hidden" ones (with the preceding underscore), because they're called by other functions/subroutines.

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

Re: Power Filter [v1.0 alpha4]

Post by admin »

FluxTorpedoe wrote:@Don
Yes those new Filters are even better than one could have thought... :wink:
And they're especially powerful when stored in task-oriented Tabsets! (or whole "Sessions" :whistle: :biggrin: )
- In this spirit, I don't know if I missed something but can you already "power filter" by tags/labels/comments?
Not yet done, but will come a later version, next year.

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

Re: Power Filter [v1.0 alpha4]

Post by LittleBiG »

FluxTorpedoe wrote:- In this spirit, I don't know if I missed something but can you already "power filter" by tags/labels/comments?
This feature I myself missed badly, because I use lots of comments. However, I thougth Don would implement it much earlier, using the very simple way by extending Visual Filters to labels, tags and comments, since they are text information similar to the file name, and they can be different user by user, so they don't have strict general form as File Size or File Date. Additionaly, comments are free texts, it rarely can be define as a Power Filter. (Tags and Labels fit better to Power Filter)

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Power Filter [v1.0 alpha4]

Post by FluxTorpedoe »

admin wrote:Not yet done, but will come a later version, next year.
Thanks for the info.
It was more out of curiosity as I was wondering if I'd missed a step. Because anyway, what we have covers a pretty huge ground already, between filters and power filters, and searches (and this script).

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: Power Filter [v1.0 alpha4]

Post by 40k »

Just installed it. Works like a charm and it's probably something Don may want to implement as a native feature. Possibly with credit to the original author.
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Power Filter [v1.0 alpha4]

Post by binocular222 »

Why make so lengthy code? I can achieve the same result with 2 simple files:
File 1: Filter.xys

Code: Select all

  If( get(VisualFilter) == ""){Load "Filter-child"}
  Else{Filter}
File 2: Filter-child.xys

Code: Select all

"Exe|<xypath>\icon\exe.ico" filter "*.exe;*.com;*.bat;*.msi"
"Office|<xypath>\icon\3Office.ico" Filter "*.c; *.chm; *.cpp; *.doc; *.docm; *.docx; *.dot; *.dotm;*.xltx"
"Video|<xypath>\icon\video camera.ico" Filter "*.3g2; *.3gp; *.3gp2; *.3gpp; *.amr; *.asf; *.avi; *.m2ts; *.mod"
"Music|<xypath>\icon\Music.ico" Filter "*.aac; *.ac3; *.aif; *.aifc; *.aiff; *.au; *.cda; *.dts; *.fla; *.flac; *.amr"
"Text|<xypath>\icon\Text.ico" Filter "*.aac; *.vbs; *.txt; *.ini; *.nfo; *.key; *.reg; *.xys; *.sfv"
"Empty" Filter "size: 0"
Just save these 2 files into Xyplorer\Script folder, have separe Hotkey/User Button to trigger file 1.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Power Filter [v1.0 alpha4]

Post by kunkel321 »

binocular222 wrote:Why make so lengthy code? I can achieve the same result with 2 simple files:...
A sleek implementation, to be sure... But I'll bet you can't add "Filter by selected extension(s)" in a single line of code. :twisted:

EDIT: After looking up #356 in the Keyboard Jump tool, I'd like to recant my previous statement! :whistle:
Last edited by kunkel321 on 19 Dec 2012 22:06, edited 2 times in total.
ste(phen|ve) kunkel

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Power Filter [v1.0 alpha4]

Post by kunkel321 »

RE The longer Flux version...
For some reason, in Vista, Folders don't seem to be recognized as folders...

"Hide Folders" does not hide them, and "Isolate" hides everything...
This appears to be what is applied:
"Folders Only" attr: d

Seems to work okay on Win 7 though.
ste(phen|ve) kunkel

FluxTorpedoe
Posts: 904
Joined: 05 Oct 2011 13:15

Re: Power Filter [v1.0 alpha4]

Post by FluxTorpedoe »

Hi there!
kunkel321 wrote:in Vista, Folders don't seem to be recognized as folders..."Hide Folders" does not hide them, and "Isolate" hides everything...
Hmmm, maybe the attrib has a different name under Vista... I'll try and look into this issue, and maybe revert the code to the old one (still available under comments). It was less "clean" but the file/folder focus was kept (when applicable), which is a plus.
binocular222 wrote:Why make so lengthy code? I can achieve the same result with 2 simple files
Hmmm, you're right...
But why stop there: you can even do the "same" with 0 file! :biggrin: Yep, now that Power Filters are integrated, you already have the "same" result with no extra code or button...
Well, seriously, if you venture a bit into the code, you'll realize it does quite a bit more, and differently. But I understand that with the new integrated Power Filters, most users may not need a button with that much options - though I still do and use it pretty much everyday. :)

@all
I'll post an small update soon, with a few generic fixes, and extra(s), like my new favorite: "Filter Last Modified"...

Have a nice day, 8)
Flux

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

Re: Power Filter [v1.0 alpha4]

Post by LittleBiG »

LittleBiG wrote:
FluxTorpedoe wrote:- In this spirit, I don't know if I missed something but can you already "power filter" by tags/labels/comments?
This feature I myself missed badly, because I use lots of comments. However, I thougth Don would implement it much earlier, using the very simple way by extending Visual Filters to labels, tags and comments, since they are text information similar to the file name, and they can be different user by user, so they don't have strict general form as File Size or File Date. Additionaly, comments are free texts, it rarely can be define as a Power Filter. (Tags and Labels fit better to Power Filter)
Don, as you are in the middle of improving the Visual Filter, let me remind you of this. This wish celebrates its birthday soon, but the importance didn't change.

Post Reply