The symbols tree view is allowing to navigate through all symbols parsed by CTags. However, when editing a symbol in the editor panel, the highlighted symbol won't synchronize in the tree view. As discussed in issue #1325, an option is to resolve the symbol from the current cursor position.

My implementation of the feature is doing this in two steps:

  1. Check if a direct match can be made between the cursor line and one of the TMTag inside the tree
  2. If no direct match but in a scope, resolve by selecting this scope

If both steps fail, the selection is cleared.

One thing that I am not sure yet how to implement is the auto-adjustment of the scrollbar to reach the symbol if it's out of visible range. Maybe someone has an idea how to do that in a clean fashion? Should the automatic scroll be an option or default behavior?


You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/1348

Commit Summary

File Changes

Patch Links:


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.