Portable file icons

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

Re: Portable file icons

Post by admin »

Borut wrote:Is the pattern 2*.txt supposed to work (meaning: files positioned anywhere, having names starting with 2 and the extension txt), or was I expecting too much?
If you provide wildcards you have to provide ALL wildcards needed to match the full path of the file in question. So for your job the pattern should look like this:

Code: Select all

*\2*.txt
You cannot expect too much from CFI. :mrgreen:

highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Portable file icons

Post by highend »

I've added the following entry to that list:

Code: Select all

+*.s02>D:\Install\Tools\Packer\WinRAR\.Settings\.IconWinzip.ico
and created a file named "test.s02".

The PFI list shows the correct icon for it, but the pane doesn't reflect that change?

Btw, I'd like to be able to define entries where single characters can use a placeholder as well.

Like:

Code: Select all

+*.r??>D:\Winrar.ico
Maybe (even better) by distinguishing if it can be a digit or a normal character. More like a regex definition.

For *.r01 - *.r99 (new Winrar extension format):

Code: Select all

+*.r[0-9][1-9]
Probably too much work for you...
One of my scripts helped you out? Please donate via Paypal

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

Re: Portable file icons

Post by admin »

@highend: Hmm, all of your examples are already supported and work fine here. Are you sure they don't work at your end?

highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Portable file icons

Post by highend »

Em, oh^^

I've looked at the changelog before and didn't see any occurrences of "will also work with regex definitions" so I didn't try them ;)

After removing the + sign in front of an entry, everything is working as expected.

Sorry, seems I'm still too tired...
Last edited by highend on 21 Apr 2013 10:46, edited 1 time in total.
One of my scripts helped you out? Please donate via Paypal

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

Re: Portable file icons

Post by admin »

It's no regex but groups ([a-z], [1-9] ...) are supported by the normal XYplorer wildcard pattern matching, along with the standard wildcards *, ?, and #.

I have no plans to support regex here (would be too slow).

I'll remove the + signs from my examples to make them understandable also for tired users. ;)

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: Portable file icons

Post by tiago »

Why patterns "a*\" do not pass folders starting with "a" but "*a\" correctly passes folders whose name end with an 'a'?

Is it planned that .bmp, .jpg and .png could be used as ico sources for folders?
Power-hungry user!!!

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

Re: Portable file icons

Post by admin »

tiago wrote:Why patterns "a*\" do not pass folders starting with "a" but "*a\" correctly passes folders whose name end with an 'a'?
You need to match the whole path. So to match all folders starting with "a" use: "*\a*\"

highend
Posts: 13311
Joined: 06 Feb 2011 00:33

Re: Portable file icons

Post by highend »

It's no regex but groups ([a-z], [1-9] ...) are supported by the normal XYplorer wildcard pattern matching, along with the standard wildcards *, ?, and #.
Thanks for the clarification!

I would put that sentence at the end of this help file topic (to help all the tired users) *g*
One of my scripts helped you out? Please donate via Paypal

tiago
Posts: 589
Joined: 14 Feb 2011 21:41

Re: Portable file icons

Post by tiago »

My $0,02 on thanks, either.
And a billion for the resource! :P
Power-hungry user!!!

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: Portable file icons

Post by Borut »

admin wrote:You cannot expect too much from CFI. :mrgreen:
Oh, yes, *\2*.txt works marvelous indeed. I just got appetite... Could the same be expected from PFA? Wouldn't it be a quantum leap to have PFA depending not only of extension, but also on a position and naming context?

BTW, which documentation line have I overlooked in the first place? Maybe some additional example/explanation would halp the future CFI/PFI users with wildcards.
Win 10 Pro 64bit

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

Re: Portable file icons

Post by admin »

Borut wrote:
admin wrote:You cannot expect too much from CFI. :mrgreen:
Oh, yes, *\2*.txt works marvelous indeed. I just got appetite... Could the same be expected from PFA? Wouldn't it be a quantum leap to have PFA depending not only of extension, but also on a position and naming context?
Oh, this should have worked with PFA. You discovered a bug. Fix coming...

Borut
Posts: 1412
Joined: 19 Oct 2010 19:29

Re: Portable file icons

Post by Borut »

admin wrote:Oh, this should have worked with PFA. You discovered a bug. Fix coming...
Seems to function great in 12.30.0204. Wow! Many thanks!
Win 10 Pro 64bit

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

Re: Portable file icons

Post by admin »

Borut wrote:
admin wrote:Oh, this should have worked with PFA. You discovered a bug. Fix coming...
Seems to function great in 12.30.0204. Wow! Many thanks!
You really use this? *\2*.txt? For what is this good in the real world?

FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: Portable file icons

Post by FluxTorpedoe »

admin wrote:
FluxTorpedoe wrote:So do you think it would be feasible to add the " /#" suffix support in PFI (without too much work)?
No, forget it. That would be speed and memory wise a totally different story.
Understandable! Thanks for the answer. :)
admin wrote:groups ([a-z], [1-9] ...) are supported by the normal XYplorer wildcard pattern matching, along with the standard wildcards *, ?, and #.
Wow again! Very interesting! (& that brought light to my problems of filtering items with # in the name...)

BTW, my very first PFI was a nice "tagged scroll" icon for XYS files... They're so lively now, it's a joy to behold! :biggrin:

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

Re: Portable file icons

Post by admin »

FluxTorpedoe wrote:BTW, my very first PFI was a nice "tagged scroll" icon for XYS files... They're so lively now, it's a joy to behold! :biggrin:
Show it!

Post Reply