Suggestion.replaceTypedText

This function is meant to be used to replace the text in the entry with text that represents the suggestion most accurately. This happens when the user presses tab while typing a suggestion. For example, if typing "gno" in the entry, you might have a suggest_suffix of "me.org" so that the user sees "gnome.org". But the replace_typed_text might include more data such as "https://gnome.org" as it more closely represents the suggestion.

class Suggestion
string
replaceTypedText
(
string typedText
)

Parameters

typedText
Type: string

the text that was typed into the entry

Return Value

Type: string

The replacement text to insert into the entry when "tab" is pressed to complete the insertion.

Meta