1
0
mirror of synced 2025-11-06 04:30:40 +08:00

fix(#207): Updated documentation for search method. (#214)

* fix: bump dependencies

* fix: Updated documentation for search method
This commit is contained in:
Jamie Peabody
2024-10-11 21:52:46 +01:00
committed by GitHub
parent 498746a831
commit 350e5af2e8

View File

@@ -353,7 +353,7 @@ Scrolls to the next change specified by `direction`.
doc.scrollToDiff('next');
```
### <a name="search"></a>search(side: string, needle: string)
### <a name="search"></a>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