I often work with big projects mounted via sshfs or nfs. If the 
projectogranizer plugin is loaded then geany reads in all directories of the 
project recursively which (potentially and practically) takes a long time via a 
network - so much time actually that I cannot use the plugin.
To mitigate the problem I tried using the "Ignored directory patterns" 
(`ignored_dirs_patterns`) feature by adding `*sshfs` to the list as I strictly 
name the mount points like that. Unfortunately this does not help at all.

After looking at the code I am pretty sure this is because 
[`get_file_list`](https://github.com/geany/geany-plugins/blob/16f4fca9712c86823e7ac788a709ad94ac280c75/projectorganizer/src/prjorg-project.c#L74)
 (which is called recursively) does apply all filters to the children of the 
given `utf8_path` only but not `utf8_path` itself. This makes somewhat sense 
due to the recursive nature of the function. However, 
[`prjorg_project_rescan_root`](https://github.com/geany/geany-plugins/blob/16f4fca9712c86823e7ac788a709ad94ac280c75/projectorganizer/src/prjorg-project.c#L145)
 does not apply the filters to the root dir either and thus the filters do not 
work for my use case. I can of course work around this by nesting the mount 
point within the project directory but that's not exactly ideal. Since 
`prjorg_project_rescan_root` sets up the `ignored_dirs_list` anyway it would be 
quite easy to add a check for that before initially calling `get_file_list` 
AFAICT. What do you think?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1283
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/1...@github.com>

Reply via email to