I created function read_scope_prefix which is similar to read_current_word. It gets the scope of the word the cursor is on:
if the user types: ScopeA::ScopeB::Function it will return ScopeA::ScopeB Then I used my read_scope_prefix function in editor_show_calltip where find_calltips is called. To find_calltips I added an argument const gchar *scope to send the value over. find_calltips now passes scope argument to tm_workspace_find function. If no tags are found within the typed scope, find_calltips falls back to its original behavior, which does not account for scope when displaying function calltips. <img src="http://imgur.com/ucUiyV4.png"></img> You can view, comment on, or merge this pull request online at: https://github.com/geany/geany/pull/1177 -- Commit Summary -- * added read_scope_prefix and, added scope arguement to find_calltips, and calltips now searches scope for tags -- File Changes -- M src/editor.c (86) -- Patch Links -- https://github.com/geany/geany/pull/1177.patch https://github.com/geany/geany/pull/1177.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/geany/geany/pull/1177
