Page 1 of 1

[Resolved] Quicksearch /a [show all] overrides /n or /d

Posted: 25 Oct 2022 20:08
by klownboy
Subject says it all really. If I have a folder with some jpgs and some subfolders with jpgs as well, and run something like: text quicksearch("*.jpg /n /a", <curpath>);
and then run text quicksearch("*.jpg /n", <curpath>);You'll see that the SC quicksearch with the "/a" will pick up on all the jpgs in the subfolders as well. Should that be the case? It doesn't seem right to me. "/a" should show all files including hidden files in that folder, but if you specify "/n" as well, it should not show all the jpgs in the subs too.

"/a" also overrides the "folders only" flag "/d". Thanks.

Re: Quicksearch /a [show all] overrides /n or /d

Posted: 27 Oct 2022 13:24
by LittleBiG
I recommend to merge the one-letter switches when you use them. According to my experiences it won't work correctly when separated. Example: text quicksearch("*.jpg /na", <curpath>); I am not sure about the reason.

Re: Quicksearch /a [show all] overrides /n or /d

Posted: 27 Oct 2022 14:43
by klownboy
Thanks LittleBig. I ran some quick tests and the separate switches failed whereas combining them worked. In going through the Help, it looks like Don has them separated when a switch has more than 1 letter (e.g., /n /flat which obviously makes sense), but combines them when they both are single letter (e.g., /ed). Help states that you can combine them, but I think it could be much clearer and less prone to error if it stated that it will not work properly if you have separate switches in many cases. This could possibly still be considered a bug or at least clarified in Help. Thanks again.

Re: Quicksearch /a [show all] overrides /n or /d

Posted: 15 Nov 2022 15:35
by klownboy