Flow.Launcher icon indicating copy to clipboard operation
Flow.Launcher copied to clipboard

"Explorer" plugin can't search some folders

Open MW-J97 opened this issue 2 years ago • 37 comments

Hi there,

Thanks for this great app. It really changed my life.

I have an issue with "Explorer" plugin. When I search folders in C:, it doesn't find them. In indexing options, there are always excludes in search that I can't get rid of them. Can those exclude be the cause of this issue??

Window 10 [Version 10.0.19044.1526]

04_03_2022 07_52_10_674

MW-J97 avatar Mar 04 '22 06:03 MW-J97

Hi. Are the things you are searching for located in the excluded directories? To change what is and isn't excluded click the Modify button and next to the displayed drive/folder checkbox, just to the right, you should see a greater than sign >. Click that and it expands the sub directories and you can change as needed (it's not easy to see unless you are looking for iti)

deefrawley avatar Mar 04 '22 06:03 deefrawley

I know how to chick folders to be searched, but I can't find those exclude folders. The folders I want to search are located in AppData folder. I think AppData is a hidden folder. Can Explorer plugin search in those hidden files??

MW-J97 avatar Mar 04 '22 06:03 MW-J97

I installed "Everything" plugin and it's so good in search, but it doesn't have a great feature in "Explorer". Explorer can show the files and folders inside the searched folder, but Everything open the folder directly. If there is a way to make Everything make the same thing, it'll be perfect.

MW-J97 avatar Mar 04 '22 06:03 MW-J97

Just to confirm:

2022-03-04 17_49_57-Window

I do have Windows Explorer set to show hidden files and directories and I don't know if this affects what you see in the Indexing options. I'm not sure what the Data and CSC folders are from your original screenshot. They don't seem to be standard Windows folders but I could be wrong.

deefrawley avatar Mar 04 '22 06:03 deefrawley

I also made Windows Explorer to show hidden files, but nothing happened. It still can't search those folders.

MW-J97 avatar Mar 04 '22 07:03 MW-J97

Yeah I can confirm - I enabled the AppData folder, did a full reindex, restarted Flow and can't search for anything in the AppData folder. @jjw24 @taooceros is this expected behaviour?

deefrawley avatar Mar 04 '22 09:03 deefrawley

Odd, I don't have any issues?

image

Garulf avatar Mar 04 '22 13:03 Garulf

Yeah I can confirm - I enabled the AppData folder, did a full reindex, restarted Flow and can't search for anything in the AppData folder. @jjw24 @taooceros is this expected behaviour?

Possible that some of the folder inside appdata is under windows index, while the other are not. I remember the behavior is to use index as much as possible?

taooceros avatar Mar 04 '22 17:03 taooceros

Possible that some of the folder inside appdata is under windows index, while the other are not. I remember the behavior is to use index as much as possible?

How can I use index?? And is this a solution for the issue??

MW-J97 avatar Mar 04 '22 17:03 MW-J97

Possible that some of the folder inside appdata is under windows index, while the other are not. I remember the behavior is to use index as much as possible?

How can I use index?? And is this a solution for the issue??

One alternate is to index the whole folder, or exclude the whole folder in windows index. I think we will need to adjust the behavior for this.

taooceros avatar Mar 04 '22 17:03 taooceros

One alternate is to index the whole folder, or exclude the whole folder in windows index. I think we will need to adjust the behavior for this.

As above screenshot, I indexed the whole "C" except the "Data" folder, I can't find it. Or is there another way to index the whole folder??

MW-J97 avatar Mar 04 '22 18:03 MW-J97

Huh then just remove the exclusion of the Data folder in the index? It should be able to index everything except network folder (onedrive etc.).

taooceros avatar Mar 04 '22 18:03 taooceros

I installed "Everything" plugin and it's so good in search, but it doesn't have a great feature in "Explorer". Explorer can show the files and folders inside the searched folder, but Everything open the folder directly. If there is a way to make Everything make the same thing, it'll be perfect.

I am thinking about this before, but probably it will need some new api, which seems not easy to be done due to the current implementation because Plugins are separate from each other.

taooceros avatar Mar 04 '22 18:03 taooceros

Huh then just remove the exclusion of the Data folder in the index? It should be able to index everything except network folder (onedrive etc.).

I can't remove "Data" from exclusion. I can't find it.

MW-J97 avatar Mar 04 '22 19:03 MW-J97

image check here

taooceros avatar Mar 04 '22 19:03 taooceros

image check here

I made this, and it removed the exclusion from index, but still have the same issue. I can't search some folders in AppData and other folders.

MW-J97 avatar Mar 04 '22 19:03 MW-J97

