2017-07-05 8:05 GMT+07:00 Lex Trotman <elextr@gmail.com>:
On 5 July 2017 at 02:00, Vasiliy Faronov <vfaronov@gmail.com> wrote:
> Hi Denis,
>
> As far as I understand, none of this is directly supported by Geany right now.
>
> This is a known problem: https://github.com/geany/geany/issues/1458
>
> Until it is solved systematically (if ever), you might be able to hack
> around it.

Sadly the discussion seems to have hung again.  Maybe it simply isn't
easily solvable for Geany core.

>
> For custom autocompletion, see:
> https://github.com/notetau/geany-jedi-complete/tree/master/geany-complete-core

The use of a separate completion popup as used by the above is the
best current solution, keep asynchronism in the plugin, remember
neither Geany now GTK is re-entrant, you need to use `g_idle_add()` to
synchronise any code that is going to call Geany or GTK or Scintilla.
ATM I don't think plugins can turn Geany autocomplete off, but it can
prompt the user to do so.

>
> For tags, you do have access to parts of TagManager such as
> tm_workspace_add_source_file -- maybe you could use that creatively
> somehow.

Its possible, however if your plugin has accurate information about
what is visible at any point, then you may not want to use tagmanager
for autocompletion, but it could be used to display symbols in the
symbols pane.  Tagmanager does not know about what is/is not in scope,
so using it will therefore lose the accuracy your plugin had.


Tags also used for syntax highlighting, right? By this I want to add more accuracy syntax highlighting for D.
 
>
> And of course you can have a custom "Go to D Symbol Definition" command.

And keybinding.

Cheers
Lex
>
> --
> Vasiliy
> _______________________________________________
> Devel mailing list
> Devel@lists.geany.org
> https://lists.geany.org/cgi-bin/mailman/listinfo/devel
_______________________________________________
Devel mailing list
Devel@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/devel