Filter By Selection not working with multiple items

Things you’d like to miss in the future...
Post Reply
stphn17
Posts: 10
Joined: 17 Dec 2021 12:19

Filter By Selection not working with multiple items

Post by stphn17 »

Hi,
just noticed that, if you select multiple items and apply "Filter By Selection" (Alt+Shift+J) it's not working. No items are shown.
I checked, and it's because there are spaces between the OR-Delimiter "|".
Example:
"File 1" | "File 2" doesnt work
"File 1"|"File 2" works

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

Re: Filter By Selection not working with multiple items

Post by admin »

A assume the VFAllowSinglePipeOR=1 tweak it set at your end:

Code: Select all

v22.20.0220 - 2021-09-23 14:47
    * Visual Filters: Removed a singular inconsistency with Visual Filters and 
      Live Filters. They were the only places where surrounding spaces for | 
      (for Boolean OR) were not mandatory. Now they are mandatory.
      This change might break some of your code but consistency pays off in the 
      long run. If you want to preserve the old state, here's a tweak:
        VFAllowSinglePipeOR=1
      For upgraders the tweak is set automatically (XY never breaks old code). 
      But it's recommended to set it to 0 so you are guided to full consistency 
      and can safely share patterns with new users for whom surrounding spaces 
      are mandatory.
But of course it should work anyway with that tweak set. Next beta will fix it.

stphn17
Posts: 10
Joined: 17 Dec 2021 12:19

Re: Filter By Selection not working with multiple items

Post by stphn17 »

Yes, that setting was activated. But I don't remember activating it, but I guess that's due to the fact that it's by default enabled according to the comment.

By the way, while we are at it: The NOT operator "!" doesn't seem to be working for Live Filter. Is that intentional?

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

Re: Filter By Selection not working with multiple items

Post by admin »

This makes the difference: Configuration | Find and Filter | Filters & Type Ahead Find | Live Filter Box | Enable extended pattern matching

stphn17
Posts: 10
Joined: 17 Dec 2021 12:19

Re: Filter By Selection not working with multiple items

Post by stphn17 »

Thanks a lot!

Post Reply