I've installed the "Project" organizer plugin, but I can't figure out how to make it do anything useful.
How do you get it to index the source files so you can search for functions, variables, etc? The "Reload All" button does nothing. The only symbols that show up in the sidebar are for currently opened files.
The doc says:
Reload all - reloads the project file tree and reindexes the files (if symbol generation enabled). This is useful when files were added, modified externally or removed from the project.
How does one enable symbol generation?
There's a drop-down box at the right of the project pane in the sidebar, but it has nothing but an unlabled checkbox (which doesn't seem to have any noticable effect on anything).
-- Grant
First of all, with no idea of which version or platform you are using, nobody is going to be able to provide you with detailed information.
I am not a user of project organiser so no expert, and comments relate to current git.
On Sat, 7 Aug 2021 at 08:20, Grant Edwards grant.b.edwards@gmail.com wrote:
I've installed the "Project" organizer plugin, but I can't figure out how to make it do anything useful.
How do you get it to index the source files so you can search for functions, variables, etc? The "Reload All" button does nothing. The only symbols that show up in the sidebar are for currently opened files.
With a project open, project properties, project organiser tab, it should (IIUC) index all the files with the header and body patterns but not the exclude and exclude directory patterns when the dropdown below says, auto, yes, no. If its auto, then automajikally, if yes at least on project open, if no, manually only, as you point out below.
The doc says:
Reload all - reloads the project file tree and reindexes the files (if symbol generation enabled). This is useful when files were added, modified externally or removed from the project.
How does one enable symbol generation?
See above.
There's a drop-down box at the right of the project pane in the sidebar, but it has nothing but an unlabled checkbox (which doesn't seem to have any noticable effect on anything).
Don't have that, suggesting you are using an olde version maybe.
Cheers Lex
-- Grant
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On 2021-08-06, Lex Trotman elextr@gmail.com wrote:
How do you get it to index the source files so you can search for functions, variables, etc? The "Reload All" button does nothing. The only symbols that show up in the sidebar are for currently opened files.
With a project open, project properties, project organiser tab, it should (IIUC) index all the files with the header and body patterns but not the exclude and exclude directory patterns when the dropdown below says, auto, yes, no. If its auto, then automajikally, if yes at least on project open, if no, manually only, as you point out below.
I opened that project organizer property pane, verified the patterns, and changed indexing to "yes". Then I saved that pane saving that pane does nothing. No symbols show up in sidebar. Same for clicking the reload button: "no symbols found" in teh Symbols pane of the sidebar.
The only way I can get symbols to show up in the sidebar is to actually open source files in the editor pane.
There's a drop-down box at the right of the project pane in the sidebar, but it has nothing but an unlabled checkbox (which doesn't seem to have any noticable effect on anything).
Don't have that, suggesting you are using an olde version maybe.
geany 1.37.1 (built on 2021-08-06 with GTK 3.24.29, GLib 2.68.3)
-- Grant
On Sat, 7 Aug 2021 at 10:10, Grant Edwards grant.b.edwards@gmail.com wrote:
On 2021-08-06, Lex Trotman elextr@gmail.com wrote:
How do you get it to index the source files so you can search for functions, variables, etc? The "Reload All" button does nothing. The only symbols that show up in the sidebar are for currently opened files.
With a project open, project properties, project organiser tab, it should (IIUC) index all the files with the header and body patterns but not the exclude and exclude directory patterns when the dropdown below says, auto, yes, no. If its auto, then automajikally, if yes at least on project open, if no, manually only, as you point out below.
I opened that project organizer property pane, verified the patterns, and changed indexing to "yes". Then I saved that pane saving that pane does nothing. No symbols show up in sidebar. Same for clicking the reload button: "no symbols found" in teh Symbols pane of the sidebar.
The only way I can get symbols to show up in the sidebar is to actually open source files in the editor pane.
As I said I'm not an expert on PO, but I think "yes" only means on project open.
Symbols don't show in the symbols pane, it just shows symbols for the current file. Normally Geany only creates symbols for the files that are open, which means that highlighting and parsing and so on do not know about symbols from closed files. What PO is supposed to do is to create the symbols for the _closed_ files as well so they are available to the parser for open files and are available for search etc. They are not shown anywhere.
There's a drop-down box at the right of the project pane in the sidebar, but it has nothing but an unlabled checkbox (which doesn't seem to have any noticable effect on anything).
Don't have that, suggesting you are using an olde version maybe.
geany 1.37.1 (built on 2021-08-06 with GTK 3.24.29, GLib 2.68.3)
-- Grant
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
Hi Grant,
as Lex mentioned, Project Organizer doesn't show symbols of all files - that would be way too many symbols to display for big projects. The Project tab in the sidebar shows all the files belonging to the project - that is, those files that match the "file patterns" and are inside the "base path" that you specify in project properties. When you enable indexing of the whole project, Ctrl+clicking a symbol (e.g. a function name) works project-wide and takes you to the function declaration even when the file isn't open. You can also use Project->Find Project Symbol and here you can enter the name of the symbol you are looking for (you can set custom keybinding to this menu entry if you need this frequently).
Cheers,
Jiri
On Sat, Aug 7, 2021 at 12:20 AM Grant Edwards grant.b.edwards@gmail.com wrote:
I've installed the "Project" organizer plugin, but I can't figure out how to make it do anything useful.
How do you get it to index the source files so you can search for functions, variables, etc? The "Reload All" button does nothing. The only symbols that show up in the sidebar are for currently opened files.
The doc says:
Reload all - reloads the project file tree and reindexes the files (if symbol generation enabled). This is useful when files were added, modified externally or removed from the project.
How does one enable symbol generation?
There's a drop-down box at the right of the project pane in the sidebar, but it has nothing but an unlabled checkbox (which doesn't seem to have any noticable effect on anything).
-- Grant
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users