No extension in Visual filter

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

No extension in Visual filter

Post by LittleBiG »

Could somebody give me a logical explanation why *. doesn't work in visual filter for filtering files without extension, although the Custom File Icons and Portable File Associations accept it readily?

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

Re: No extension in Visual filter

Post by admin »

Will work in next version.

LittleBiG
Posts: 1846
Joined: 08 Apr 2011 12:57
Location: Win10x64

Re: No extension in Visual filter

Post by LittleBiG »

Thanks, it would be nice, because my current solution is far from straightforward: |!*.*;attr: d

JohnM
Posts: 247
Joined: 08 Jun 2006 11:59
Location: Tasmania, Australia

Re: No extension in Visual filter

Post by JohnM »

admin wrote:Will work in next version.
I have the latest beta and it doesn't work for me. In fact for me, any VF that ends with a "." fails to find any matches, but leaving the "." off finds them ok.
Windows 8.1 x64
XYplorer 22.90.0105 beta

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

Re: No extension in Visual filter

Post by admin »

:veryconfused: How can that be? Are you sure you are running v15.00.0520 or later?

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: No extension in Visual filter

Post by bdeshi »

It works!
eg, \|*. lists dirs and extless files.
But I found a fatal bug.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

JohnM
Posts: 247
Joined: 08 Jun 2006 11:59
Location: Tasmania, Australia

Re: No extension in Visual filter

Post by JohnM »

admin wrote:How can that be? Are you sure you are running v15.00.0520 or later?
I am using the latest beta 15.00.0533, see screenshots. The first has a VF with no trailing "." and it gets a match. The second, I add the trailing "." and no match. Note that the full file name is "aap.vim" and I would expect to get a match with both VFs.

It is obviously working for others so there must be a setting that is causing it not to work for me. The interesting thing will be to find what it is. :veryconfused:
Attachments
VF with no trailing "."
VF with no trailing "."
XY VF with no trailing dot.PNG (9.76 KiB) Viewed 1584 times
VF with trailing "."
VF with trailing "."
XY VF with trailing dot.PNG (10.94 KiB) Viewed 1584 times
Windows 8.1 x64
XYplorer 22.90.0105 beta

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

Re: No extension in Visual filter

Post by admin »

You forgot the wildcards. "aap." will match only files called "aap".

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

Re: No extension in Visual filter

Post by admin »

PS: I'm going to change that. IMO you were right to expect auto-wildcards here: aap. = *aap*.

JohnM
Posts: 247
Joined: 08 Jun 2006 11:59
Location: Tasmania, Australia

Re: No extension in Visual filter

Post by JohnM »

I updated to release 15.10.0000 and I don't see a difference. A VF with a trailing "." still doesn't find a match. See screenie.

Sorry to be so dense, but what am I doing wrong?
Attachments
XY VF with trailing dot.PNG
XY VF with trailing dot.PNG (11.08 KiB) Viewed 1553 times
Windows 8.1 x64
XYplorer 22.90.0105 beta

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: No extension in Visual filter

Post by TheQwerty »

A trailing '.' now means items without extension.

'aap.' matches any item containing 'aap' without an extension ('gaap', 'aap', but not 'aap.vim')
'aap.*' matches any item starting with 'aap.' so 'aap.vim' or 'aap.vim.bak' but not 'gaap.txt'.
'*aap.*' matches any item containing 'aap.' be it 'aap.vim' or 'aap.vim.bak' or 'gaap.txt'.
'aap' is equivalent to '*aap*' and will match any item containing 'aap' so all of the above-mentioned items.

JohnM
Posts: 247
Joined: 08 Jun 2006 11:59
Location: Tasmania, Australia

Re: No extension in Visual filter

Post by JohnM »

@TheQwerty

Thanks for the clarification.
Windows 8.1 x64
XYplorer 22.90.0105 beta

Post Reply