From 350e5af2e8b2e852364dc5a5729e03e3bc75358b Mon Sep 17 00:00:00 2001 From: Jamie Peabody Date: Fri, 11 Oct 2024 21:52:46 +0100 Subject: [PATCH] fix(#207): Updated documentation for search method. (#214) * fix: bump dependencies * fix: Updated documentation for search method --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 61def81..a5c3464 100644 --- a/README.md +++ b/README.md @@ -353,7 +353,7 @@ Scrolls to the next change specified by `direction`. doc.scrollToDiff('next'); ``` -### search(side: string, needle: string) +### search(side: string, needle: string, direction: string = 'next') Search the editor for `needle`, scrolling to the next available match. Repeating the call will find the next available token. @@ -363,6 +363,7 @@ Search the editor for `needle`, scrolling to the next available match. Repeating |----|----|-----------| |side|string|The editor side, either `lhs` or `rhs`.| |needle|string|The text for which to search.| +|direction|string|The direction to search, either `prev` or `next`.| #### Example