Page 1 of 1

Live Filter: Make the "&" optional

Posted: 16 May 2023 13:04
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?

Re: Live Filter: Make the "&" optional

Posted: 16 May 2023 20:02
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"

Re: Live Filter: Make the "&" optional

Posted: 16 May 2023 20:13
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.

Re: Live Filter: Make the "&" optional

Posted: 17 May 2023 12:48
by admin
Wow, this is so natural and useful, I'm almost shocked that I did not add it years ago. Next beta. :tup:

Re: Live Filter: Make the "&" optional

Posted: 17 May 2023 12:58
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.

Re: Live Filter: Make the "&" optional

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

Re: Live Filter: Make the "&" optional

Posted: 18 May 2023 13:26
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!!

Re: Live Filter: Make the "&" optional

Posted: 29 May 2023 07:19
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.

Re: Live Filter: Make the "&" optional

Posted: 30 May 2023 09:08
by admin
Yeah, bug. Fix comes. :tup:

Re: Live Filter: Make the "&" optional

Posted: 13 Aug 2023 19:58
by admin
admin wrote: 17 May 2023 18:11 This is better than that weird shotgun tweak. I will remove the tweak later.
Done.

Re: Live Filter: Make the "&" optional

Posted: 14 Aug 2023 14:03
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. ;)