Page 1 of 1

No extension in Visual filter

Posted: 30 Apr 2015 12:24
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?

Re: No extension in Visual filter

Posted: 30 Apr 2015 14:23
by admin
Will work in next version.

Re: No extension in Visual filter

Posted: 30 Apr 2015 15:02
by LittleBiG
Thanks, it would be nice, because my current solution is far from straightforward: |!*.*;attr: d

Re: No extension in Visual filter

Posted: 04 May 2015 08:41
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.

Re: No extension in Visual filter

Posted: 04 May 2015 08:48
by admin
:veryconfused: How can that be? Are you sure you are running v15.00.0520 or later?

Re: No extension in Visual filter

Posted: 04 May 2015 09:18
by bdeshi
It works!
eg, \|*. lists dirs and extless files.
But I found a fatal bug.

Re: No extension in Visual filter

Posted: 04 May 2015 15:43
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:

Re: No extension in Visual filter

Posted: 04 May 2015 16:26
by admin
You forgot the wildcards. "aap." will match only files called "aap".

Re: No extension in Visual filter

Posted: 04 May 2015 16:41
by admin
PS: I'm going to change that. IMO you were right to expect auto-wildcards here: aap. = *aap*.

Re: No extension in Visual filter

Posted: 04 May 2015 22:01
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?

Re: No extension in Visual filter

Posted: 04 May 2015 22:13
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.

Re: No extension in Visual filter

Posted: 06 May 2015 21:38
by JohnM
@TheQwerty

Thanks for the clarification.