Live Filter: Make the "&" optional

Features wanted...
Post Reply
Jerry
Posts: 805
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Live Filter: Make the "&" optional

Post by Jerry »

I would like to be able to filter the List to look for names having every one of a set of given strings, in any order, but without having to put an "&" between them. Or is this possible someway now through an option?

For example, if I want to see only files having "foo" and "bar" in the name, in any order, I want to enter "foo bar", instead of "foo & bar".

Search can work this way, so why not live filter?
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Live Filter: Make the "&" optional

Post by jupe »

Set this tweak

LiveFilterIsShotgun=1

follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak

Using this method though the words you input need to appear in the same order in the filename though, so in your example "bar foo" wouldn't work on a file called "foo something bar"

Jerry
Posts: 805
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Live Filter: Make the "&" optional

Post by Jerry »

jupe wrote: 16 May 2023 20:02 Set this tweak
LiveFilterIsShotgun=1
follow these instructions exactly on how to tweak: https://www.xyplorer.com/faq-topic.php?id=tweak Using this method though the words you input need to appear in the same order in the filename though, so in your example "bar foo" wouldn't work on a file called "foo something bar"
Nope. This does NOT work for me, even when words are in the same order appearing in file name. (And really, the order shouldn't matter). I verified the setting is in place in the ini file, when XYplorer is not running. I did not add a new line, just replaced the default value of 0 with 1.

The problem is that the tweak matches a file named "foo bar" but not "foobar". I want it to match both. The two words should find a match whereever, however they appear in the filename, without regard to embedded spaces, without regard to order.
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

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

Re: Live Filter: Make the "&" optional

Post by admin »

Wow, this is so natural and useful, I'm almost shocked that I did not add it years ago. Next beta. :tup:

Jerry
Posts: 805
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Live Filter: Make the "&" optional

Post by Jerry »

admin wrote: 17 May 2023 12:48 Wow, this is so natural and useful, I'm almost shocked that I did not add it years ago. Next beta. :tup:
Yes it is! It's also the way search works in Everything which I am always using in tandem with XYplorer.
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

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

Re: Live Filter: Make the "&" optional

Post by admin »

This is better than that weird shotgun tweak. I will remove the tweak later.

Jerry
Posts: 805
Joined: 05 May 2010 15:48
Location: The UnUnited States of America

Re: Live Filter: Make the "&" optional

Post by Jerry »

v24.40.0102 - 2023-05-17 19:36
+ Small dialogs with a Live Filter Box: Now the filter icon in the LFB has a
right-click menu where you can toggle the new option "Use space character for
Boolean AND". This option only affects filtering in small dialogs.
Some examples for supported small dialogs:
- Help | List All Commands...
- Go | Recent Locations...
- All List Management dialogs
Note that this functionality is identical to the "Fat Gun" tweak added in
v20.60.0007 - 2019-11-24 12:40, making it obsolete and marked for removal.
Thank you!!
Running on Windows 10 Pro 64-bit quad-core ASUS G752-VY notebook with 64 GB RAM, over 26 external USB3 drives attached via multiple powered hubs with letters and mount points, totaling 120+ TB.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Live Filter: Make the "&" optional

Post by jupe »

Don, not sure if it is possible to rectify, but FYI with this feature enabled in small dialogs, it seems to not be compatible with LiveFilterBooleanOR, so to use OR char, this new feature needs disabling, even if no space char is entered in filter string, and I don't mean I am trying to combine AND/OR simultaneously.

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

Re: Live Filter: Make the "&" optional

Post by admin »

Yeah, bug. Fix comes. :tup:

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

Re: Live Filter: Make the "&" optional

Post by admin »

admin wrote: 17 May 2023 18:11 This is better than that weird shotgun tweak. I will remove the tweak later.
Done.

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

Re: Live Filter: Make the "&" optional

Post by LittleBiG »

Pure old shotgun, it was weirdly interesting. I am curious if there will be a campaign for saving shotgun by the mass of users emerging from hiding. ;)

Post Reply