[Solved] Highlight filenames with "double" extensions issue

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
prino
Posts: 354
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

[Solved] Highlight filenames with "double" extensions issue

Post by prino »

I do highlight .asm files in red, but don't highlight .txt files. So why is "timer.asm.txt" highlighted in red?
Last edited by prino on 02 Mar 2025 22:53, edited 1 time in total.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

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

Re: Highlight filenames with "double" extensions issue

Post by highend »

Highlighting by doing _what_?
One of my scripts helped you out? Please donate via Paypal

prino
Posts: 354
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Highlight filenames with "double" extensions issue

Post by prino »

F9, Color Filters
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

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

Re: Highlight filenames with "double" extensions issue

Post by highend »

And now we are guessing what the filter definition is?
One of my scripts helped you out? Please donate via Paypal

prino
Posts: 354
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Highlight filenames with "double" extensions issue

Post by prino »

.asm, at position 15, with color red is checked, .txt, at 10, not.

Issue is that XY assumes everything after the first dot to be extension. Should be after last dot!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

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

Re: Highlight filenames with "double" extensions issue

Post by highend »

Does that look like if something's off? No...
1.png
1.png (17.62 KiB) Viewed 1529 times
One of my scripts helped you out? Please donate via Paypal

prino
Posts: 354
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Highlight filenames with "double" extensions issue

Post by prino »

The same, except for the rounded rectangles and that doesn't change things.

XY 26.90.0201
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

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

Re: Highlight filenames with "double" extensions issue

Post by admin »

Mind the * in *.asm.

prino
Posts: 354
Joined: 18 Mar 2012 21:14
Location: Vilnius, Lithuania
Contact:

Re: Highlight filenames with "double" extensions issue

Post by prino »

Yes, using *.asm it works. Counterintuitive...
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
At last, a tiny bit of programming here... :mrgreen:

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

Re: [Solved] Highlight filenames with "double" extensions issue

Post by admin »

Really? Pretty standard if you ask me.

Horst
Posts: 1331
Joined: 24 Jan 2021 12:27
Location: Germany

Re: Highlight filenames with "double" extensions issue

Post by Horst »

prino wrote: 02 Mar 2025 22:53 Yes, using *.asm it works. Counterintuitive...
That's the standard in all sorts of tools.
Windows 11 Home, Version 25H2 (OS Build 26200.7171)
Portable x64 XYplorer (Actual version, including betas)
Display settings 1920 x 1080 Scale 100%
Everything 1.5.0.1400a (x64), Everything Toolbar 2.1.0, Listary Pro 6.3.6.99

Post Reply