AppData should be shown, the indexer from windows can sometimes get a bit frustrating. You need to make sure you check the two areas where paths can be excluded:

  1. Explorer plugin setting also has an option to exclude paths, I am assuming you just started using flow and havent set anything yet.
  2. https://github.com/Flow-Launcher/Flow.Launcher/issues/1064#issuecomment-1058887774
  3. https://github.com/Flow-Launcher/Flow.Launcher/issues/1064#issuecomment-1059451536 Then make sure you update the index database after making the change, otherwise the indexing won't update, option is in windows indexer see 1. comment

It's a bit of trial and error with 1. to make sure the paths is correctly indexed. Worst case scenario, index everything as a baseline and make sure you then update the index database, check that the AppData path works, then start unticking the paths you don't want.

I installed "Everything" plugin and it's so good in search, but it doesn't have a great feature in "Explorer". Explorer can show the files and folders inside the searched folder, but Everything open the folder directly. If there is a way to make Everything make the same thing, it'll be perfect.

Agree, I think it will be a good feature to add. @taooceros maybe potentially copy and paste the code that iterates through the folders if the Everything API returns the path? Maybe no need to expose this via flow's API.

jjw24 avatar Mar 07 '22 09:03 jjw24

I tried checking the first and second settings and both have no excludes. But, I don't know how to update the index database?? It stills search for some folders in AppData and doesn't search for other folders.

MW-J97 avatar Mar 07 '22 14:03 MW-J97

yeah you can rebuild the index in the indexing options' settings:

image

jjw24 avatar Mar 07 '22 21:03 jjw24

@jjw24 I rebuilt the index again, but still the same issue. When I search AppData, it searches Local only, not Roaming. And I don't know if this issue can occur at other folders or not?

MW-J97 avatar Mar 09 '22 05:03 MW-J97

So you removed all exclusions and rebuilt index, still not showing up?

Could you show me what your indexing looks like, expand AppData, Local and Roaming locations (blur out any personal directories you don't want to show).

jjw24 avatar Mar 09 '22 19:03 jjw24

Yes, I did all of those steps, but nothing happened.

10_03_2022 11_36_22_195 10_03_2022 11_36_34_980 10_03_2022 11_36_55_860 10_03_2022 11_37_27_230 10_03_2022 11_37_37_154

MW-J97 avatar Mar 10 '22 09:03 MW-J97

Does Roaming come up when you search via the windows start menu's search? (Window's own search should return the same files/folder as Flow's Explorer).

If you just want to traverse the folder paths like Roaming, you can actually exclude it from Index Search by going to the plugin's setting and add the path to the exclude index search option, e.g. add C:\ will allow you to traverse through entire location without worrying about the index. Then if you want to search for a particular folder/file, use Everything plugin. This is a workaround to your issue, but do let me know if Window's Start Menu search actually brings up results like the Roaming folder, so we can determine if it's an issue with plugin or some windows misconfiguration.

jjw24 avatar Mar 10 '22 11:03 jjw24

I think we needs to have a better check for whether using index, since path search should not exclude path that is excluded in index search.

taooceros avatar Mar 10 '22 14:03 taooceros

The windows start search doesn't show the roaming, local or even AppData folders.

I installed "Everything" plugin and it's so good in search, but it doesn't have a great feature in "Explorer". Explorer can show the files and folders inside the searched folder, but Everything open the folder directly. If there is a way to make Everything make the same thing, it'll be perfect.

And for this, can it be done??

MW-J97 avatar Mar 10 '22 16:03 MW-J97

Regarding the integration of everything and the Explorer plugin, we will need to develop a integration api, which may takes a while.

taooceros avatar Mar 10 '22 16:03 taooceros

Regarding the integration of everything and the Explorer plugin, we will need to develop a integration api, which may takes a while.

So, it's possible, but will take some time?

MW-J97 avatar Mar 10 '22 16:03 MW-J97

It is undetermined how to implement it yet, so will take a while.

taooceros avatar Mar 10 '22 16:03 taooceros

@minawaheed9697 are you able to get by with using both Explorer (for showing files and folders inside the searched path) and Everything (for searching directly the files or folder, replacing index search)?

jjw24 avatar Mar 11 '22 23:03 jjw24

@minawaheed9697 are you able to get by with using both Explorer (for showing files and folders inside the searched path) and Everything (for searching directly the files or folder, replacing index search)?

@jjw24 Unfortunately, I can't as it doubles the same folders and files and makes me confused. E.g. if I search for any folder, there will be 2 of it and I can't differentiate which is Explorer and Everything.

MW-J97 avatar Mar 12 '22 05:03 MW-J97