Class: GtkSource::Completion
- Inherits:
-
Object
- Object
- GtkSource::Completion
- Defined in:
- (unknown)
Class Method Summary collapse
-
.fuzzy_highlight(haystack, casefold_query) ⇒ Pango::AttrList
This will add
<b>tags around matched characters in haystack based on casefold_query. -
.fuzzy_match(haystack, casefold_needle, priority) ⇒ Boolean
This helper function can do a fuzzy match for you giving a haystack and casefolded needle.
Instance Method Summary collapse
-
#add_provider(provider) ⇒ nil
Adds a [ifaceCompletionProvider] to the list of providers to be queried for completion results.
- #block_interactive ⇒ nil
-
#buffer ⇒ Gtk::TextView
The Gtk::TextBuffer for the #GtkSourceCompletion:view.
-
#buffer=(buffer) ⇒ Gtk::TextView
The Gtk::TextBuffer for the #GtkSourceCompletion:view.
-
#hide ⇒ nil
Emits the "hide" signal.
-
#page_size ⇒ Integer
The number of rows to display to the user before scrolling.
-
#page_size=(page_size) ⇒ Integer
The number of rows to display to the user before scrolling.
-
#remember_info_visibility=(remember_info_visibility) ⇒ Boolean
Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
-
#remember_info_visibility? ⇒ Boolean
Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
-
#remove_provider(provider) ⇒ nil
Removes a [ifaceCompletionProvider] previously added with [methodCompletion.add_provider].
-
#select_on_show=(select_on_show) ⇒ Boolean
Determines whether the first proposal should be selected when the completion is first shown.
-
#select_on_show? ⇒ Boolean
Determines whether the first proposal should be selected when the completion is first shown.
-
#show ⇒ nil
Emits the "show" signal.
-
#show_icons=(show_icons) ⇒ Boolean
The "show-icons" property denotes if icons should be displayed within the list of completions presented to the user.
-
#show_icons? ⇒ Boolean
The "show-icons" property denotes if icons should be displayed within the list of completions presented to the user.
- #unblock_interactive ⇒ nil
-
#view ⇒ GtkSource::View
The "view" property is the Gtk::TextView for which this #GtkSourceCompletion is providing completion features.
-
#view=(view) ⇒ GtkSource::View
The "view" property is the Gtk::TextView for which this #GtkSourceCompletion is providing completion features.
Class Method Details
.fuzzy_highlight(haystack, casefold_query) ⇒ Pango::AttrList
This will add <b> tags around matched characters in haystack
based on casefold_query.
.fuzzy_match(haystack, casefold_needle, priority) ⇒ Boolean
This helper function can do a fuzzy match for you giving a haystack and casefolded needle.
Casefold your needle using [funcGLib.utf8_casefold] before running the query.
Score will be set with the score of the match upon success. Otherwise, it will be set to zero.
Instance Method Details
#add_provider(provider) ⇒ nil
Adds a [ifaceCompletionProvider] to the list of providers to be queried for completion results.
#block_interactive ⇒ nil
#buffer ⇒ Gtk::TextView
The Gtk::TextBuffer for the #GtkSourceCompletion:view. This is a convenience property for providers.
#buffer=(buffer) ⇒ Gtk::TextView
The Gtk::TextBuffer for the #GtkSourceCompletion:view. This is a convenience property for providers.
#hide ⇒ nil
Emits the "hide" signal.
When the "hide" signal is emitted, the completion window will be dismissed.
#page_size ⇒ Integer
The number of rows to display to the user before scrolling.
#page_size=(page_size) ⇒ Integer
The number of rows to display to the user before scrolling.
#remember_info_visibility=(remember_info_visibility) ⇒ Boolean
Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
#remember_info_visibility? ⇒ Boolean
Determines whether the visibility of the info window should be saved when the completion is hidden, and restored when the completion is shown again.
#remove_provider(provider) ⇒ nil
Removes a [ifaceCompletionProvider] previously added with [methodCompletion.add_provider].
#select_on_show=(select_on_show) ⇒ Boolean
Determines whether the first proposal should be selected when the completion is first shown.
#select_on_show? ⇒ Boolean
Determines whether the first proposal should be selected when the completion is first shown.
#show ⇒ nil
Emits the "show" signal.
When the "show" signal is emitted, the completion window will be displayed if there are any results available.
#show_icons=(show_icons) ⇒ Boolean
The "show-icons" property denotes if icons should be displayed within the list of completions presented to the user.
#show_icons? ⇒ Boolean
The "show-icons" property denotes if icons should be displayed within the list of completions presented to the user.
#unblock_interactive ⇒ nil
#view ⇒ GtkSource::View
The "view" property is the Gtk::TextView for which this #GtkSourceCompletion is providing completion features.
#view=(view) ⇒ GtkSource::View
The "view" property is the Gtk::TextView for which this #GtkSourceCompletion is providing completion features.