<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2017-07-05 8:05 GMT+07:00 Lex Trotman <span dir="ltr"><<a href="mailto:elextr@gmail.com" target="_blank">elextr@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_-6118887815563393042gmail-">On 5 July 2017 at 02:00, Vasiliy Faronov <<a href="mailto:vfaronov@gmail.com" target="_blank">vfaronov@gmail.com</a>> wrote:<br>
> Hi Denis,<br>
><br>
> As far as I understand, none of this is directly supported by Geany right now.<br>
><br>
> This is a known problem: <a href="https://github.com/geany/geany/issues/1458" rel="noreferrer" target="_blank">https://github.com/geany/geany<wbr>/issues/1458</a><br>
><br>
> Until it is solved systematically (if ever), you might be able to hack<br>
> around it.<br>
<br>
</span>Sadly the discussion seems to have hung again.  Maybe it simply isn't<br>
easily solvable for Geany core.<br>
<span class="gmail-m_-6118887815563393042gmail-"><br>
><br>
> For custom autocompletion, see:<br>
> <a href="https://github.com/notetau/geany-jedi-complete/tree/master/geany-complete-core" rel="noreferrer" target="_blank">https://github.com/notetau/gea<wbr>ny-jedi-complete/tree/master/<wbr>geany-complete-core</a><br>
<br>
</span>The use of a separate completion popup as used by the above is the<br>
best current solution, keep asynchronism in the plugin, remember<br>
neither Geany now GTK is re-entrant, you need to use `g_idle_add()` to<br>
synchronise any code that is going to call Geany or GTK or Scintilla.<br>
ATM I don't think plugins can turn Geany autocomplete off, but it can<br>
prompt the user to do so.<br>
<span class="gmail-m_-6118887815563393042gmail-"><br>
><br>
> For tags, you do have access to parts of TagManager such as<br>
> tm_workspace_add_source_file -- maybe you could use that creatively<br>
> somehow.<br>
<br>
</span>Its possible, however if your plugin has accurate information about<br>
what is visible at any point, then you may not want to use tagmanager<br>
for autocompletion, but it could be used to display symbols in the<br>
symbols pane.  Tagmanager does not know about what is/is not in scope,<br>
so using it will therefore lose the accuracy your plugin had.<br>
<span class="gmail-m_-6118887815563393042gmail-"><br></span></blockquote><div><br>Tags also used for syntax highlighting, right? By this I want to add more accuracy syntax highlighting for D.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_-6118887815563393042gmail-">
><br>
> And of course you can have a custom "Go to D Symbol Definition" command.<br>
<br>
</span>And keybinding.<br>
<br>
Cheers<br>
<span class="gmail-m_-6118887815563393042gmail-HOEnZb"><font color="#888888">Lex<br>
</font></span><div class="gmail-m_-6118887815563393042gmail-HOEnZb"><div class="gmail-m_-6118887815563393042gmail-h5">><br>
> --<br>
> Vasiliy<br>
> ______________________________<wbr>_________________<br>
> Devel mailing list<br>
> <a href="mailto:Devel@lists.geany.org" target="_blank">Devel@lists.geany.org</a><br>
> <a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.geany.org/cgi-bi<wbr>n/mailman/listinfo/devel</a><br>
______________________________<wbr>_________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org" target="_blank">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" rel="noreferrer" target="_blank">https://lists.geany.org/cgi-bi<wbr>n/mailman/listinfo/devel</a><br>
</div></div></blockquote></div><br></div></div>