@elextr commented on this pull request.
+static gboolean autocomplete_provided(GeanyDocument *doc, gpointer data)
+{ + /* Check whether the plugin provides the feature for the passed document */ + return doc->file_type->id == GEANY_FILETYPES_PYTHON; +} + + +static void autocomplete_perform(GeanyDocument *doc, gboolean force, gpointer data) +{ + /* The autocompletion logic comes here, including the autocompletion UI + * display (either using some custom widget or using Scintilla's + * SCI_AUTOCSHOW) */ +} + + +/* The PluginExtension instance - we only implement autocompletion here. */
See the overall comment on the review.