<blockquote>
<p>Its probably going to be easier to just have your own autocomplete dialog</p>
</blockquote>
<p>Ok, but at least it is need to add notify for start of dialog displaying.</p>
<blockquote>
<p>the Geany version is provided by Scintilla, but populated by Geany, and is strongly linked to Geany's tags and symbols mechanism that you won't be using. So its likely to be more complicated to modify to allow external input without breaking any existing functionality</p>
</blockquote>
<p>Currently I use this code for autocompletion dialog in my own plugin without any problems:</p>
<div class="highlight highlight-source-d"><pre><span class="pl-c"><span class="pl-c">//</span>/ This is D language</span>
    scintilla_send_message(
            doc.editor.sci,
            Sci.<span class="pl-c1">SCI_AUTOCSHOW</span>,
            <span class="pl-k">cast</span>(uptr_t) alreadyEnteredNum,
            <span class="pl-k">cast</span>(sptr_t) preparedList.toStringz
        );</pre></div>
<p>So it is only need some public function pointer inside of Geany what returns list for autocompletion and also another one for tips window. If plugin will be able to replace this pointers by its own it will be very usable.</p>

<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/issues/1854#issuecomment-387008220">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ9eFlOfsLoGqd7MyBW2eePr2lcRaks5twBFZgaJpZM4Tz9fX">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ1qPH7LdIxfSGo_-H91SDlj0RQWPks5twBFZgaJpZM4Tz9fX.gif" height="1" width="1" alt="" /></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/issues/1854#issuecomment-387008220"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue 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":"PERSON","message":"@denizzzka in #1854: \u003e Its probably going to be easier to just have your own autocomplete dialog\r\n\r\nOk, but at least it is need to add notify for start of dialog displaying.\r\n\r\n\u003e the Geany version is provided by Scintilla, but populated by Geany, and is strongly linked to Geany's tags and symbols mechanism that you won't be using. So its likely to be more complicated to modify to allow external input without breaking any existing functionality\r\n\r\nCurrently I use this code for autocompletion dialog in my own plugin without any problems:\r\n\r\n```D\r\n/// This is D language\r\n    scintilla_send_message(\r\n            doc.editor.sci,\r\n            Sci.SCI_AUTOCSHOW,\r\n            cast(uptr_t) alreadyEnteredNum,\r\n            cast(sptr_t) preparedList.toStringz\r\n        );\r\n```\r\n\r\nSo it is only need some public function pointer inside of Geany what returns list for autocompletion and also another one for tips window. If plugin will be able to replace this pointers by its own it will be very usable."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1854#issuecomment-387008220"}}}</script>