Multi Commander Support Forum

Multi Commander => Feature Requests and Suggestions => Topic started by: maestralien on August 20, 2013, 18:47:03

Title: Find files that are NOT of a specific type extension
Post by: maestralien on August 20, 2013, 18:47:03
I would need something like the Windows File Explorer: http://superuser.com/questions/328223/find-all-files-that-are-not-of-a-specific-type-extension-in-folder

Can MC do it? I tried, it seems not by now ...
Title: Re: Find files that are NOT of a specific type extension
Post by: Jungle on August 20, 2013, 18:53:47
Type e.g. -*.mp3 in the filter field. Minus sign means exclude.
Is it what you need?
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 20, 2013, 19:37:36
Cool, but it is not working.. how and where to type it exactly?
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 20, 2013, 19:40:57
Well, I just discovered that it must be typed simply as: -mp3

If you use -*.mp3 it does not work. Can you confirm?
Title: Re: Find files that are NOT of a specific type extension
Post by: Jungle on August 20, 2013, 19:54:20
-*.ext does hide items with ext extension.
-ext hides items which contain ext in filename.
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 20, 2013, 20:07:09
Ok thanks.

Now another question: it should look inside all sub-folders...
Title: Re: Find files that are NOT of a specific type extension
Post by: Jungle on August 20, 2013, 21:06:50
Now another question: it should look inside all sub-folders...
Try use File search with RegExp ((?!\.ext).)*$
Title: Re: Find files that are NOT of a specific type extension
Post by: Jungle on August 21, 2013, 05:29:05
Mathias,
I think somthing like "Exclude" or "Not match" checkbox in the Look for panel of Find Files dialog could be useful. It should "invert" search. I.e. if search pattern is "bla-bla*.doc" then all files should be found except matching this pattern.
It sometimes could be easier than using RegExp.
Title: Re: Find files that are NOT of a specific type extension
Post by: Mathias (Author) on August 21, 2013, 07:23:33
I will take a look and see if it is possible to add something like that
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 21, 2013, 10:22:00
Mathias,
I.e. if search pattern is "bla-bla*.doc" then all files should be found except matching this pattern.
It sometimes could be easier than using RegExp.

I agree, that's what I meant..
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 21, 2013, 10:23:26
Try use File search with RegExp ((?!\.ext).)*$

Thanks, but it looks little bit too math and moreover it seems not working.. anything simpler? Maybe add a simple option on MC search?
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 21, 2013, 10:25:10
However, I must say that Windows Explorer works good in this "exclude" search, and simply MC should use the same method.. if something works, useless to change... just keep it  ;)
Title: Re: Find files that are NOT of a specific type extension
Post by: Jungle on August 21, 2013, 10:28:56
Thanks, but it looks little bit too math and moreover it seems not working..
I've tried it and it works. But it is case sensitive
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 21, 2013, 11:50:27
I'm trying this: ((?!\.avi).)*$

In the Video folder there are several video formats (avi, mp4, wmv, ...), but it returns no results. Why?
Title: Re: Find files that are NOT of a specific type extension
Post by: Jungle on August 21, 2013, 12:02:19
Have you enabled RegExp option?
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 21, 2013, 12:46:01
I did. On your example, I see that you are not looking in sub-folders too.

Please, repeat the same example searching from the root (C:\). Can you get the results? I cannot.
Title: Re: Find files that are NOT of a specific type extension
Post by: Jungle on August 21, 2013, 13:06:09
First pic - all files
Second pic - all except *.avi

As you can see video.avi is absent on the second pic whereas other files are the same.

**

Mathias,
sorting is reset after new search. I mean if you e.g. set sorting to Ext column, then clear results and perform new search, new results are NOT sorted by Ext. It would be great to keep sorting order.
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 21, 2013, 13:36:30
I do not get any results! Please look attached.
My MC v. is 3.2.1 b.1432
Title: Re: Find files that are NOT of a specific type extension
Post by: Jungle on August 21, 2013, 13:42:10
My MC v. is 3.2.1 b.1432
Probably this is because new beta has updated RegExp engine.
So this is my fault - i hadn't tested on current stable version. I apologize.
Title: Re: Find files that are NOT of a specific type extension
Post by: maestralien on August 21, 2013, 13:57:56
Ok no problem, we discovered the issue ...
So I could install the latest beta ...