Content Indexing - "Include only folders" and "Exclude folders"

Discussion related to "Everything" 1.5 Alpha.
Post Reply
richiek
Posts: 15
Joined: Mon Mar 15, 2021 8:07 am

Content Indexing - "Include only folders" and "Exclude folders"

Post by richiek »

This is so cool!
I have a question about the format of the "Include only folders" and "Exclude folders" input. I have some folders structures along the lines of:

Code: Select all

c:\basedir1\subdir\subdir2\...
c:\basedir2\subdir\subdir2\...
so there is a shared hierarchy but with different base directories (all being indexed by Everything).

So I tried to do this in the "Include only folders" input:

Code: Select all

*\subdir\subdir2\
and

Code: Select all

subdir\subdir2\
to catch that same subdir hierarchy in the two locations, but neither worked. I had to add the two directories in full. Now in reality I have quite a few of these specific subdirectories I'd like content indexed and they have corresponding hierarchies in a few different locations, and I'd really prefer not to have to add them all in-full. Did I just do something wrong with my two attempts above?
NotNull
Posts: 5517
Joined: Wed May 24, 2017 9:22 pm

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by NotNull »

Everything 1.5 uses new wildcard matching.

If your folders are on the same level/depth, like in your case:

Code: Select all

c:\basedir1\subdir\subdir2\...
c:\basedir2\subdir\subdir2\...
, you can use C:\*\folder\subdir\subdir2\

Alternatively, use
**\subdir\subdir2
to also search for content in X:\folder\subdir\subdir2\

If needed, regular expressions can aslo be used to describe the folder patterns.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by void »

Thank you for your feedback.

Please try the following "Include only folders":
**\subdir\subdir2


*\subdir\subdir2
will work with the latest Everything 1.5 Alpha

Version 1.5.0.1242 allows wildcards filters to match from any subpath, for example:
*\subdir\subdir2 will match c:\subdir\subdir2 and c:\rootfolder\subdir\subdir2

This is now the same behavior with a normal Everything search.
Test the following search in Everything to see the same results as your wildcard filters:
*\subdir\subdir2

hmm, I've just discovered the search: *\hosts
richiek
Posts: 15
Joined: Mon Mar 15, 2021 8:07 am

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by richiek »

Ah, great! That is a nice concise syntax.
richiek
Posts: 15
Joined: Mon Mar 15, 2021 8:07 am

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by richiek »

Okay, I updated from 1238a to 1242a to get the latest and try this, and something is definitely not working for me.
I tried removing all inclusions/exclusions entries except one "Include only files" entry set to "*.hlsl" - so everything is pretty much blank except for that one field.

A normal Everything search for "*.hlsl" shows a lot of files being indexed.
However, a search for "content:" shows no hlsl files at all being considered.

Now if I go ahead and modify "include only files" with "*.cpp" I see a bunch of cpp files when I search with "content:". Same for "*.h" (so they're both successful). I did explore this further just a bit: I tried with "*.vcxproj" and nothing came up. So I'm really curious why some extensions are working and not others, and my index definitely has file names with all the extensions I tried.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by void »

Thank you for the bug report.

Everything was ignoring content for unknown file types.

Please try the latest Everything 1.5 Alpha.

Version 1.5.0.1243a will now search for content in known file types, then try iFilters, then try text/plain.

I've expanded the known file types to include hlsl, vcxproj and many more.

You may need to force a rebuild from Tools -> Options -> Indexes to get Everything to pickup content in these files.
richiek
Posts: 15
Joined: Mon Mar 15, 2021 8:07 am

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by richiek »

Great! That seems to be working for me now.

Many thanks.
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by void »

A little more about which files Everything treats as text/plain:

text/plain file types
menes
Posts: 9
Joined: Wed Apr 21, 2021 10:26 am

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by menes »

Hello,

Is it possible to add a dialogue to choose/modify exclude folders at the "Properties" panel in options in the same way as in "Folders"? (A list of Added Folders, a list of Excluded Folders with the appropriate file pickers (Add / Add Custom)).
void
Developer
Posts: 17149
Joined: Fri Oct 16, 2009 11:31 pm

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by void »

Thank you for your suggestion menes,

I have on my TODO list to show a ... button to the right of the exclude/include folders.
When clicked, Everything will show the list of folders from where you can add/remove/edit etc.
menes
Posts: 9
Joined: Wed Apr 21, 2021 10:26 am

Re: Content Indexing - "Include only folders" and "Exclude folders"

Post by menes »

This is great, thank you!
Post Reply