LiveDraft Search & Replace adds a powerful search and replace panel to the WordPress Block Editor (Gutenberg).
It allows you to quickly find, highlight, and replace text directly from the sidebar as soon as you open it.
Features
- Live Highlighting: Instantly visualize matches as you type with zero lag.
- Bulk Actions: Replace a single targeted match or perform a “Replace All” across all blocks seamlessly.
- Advanced Search: Full support for Regular Expressions (Regex) and Case-Sensitive matching.
- Performance First: Optimized for large documents using virtual highlighting.
- Safe & Clean: Your content is never polluted with temporary HTML tags. Highlighting is virtual and database-safe.
- Undo/Redo Ready: Fully integrated with the WordPress core Undo system. You can revert any replacement by clicking the editor’s Undo button, ensuring a safe and reliable editing experience.
- Flexible Navigation: Seamlessly navigate and edit your content with precision as described below.
Flexible Navigation & Instant Replace
This tool provides a seamless way to navigate and edit your content with precision:
-
Precision Navigation (Keyboard & Buttons)
Effortlessly cycle through matches using the “Next” (Enter) and “Previous” (Shift + Enter) keys. You can also use the “Current” (◎) and UI buttons to jump directly to the selection in the editor. -
Smart “Click-to-Select”
Click any highlighted match in the editor to instantly set it as your current position. This synchronizes the sidebar counter and focus without jumping the screen. -
Instant “Double-Click” Replace
For a faster workflow, you can double-click any highlighted text directly within the editor to replace it instantly. -
Auto-populate from Selection
Enable “Auto-populate from selection” in the sidebar to automatically update the search field whenever you highlight text in the editor. This eliminates the need for copy-pasting.
Additional Notes (Performance & Scope)
Dynamic Highlighting Scope:
To maintain high performance, the editor highlights the 300 matches nearest to your current position (150 before and 150 after). As you move through the document, this highlight window shifts automatically.
Unlimited “Replace All”:
The “Replace All” function is not affected by the highlight limit. It will accurately replace every single match throughout the entire document, regardless of whether it is currently highlighted in the editor.
Buy Me a Coffee
If this plugin helps you in your work, consider buying me a coffee.
Your support helps keep this plugin maintained and improved.
Donate via PayPal:
https://www.paypal.me/kasuga16