Color filtering

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
Sakis
Posts: 34
Joined: 18 Sep 2007 05:38
Location: Greece

Color filtering

Post by Sakis »

A minor color filtering bug I've noticed today. Seems that color filtering applies not only to file extension but name too, if this is in form a.file.name.ext

For example Not_an.html.file.bin is highlighted as html. Also, Not.zip.file.pdf is detected as zip file.
Just another proud XYplorer registered user.

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

Re: Color filtering

Post by admin »

How did you define the filter? For extensions it should be *.ext, not just .ext.

Sakis
Posts: 34
Joined: 18 Sep 2007 05:38
Location: Greece

Post by Sakis »

I didn't define any custom filter, just used XY default ones.
An actual example to reproduce the issue followes...

1. Enable default list color filter "*.htm;*.mht;*.php"
2. Create a file named "Advanced.HTML.Reference.chm"

As you see, filename is displayed blue coloured. Seems that XY detects the filename part .HTML. (Advanced.HTML.Reference.chm) as extension, probably due the usage of more than one dots.

I hope it helps
Just another proud XYplorer registered user.

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

Post by admin »

Sakis wrote:I didn't define any custom filter, just used XY default ones.
An actual example to reproduce the issue followes...

1. Enable default list color filter "*.htm;*.mht;*.php"
2. Create a file named "Advanced.HTML.Reference.chm"

As you see, filename is displayed blue coloured. Seems that XY detects the filename part .HTML. (Advanced.HTML.Reference.chm) as extension, probably due the usage of more than one dots.

I hope it helps
The default filter actually is *.htm*;*.mht;*.php
I did this to catch HTM and HTML with one filter. :) You proved now that this was stupid. Replace it by *.htm; *.html to have the same functionality but no bug.

Thanks!

Sakis
Posts: 34
Joined: 18 Sep 2007 05:38
Location: Greece

Post by Sakis »

Everything OK now.
Thanks Donald.
Just another proud XYplorer registered user.

Post Reply