Skip to content

Commit

Permalink
fix(#207): Updated documentation for search method. (#214)
Browse files Browse the repository at this point in the history
* fix: bump dependencies

* fix: Updated documentation for search method
  • Loading branch information
wickedest authored Oct 11, 2024
1 parent 498746a commit 350e5af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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

Expand Down

0 comments on commit 350e5af

Please sign in to comment.