Filter all folder names

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
donotbugme
Posts: 23
Joined: Mon Oct 16, 2017 10:33 am

Filter all folder names

Post by donotbugme »

I am only interested in the files but not in the folder names in the search results.
I only index filetypes like url, exe, lnk as defined in the options under Indexes -> Exclude -> "include only files:".

I tried to filter out folder names by adding a filter under "Exclude Folders" and entered the regex ^[^.]+$, but it didn't do the job. I still have folders in the results.

I there any way to filter out all folder names from the results?

For me it's not an option to do do so by entering Something like *foo*.lnk in the searchbox.
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Filter all folder names

Post by vanisk »

There may be an even easier method for this. I prefer using filters

1.Search->Organize Filters

2.Click New, name anything (I used OnlyFiles), in search field file:
2019-02-26 20_22_40-Edit Filter.jpg
2019-02-26 20_22_40-Edit Filter.jpg (18.1 KiB) Viewed 4606 times

3.Tools->Options->Home->Choose the newly created filter under Filters
2019-02-26 20_26_20-Everything Options.jpg
2019-02-26 20_26_20-Everything Options.jpg (45.21 KiB) Viewed 4606 times

4. Hereafter only files will be listed


(Or even simpler, just add file: in each query (if possible))
donotbugme
Posts: 23
Joined: Mon Oct 16, 2017 10:33 am

Re: Filter all folder names

Post by donotbugme »

Thank you very much.

Well this *would* work. But for some reason Wox (the launcher I use) does not respect this filter as Wox uses some sdk api to talk to the everything service.

Any other possibility? I think the approach shoud be not to have the folder names in the index.

Wox:
https://github.com/Wox-launcher/Wox
vanisk
Posts: 152
Joined: Sat Oct 27, 2018 11:33 am

Re: Filter all folder names

Post by vanisk »

Just now installed Wox and tried it. I may be wrong, but I guess its using its own everything db and/or ignoring the settings given in my regular Everything.

In my Everything, i excluded all folders/files in C:\Windows except for files inside C:\Windows\Fonts.
2019-02-26 23_03_55-Everything Options.jpg
2019-02-26 23_03_55-Everything Options.jpg (63.08 KiB) Viewed 4594 times


On searching C:\Windows\ in Everything window, it lists only TTF files (which is what indexed),
2019-02-26 23_04_09-c__windows - Everything.jpg
2019-02-26 23_04_09-c__windows - Everything.jpg (124.97 KiB) Viewed 4594 times


but in Wox, it lists all the files inside C:\Windows\
2019-02-26 23_04_27-c__windows - Everything.jpg
2019-02-26 23_04_27-c__windows - Everything.jpg (19.49 KiB) Viewed 4594 times

So, everything Plugin of Wox is ignoring some/all filters and exclude lists
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Filter all folder names

Post by NotNull »

donotbugme wrote: Tue Feb 26, 2019 3:56 pm Well this *would* work. But for some reason Wox (the launcher I use) does not respect this filter as Wox uses some sdk api to talk to the everything service.

Any other possibility? I think the approach shoud be not to have the folder names in the index.
Unfortunately, that's not possible in Everything. It needs those folders to "build the path" to the location of the file. If you don't index the foldername, all it's files and sub-folders can't be indexed too.

Your best bet is to contact the developer(s) of Wox and ask them to implement such an option. In the past I tested quite a few Launchers ( Wox, Launchy, Listary, ...) and one of them - maybe even Wox - had a feature that when you start your search with a space (for example: " everything" would cause it to search just the files, without folders.


vanisk wrote: Tue Feb 26, 2019 5:42 pm So, everything Plugin of Wox is ignoring some/all filters and exclude lists
I think Wox has it's own routine - apart from Everything - to index some "usual suspects folders", like Windows, startmenu(s) and program files".
donotbugme
Posts: 23
Joined: Mon Oct 16, 2017 10:33 am

Re: Filter all folder names

Post by donotbugme »

Thank you. Yes, then we have to change the Wox behavior. The trick with the space is not working in Wox for now, but would be a great feature.
Post Reply