<p>I created function read_scope_prefix which is similar to read_current_word. It gets the scope of the word the cursor is on:</p>

<p>if the user types: ScopeA::ScopeB::Function<br>
it will return ScopeA::ScopeB</p>

<p>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.</p>

<p><a href="https://camo.githubusercontent.com/61d7b549937595797f8044cdb1699978486a2c15/687474703a2f2f696d6775722e636f6d2f756355697956342e706e67" target="_blank"><img src="https://camo.githubusercontent.com/61d7b549937595797f8044cdb1699978486a2c15/687474703a2f2f696d6775722e636f6d2f756355697956342e706e67" data-canonical-src="http://imgur.com/ucUiyV4.png" style="max-width:100%;"></a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/1177'>https://github.com/geany/geany/pull/1177</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>added read_scope_prefix and, added scope arguement to find_calltips, and calltips now searches scope for tags</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/1177/files#diff-0">src/editor.c</a>
    (86)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/1177.patch'>https://github.com/geany/geany/pull/1177.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/1177.diff'>https://github.com/geany/geany/pull/1177.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/1177">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJzpEf9tpudxITG3KZULnUlG8-vBqks5qfOhYgaJpZM4Jje5P">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ43CEa-qNQppJwOF1xGSt1JKXNKPks5qfOhYgaJpZM4Jje5P.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/1177"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Added support for scoped function calltips (#1177)"}],"action":{"name":"View Pull Request","url":"https://github.com/geany/geany/pull/1177"}}}</script>