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

Things you’d like to miss in the future...
Forum rules
:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:

:info: Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).

:info: We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.

:info: When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".

:warnred20: :warnred20: :warnred20: :warnred20: :warnred20: READ THIS AND DO IT!!! :warnred20: :warnred20: :warnred20: :warnred20: :warnred20:
Post Reply
klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

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

Post 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.
Last edited by klownboy on 15 Nov 2022 15:36, edited 1 time in total.

LittleBiG
Posts: 1848
Joined: 08 Apr 2011 12:57
Location: Win10x64

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

Post 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.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

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

Post 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.

klownboy
Posts: 4462
Joined: 28 Feb 2012 19:27
Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440

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

Post by klownboy »


Post Reply