How to hide hidden folders/files from search results?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
klepp0906
Posts: 51
Joined: Mon Oct 28, 2019 6:25 pm

How to hide hidden folders/files from search results?

Post by klepp0906 »

So i'm not looking to exclude these, I want them indexed as most of the time its helpful or at least not problematic. I'm just looking to temporarily hide them during a specific search. i'm using the alpha if relevant.
harryray2
Posts: 1104
Joined: Sat Oct 15, 2016 9:56 am

Re: How to hide hidden folders/files from search results?

Post by harryray2 »

Use temp exclude from the context menu.
klepp0906
Posts: 51
Joined: Mon Oct 28, 2019 6:25 pm

Re: How to hide hidden folders/files from search results?

Post by klepp0906 »

which context menu are we talking? cause right clicking on the directory i want to search only brings up "search everything" and right clicking on folders within everything brings up the same.
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to hide hidden folders/files from search results?

Post by void »

An Omit Results feature is in development.

If you would like to try this now, please check out the Everything 1.5 alpha.
Phlashman
Posts: 41
Joined: Sun Sep 11, 2022 4:57 am

Re: How to hide hidden folders/files from search results?

Post by Phlashman »

klepp0906 wrote: Sat Oct 22, 2022 1:51 pm So i'm not looking to exclude these, I want them indexed as most of the time its helpful or at least not problematic. I'm just looking to temporarily hide them during a specific search. i'm using the alpha if relevant.
add the search term !attrib:H to your specific search to exclude items with hidden file attribute
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to hide hidden folders/files from search results?

Post by void »

Sorry klepp0906, I have misread your post..

Please consider creating the following filter:
  • In Everything, from the Search menu, click Add to filters...
  • Change the Name to: Exclude Hidden
  • Change the Search to: !attrib:h
  • Click OK.
Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.

Please note that attribute information is not indexed by default.
For the best performance, please enable attribute indexing:
  • In Everything, from the Tools menu, click Options.
  • Click the Indexes tab on the left.
  • Check Index Attributes.
  • Click OK.
Your Exclude Hidden filter will now apply instantly.
klepp0906
Posts: 51
Joined: Mon Oct 28, 2019 6:25 pm

Re: How to hide hidden folders/files from search results?

Post by klepp0906 »

void wrote: Sun Oct 23, 2022 12:36 am Sorry klepp0906, I have misread your post..

Please consider creating the following filter:
  • In Everything, from the Search menu, click Add to filters...
  • Change the Name to: Exclude Hidden
  • Change the Search to: !attrib:h
  • Click OK.
Filters can be activated from the Search menu, Filter bar (View -> Filters), right clicking the status bar, filter macro or filter keyboard shortcut.

Please note that attribute information is not indexed by default.
For the best performance, please enable attribute indexing:
  • In Everything, from the Tools menu, click Options.
  • Click the Indexes tab on the left.
  • Check Index Attributes.
  • Click OK.
Your Exclude Hidden filter will now apply instantly.
thank you, ive not yet put filters to use but this seems like a perfect use-case
ChrisGreaves
Posts: 684
Joined: Wed Jan 05, 2022 9:29 pm

Re: How to hide hidden folders/files from search results?

Post by ChrisGreaves »

Everything 1.5.0.1333a (x64t)
void wrote: Sun Oct 23, 2022 12:36 am [*]Change the Search to: !attrib:h

[*]In Everything, from the Tools menu, click Options.
[*]Click the Indexes tab on the left.
I am piggybacking on this question:
I thought to locate my MSWord DOCument files that need to be archived. Now straight off I do a RoboCopy backup every evening without fail.

I used the search string

Code: Select all

*.doc attrib:A
which returned 15,288 objects, some of them dated yesterday (should not be listed as ready for archive, since they were backed up last night?)
I then used the search string

Code: Select all

*.doc attrib:a
which returned 15,288 objects.

Then I learned about Tools Options, so
Options_01a.png
Options_01a.png (56.79 KiB) Viewed 5368 times
, asked to APPLY, exited Everything, reloaded and re-ran my earlier two searches

Code: Select all

*.doc attrib:A
and

Code: Select all

*.doc attrib:a
I still see 15,288 objects.
Nothing ventured etc etc
I even tried

Code: Select all

*.doc !attrib:A
But this turned up one file written in 2005, and there is no way that I can have only one of nearly 16,000 DOCuments not archived, surely?

I suspect I have neglected a vital switch, but where?

For my purposes I would expect that by 16:00 today I might have at most twenty archived DOCs waiting to be backed up.

I am assuming that Windows RoboCopy turns OFF the archive bit once the file has been copied to the backup device, but either way I would not expect a split of 1 to 15,288.

Thanks for any help.
Chris
Attachments
Un01.png
Un01.png (93.24 KiB) Viewed 5368 times
Un02.png
Un02.png (88.12 KiB) Viewed 5368 times
froggie
Posts: 301
Joined: Wed Jun 12, 2013 10:43 pm

Re: How to hide hidden folders/files from search results?

Post by froggie »

Everything is showing that there are 15,288 files with the archive bit set. Upper or lower case A doesn't change this, neither does indexing attributes (it will just make Everything faster).

It has been a while since I used Robocopy, but I believe you need the /M switch to turn off the archive attribute after copy - the /A switch will not do it.
ChrisGreaves
Posts: 684
Joined: Wed Jan 05, 2022 9:29 pm

Re: How to hide hidden folders/files from search results?

Post by ChrisGreaves »

froggie wrote: Thu Feb 02, 2023 7:59 pmIt has been a while since I used Robocopy, but I believe you need the /M switch to turn off the archive attribute after copy - the /A switch will not do it.
Thanks for this Froggie.
I'll modify my batch file to use /M and will report back here tomorrow morning!
Cheers, Chris

(later) Silly me. I have run the backup and still get all my document files (15,288 objects).
I right-clicked on Calendar.doc, Properties, and saw that the archive bit was still set. I checked it OFF and the file magically disappeared from my result list.
So my filter is correct, and Everything is working well, but I am not using Windows Robocopy correctly.
Back to the drawing board ...
Thanks again, Chris
void
Developer
Posts: 16748
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to hide hidden folders/files from search results?

Post by void »

Showing the attributes in Everything may also help here:
  • Right click the result list column header and click Attributes.
  • "A" will be shown if the ARCHIVE attribute bit is set.
ChrisGreaves
Posts: 684
Joined: Wed Jan 05, 2022 9:29 pm

Re: How to hide hidden folders/files from search results?

Post by ChrisGreaves »

void wrote: Sat Feb 04, 2023 2:43 am Showing the attributes in Everything may also help here:
Thanks for this response David.
Untitled.png
Untitled.png (81.36 KiB) Viewed 5286 times
I checked my objects a minute ago for this post.
using

Code: Select all

*.doc attrib:A
turned up 20 objects, which is the correct order of magnitude for 0800 hours after a backup at 1800 hours yesterday.
Some of the files are suspicious e.g. "FindingANeedleInAHaystack" but I don't feel like exploring this at this time.
I am happy that results have dropped to 20.

Two days ago in a DOS shell I "Attrib -S -H -R /S" in an attempt to release all archive bits.
I will monitor the filter from day to day to see what happens. It is unlikely to be a bug in Everything, more likely to be a bug in software on my machine.

Thanks All.
Post Reply