Live Filter Highlight Matches not working

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
jupe
Posts: 3462
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Live Filter Highlight Matches not working

Post by jupe »

I noticed that the Live Filter Highlight Matches option doesn't seem to be functioning anymore, in addition, when using get('spotpatterns') the live filter query is returned by it when the Highlight Matches option is enabled, I am not sure it should, because you can get the live filter query by other means, but not the manually entered spot patterns.

highend
Posts: 14993
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Live Filter Highlight Matches not working

Post by highend »

It was last working in 21.30.0022
Couldn't test 0023 + 0024 because of the overflow error
but in 21.30.0025 it isn't working anymore
One of my scripts helped you out? Please donate via Paypal

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

Re: Live Filter Highlight Matches not working

Post by admin »

Indeed. That's since 20201209 where I did some reordering for CEA. Fixed in next beta.

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

Re: Live Filter Highlight Matches not working

Post by jupe »

Highlight matches seems to work again in 21.40.0001 but what about the spot patterns being overwritten with the live filter query when highlight matches is switched on, is that correct? It makes it so you can no longer easily get the last entered spot pattern if you use live filter afterwards/switch to a live filtered tab.

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

Re: Live Filter Highlight Matches not working

Post by admin »

Has it been different before? I don't think so.

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

Re: Live Filter Highlight Matches not working

Post by jupe »

No it has probably been like this since Highlight matches was implemented for LF, but does that mean it isn't an issue? It makes get('spotpatterns') pretty useless if you have highlight matches enabled and use the live filter. Anyway I can work around it if you don't see it as being an issue.

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

Re: Live Filter Highlight Matches not working

Post by admin »

I agree. (My question was just meant to ensure that it has not been a recent regression.)

Spot patterns are extremely volatile, they are not saved across sessions, tabs, or even list refresh events. Applying a Live Filter currently involves a list refresh, so the spot patterns are gone. Additionally, the Live Filter highlighting uses the same code as the spot patterns, so it overwrites what is returned by get('spotpatterns').

So far the talking to myself. Yes, this can be improved. Maybe spot patterns should survive a Live Filter toggle?

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

Re: Live Filter Highlight Matches not working

Post by jupe »

From my point of view, I am not fussed about the visual highlighting of the spot pattern being lost when using LF, but I think you should still be able to retrieve the last used spot pattern with that function instead of the last used LF query, but I realise it may be tricky if live filter highlighting uses the same code, so may not be viable to implement.

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

Re: Live Filter Highlight Matches not working

Post by admin »

Oh, I just saw that part is easy. Next version will have it.

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

Re: Live Filter Highlight Matches not working

Post by jupe »

Thanks, this works well now. :cup:

Post Reply