Search
The Search feature allows users to find text within PDF and EPUB documents. Search opens a panel where users type a query to find matching text. Results display with context snippets and allow navigation to the matching location. Found terms are highlighted in the document.
Accessing Search
The Search button is located in the Header Right Section for both desktop and mobile devices.
The Search button is disabled when offline. Search requires an internet connection for server-side text processing.
Search Input
| Requirement | Value |
|---|---|
| Minimum characters | 4 |
| Maximum characters | 128 |
| Debounce delay | 1 second |
Input States
| State | Message |
|---|---|
| Below minimum | "Keep typing" |
| Searching | Loading spinner |
| No results | "No results found" |
Search Results
Results display in a scrollable list with the following information:
| Element | EPUB | |
|---|---|---|
| Page/Chapter header | Page number (uppercase) | Hidden |
| Snippet | Context text with match highlighted | Context text with match highlighted |
Result Navigation
Clicking a result:
- Navigates to the page/chapter containing the match
- Highlights matching words in the document
- Closes the search panel
Text Highlighting
When navigating to a search result, matching words are highlighted in the document:
| Property | Value |
|---|---|
| Color | Green (#0fff13) |
| Opacity | 30% |
| Match type | Partial word matches |
Highlights are cleared when the search panel is closed.
Search History
The search panel maintains a history of recent searches:
| Property | Value |
|---|---|
| Maximum entries | 5 |
| Storage | Browser localStorage |
| Persistence | Across sessions |
History displays when the search input is empty. Clicking a history item repeats that search.
Keyboard Navigation
| Key | Action |
|---|---|
| Arrow Down | Navigate to next result |
| Arrow Up | Navigate to previous result |
| Enter | Select highlighted result |
| Escape | Close search or clear selection |
| Ctrl/Cmd + F | Open search (global shortcut) |
Related Documentation
For more information about feature visibility and device adaptation, see Reader Features.