Rode’s find and replace feature provides powerful text manipulation capabilities with an intuitive interface.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kashsuks/rode/llms.txt
Use this file to discover all available pages before exploring further.
Opening Find & Replace
PressCmd+F to open the find and replace panel.
The panel appears above the editor with two input fields:
- Find: Text to search for
- Replace: Text to replace matches with
Basic Search
Match Counter
The find panel displays match information in real-time:- Empty when no search term
- “2 of 5” when matches are found
- “No matches” when search has no results
Case Sensitivity
Toggle case-sensitive matching with the case sensitivity button.- Case Insensitive (Default)
- Case Sensitive
Matches text regardless of capitalization:
- “hello” matches “Hello”, “HELLO”, “hello”
- “Test” matches “test”, “TEST”, “Test”
Keyboard Shortcut
| Action | Shortcut |
|---|---|
| Toggle case sensitivity | Click case button in panel |
Toggling case sensitivity automatically re-runs the search with the new setting.
Match Navigation
Quickly jump between search results.Next Match
Navigate to the next occurrence:- Click the “Next” button
- Use keyboard shortcut (if configured)
Previous Match
Navigate to the previous occurrence:- Click the “Previous” button
- Use keyboard shortcut (if configured)
- Wraps around (next from last match goes to first)
- Updates match counter automatically
- Preserves selection on the current match
Replace Operations
Rode offers both single and bulk replace operations.Replace Single Match
Replace the currently selected match:- Match list is updated
- Current match advances to next occurrence (or stays on last if at end)
- Document is marked as modified
Replace All Matches
Replace every occurrence in the document:- Processes matches in reverse order (to maintain position accuracy)
- Clears the match list after completion
- Returns the number of replacements made
- Marks document as modified
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
Cmd+F | Open find and replace |
Escape | Close find and replace |
| (buttons) | Next match |
| (buttons) | Previous match |
| (buttons) | Replace one |
| (buttons) | Replace all |
| (button) | Toggle case sensitivity |
Use Cases
Rename Variables
Find all instances of a variable name and replace with a new name
Update URLs
Change domain names or paths across documentation
Fix Typos
Search for common misspellings and correct them
Refactor Code
Update function names, class names, or constants
Feature State
The find and replace panel maintains state:Whether the panel is currently visible
Current search query
Text to replace matches with
Whether matching is case-sensitive
Total number of matches found
Index of the currently highlighted match (0-based)
Positions of all matches in the document
Tips & Best Practices
Review Before Replace All
Review Before Replace All
Use next/previous to review matches before doing a bulk replace. This helps catch unintended replacements.
Case Sensitivity for Precision
Case Sensitivity for Precision
Enable case-sensitive search when working with code to avoid matching variable names with different cases.
Empty Replace for Deletion
Empty Replace for Deletion
Leave the replace field empty to delete all matches of the search term.
Check Match Counter
Check Match Counter
The match counter (“X of Y”) helps verify you’re finding what you expect before replacing.