SearchSettings.getSearchText

string getSearchText()

Gets the text to search. The return value must not be freed.

You may be interested to call [gtksource.global.utilsEscapeSearchText] after this function.

Returns

the text to search, or null if the search is disabled.