Hidden folders visible in minitree after quicksearch

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
zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Hidden folders visible in minitree after quicksearch

Post by zakhar »

After running a script like the following

Code: Select all

 $location3 = "C:\";
 $qs3 = quicksearch("/dn","$location3","|");
 loadtree "$qs3";
hidden system folders (in the root directory, such as "$Recycle.Bin, ProgramData, Recovery,
System Volume Information") became visible in the loaded minitree -
- even if "View\Schow Items\Show Hidden Files and Folder" is not set to show the hidden items.

Can the showing of hidden folders in the mini tree be prevented?
How?

Thank you for your answer!

[Upd1: Win7, XY18.60.0200 are running.]

admin
Site Admin
Posts: 66719
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hidden folders visible in minitree after quicksearch

Post by admin »

This is caused by this change:

Code: Select all

v18.60.0003 - 2017-12-17 16:05
    * SC quicksearch: Now it ignores any of the following settings that may hide 
      stuff from the list. They cannot hide anything from SC quicksearch anymore:
      - Configuration | Tree and List | Items in Tree and List | Show hidden files and folders
      - Configuration | Tree and List | Items in Tree and List | Show system files and folders
      - Configuration | Tree and List | Items in Tree and List | Hide protected operating system files
      - Configuration | Tree and List | Items in Tree and List | Show junctions
      - View | Show Items | Show Folders in List
I might add a flag to quicksearch to make it NOT ignore those settings. Hm?

jupe
Posts: 3478
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Hidden folders visible in minitree after quicksearch

Post by jupe »

admin wrote:I might add a flag to quicksearch to make it NOT ignore those settings. Hm
Yeah I think that would be good, or an attributes flag to set what you want.

In the meantime I made up a quick workaround for the OP, it's most definitely not the correct way to do it, but it should work if you are interested:

Code: Select all

	$location3 = "C:\";
	$qs3 = quicksearch("/dn","$location3","|");
	
	$results = "";
	foreach($item, $qs3, "|") {
		if (property("attrib", $item) UnLike "*H*") {
			$results = $results . $item . "|";
		}
	}
	loadtree $results;

admin
Site Admin
Posts: 66719
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hidden folders visible in minitree after quicksearch

Post by admin »

BTW, I just looked up the definition of quicksearch: "It works 100% identical to GUI Quick Search apart from not affecting the GUI".

So I should not have done the above mentioned change by default but bind it to a flag, e.g. "a" (show all).

zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Re: Hidden folders visible in minitree after quicksearch

Post by zakhar »

I might add a flag to quicksearch to make it NOT ignore those settings. Hm?
Yes, I think, adding a switch under "Search Pattern Switches"
(and probably a short explanation - why this switch is needed with reference to "v18.60.0003 - 2017-12-17 16:05")
would be the best choice -
- I have first of all tried to find a solution there, under "Search Pattern Switches".

admin
Site Admin
Posts: 66719
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Hidden folders visible in minitree after quicksearch

Post by admin »

Well, I added a flag to the quicksearch command, not a switch to GUI Quick Search (although that would be an idea as well).

But see discussion here: viewtopic.php?p=155537#p155537

zakhar
Posts: 179
Joined: 08 Sep 2010 21:13

Re: Hidden folders visible in minitree after quicksearch

Post by zakhar »

Well, I added a flag to the quicksearch command, not a switch to GUI Quick Search (although that would be an idea as well).
Yes! I tried out "v18.60.0208 - 2018-01-22 10:06".
It works as desired now!
Thank you!

Post Reply