gtksource.snippet_manager
Module for [SnippetManager] class
Types 3
Provides access to class@Snippet.
[gtksource.snippet_manager.SnippetManager] is an object which processes snippet description files and creates class@Snippet objects.
Use [gtksource.snippet_manager.SnippetManager.getDefault] to retrieve the default instance of [gtksource.snippet_manager.SnippetManager].
Use [gtksource.snippet_manager.SnippetManager.getSnippet] to retrieve snippets for a given snippets.
Methods
SnippetManager self()Returns `this`, for use in `with` statements.SnippetManagerGidBuilder builder()Get builder for [gtksource.snippet_manager.SnippetManager] Returns: New builder objectgtksource.snippet_manager.SnippetManager getDefault()Returns the default #GtkSourceSnippetManager instance. Returns: a #GtkSourceSnippetManager which is owned by GtkSourceView library and must not be unref'd.string[] getSearchPath()Gets the list directories where self looks for snippet files. Returns: null-terminated array containing a list of snippet files directories. The array is owned by lm and must not be modified.gtksource.snippet.Snippet getSnippet(string group, string languageId, string trigger)Queries the known snippets for the first matching group, language_id, and/or trigger.gio.list_model.ListModel listAll()Gets a [gio.list_model.ListModel] of all snippets.string[] listGroups()List all the known groups within the snippet manager.gio.list_model.ListModel listMatching(string group = null, string languageId = null, string triggerPrefix = null)Queries the known snippets for those matching group, languageid, and/or triggerprefix.void setSearchPath(string[] dirs = null)Sets the list of directories in which the [gtksource.snippet_manager.SnippetManager] looks for snippet files.Fluent builder for [gtksource.snippet_manager.SnippetManager]
Methods