code functions to build search list from a range in the buffer (not searching for every single match, but searching for visible matches on user's window)

This commit is contained in:
2025-08-07 15:28:29 +01:00
parent 30036177fb
commit 27c5d11dd7
3 changed files with 98 additions and 24 deletions

View File

@@ -68,9 +68,10 @@ struct
(* todo: remove temp line below which tests search list *)
val app =
let
val buffer = #buffer app
val buffer = LineGap.goToEnd buffer
val searchString = "val "
val (buffer, searchList) =
SearchList.build (#buffer app, searchString)
val searchList = SearchList.build (buffer, searchString)
val buffer = LineGap.goToStart buffer
in
AppWith.searchList (app, searchList, buffer, searchString)