Page 1 of 1

SC quicksearch: exclude excluded folders from result list?

Posted: 05 Feb 2018 20:36
by Filehero
Hi,

from the SC quicksearch help:

Code: Select all

Use the /excl switch to exclude the contents of certain paths from the search results. It's the inline equivalent of the Excluded tab on the Find Files panel.

.....

ยท Like with the Excluded tab, the excluded paths themselves are shown (if they match the pattern), but not their contents. 
How do I search for directories (only) with the result list not containing the folder paths matched by the /excl switch?

Thanks,
FH

Re: SC quicksearch: exclude excluded folders from result list?

Posted: 05 Feb 2018 20:41
by highend
By filtering them out with formatlist() afterwards

Re: SC quicksearch: exclude excluded folders from result list?

Posted: 05 Feb 2018 20:55
by Filehero
highend wrote:By filtering them out with formatlist() afterwards
I'm currently using regexreplace() for clearance, formatlist() seems to be a better choice, me thinks. :wink:

Anyway, a second SC call is required. Thanks for confirmation.

Re: SC quicksearch: exclude excluded folders from result list?

Posted: 06 Feb 2018 02:04
by jupe
This is slightly off topic, but I was wondering if the /excl switch should work when searching tags? Basically I want to exclude tagged files from a certain path from results, something like this:

Code: Select all

text quicksearch("5 /fld=rating /excl=pending", "c:\test");
and if files are rated 5 in c:\test\pending they still show in the results, /excl seems to only work in file search not tag search, is that by design?

Re: SC quicksearch: exclude excluded folders from result list?

Posted: 21 Feb 2018 16:00
by admin
Looks like a bug to me. Good find! Gonna fix... :tup: