-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Projectorganizer: Find in Files #327
Comments
@derba You can - under the "Project" menu there's "Find in project files" which always uses the project root as the search directory. You can also assign a custom keybinding for it. I wanted to make it default in Geany in geany/geany#454 but others didn't like it so there has to be a different keybinding for project find in files. |
@techee IIUC the OP's point is that it can sear in only one directory, whereas ProjectOrganizer allows for several directories. So in the end, one can't search at once the whole set of files PrjOrg knows about. |
Aha, alright. Well, there's a problem - I'm just using Geany's FIF dialog and there you can search just inside a single directory. I guess in this case the best solution will be the project containing symlinked directories (after I fix that). |
Now symlinking works in Projectorganizer. Still, Find in Files does not work. But that seems to be a 1 character issue (use 'R' instead of 'r') in get_grep_options() in search.c of Geany itself. This issue shows that the whole plugin architecture have its limitations. How could Geany's FIF know about PO's external directories? Maybe PO should have a "symlink external directory" button. (Except on Windows, as mklink won't to that for you easily.) |
Good point about the grep options, created a pull request to Geany here:
It cannot, it's something I introduced just in my plugin. Geany in general can search in just a single directory (like most other editors and I think it should stay this way). You can however pre-fill the external directory to the FIF dialog by right-clicking it in the sidebar and selecting "Find in Files...".
I'd leave the symlink creation up to users - as you say, it works on just some platforms and I don't think it's something the plugin itself should do. |
@derba It appears -R isn't available in all grep implementation. However in the Find in Files dialog you can add -R to the "extra options" - it is added behind the previously set flags and at least on my machine seems to override -r. |
Projectorganizer plugin lets us add external directories. But Find in Files searches in a specific directory only instead of the whole project.
I have a project for my app and added external directories for some libraries. And I cannot search in the whole project.
The text was updated successfully, but these errors were encountered: