Page 1 of 1

Quick Search: Find Files if NOT

Posted: 03 Jan 2021 07:08
by WirlyWirly
Hello, I'm trying to run a quick-search to find all files that are NOT of the following types...

Code: Select all

:!*.zip or :!*.cbz or :!*.rar or :!*.cbr
It works fine if I only use one file-type such as :!*.zip, however when I try to add more than a single file-type I can't get it to work. I've tried all types of combinations and no luck. In this case I'm trying to see only files that are not archives.

Any tips?

Re: Quick Search: Find Files if NOT

Posted: 03 Jan 2021 09:45
by highend
01. This must be an AND combined search term, you don't want to find *.abc, AND NOT *.def AND NOT ...
02. All : after the first one will be searched literally because they are neither a boolean marker NOR a scope

-> :!*.zip & !*.cbz & !*.rar & !*.cbr

Re: Quick Search: Find Files if NOT

Posted: 03 Jan 2021 10:40
by admin
Or :!(*.zip or *.cbz or *.rar or *.cbr)

Re: Quick Search: Find Files if NOT

Posted: 03 Jan 2021 10:46
by highend
Is there no way to negate the /types= switch? Would be way easier...

Re: Quick Search: Find Files if NOT

Posted: 03 Jan 2021 12:22
by admin
Good question. It's coming...