I've tried buffer.forward_search()
, but GJS doesn't seem to support it yet. I want to be able to search a string in a TextBuffer, and get the match, and its location (start, end). Went through the wiki, GJS 3 doesn't have anything similar yet, it seems
Asked
Active
Viewed 60 times
0

Xuzavop
- 1
-
Can you provide more information about what libraries you are using? There is no GJS 3, and there is no `forward_search` method on [TextBuffer](https://docs.gtk.org/gtk3/class.TextBuffer.html). Are you looking for the method on [TextIter](https://gjs-docs.gnome.org/gtk30~3.24.34/gtk.textiter#method-forward_search)? – ptomato Oct 15 '22 at 23:35