A Neovim search and replace panel with regex support, live updates, and multiple replace engines.
nvim-spectre is a Neovim plugin that provides a dedicated search and replace panel for project-wide text operations. It solves the problem of cumbersome multi-file find-and-replace by integrating regex search, live updates, and multiple replace engines into a single Neovim interface. The plugin leverages external tools like ripgrep for fast searching and sed or oxi for reliable replacements.
Neovim users who frequently perform project-wide text replacements, such as developers refactoring codebases, updating configuration files, or managing documentation. It's particularly useful for those who prefer staying within the editor for all editing tasks.
Developers choose nvim-spectre for its tight Neovim integration, avoiding the need to switch to external tools or terminals. Its unique selling point is the combination of live updates, regex support, and multiple replace engines in a single buffer, offering a faster and more controlled alternative to command-line find-and-replace workflows.
Find the enemy and replace them with dark power.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports vim magic mode regex for powerful text matching directly in Neovim, as highlighted in the README's regex features and warnings.
Offers sed, oxi, and sd engines for replacements, allowing users to choose based on performance and syntax preferences, with oxi recommended for better integration.
Keeps all search and replace operations in a single buffer, reducing context switching, which aligns with the plugin's philosophy of seamless editing.
Provides extensive keybinding configurations and options like live updates and path filtering, as shown in the setup and mapping sections of the README.
Replacements are irreversible within the plugin, requiring users to commit files first, as warned in the README, which adds risk for unsaved changes.
Uses vim regex that differs from ripgrep and sed syntax, potentially leading to replacement errors, as admitted in the README's regex issues section.
Relies on ripgrep, sed, and optional tools like oxi and devicons, increasing setup complexity and potential compatibility issues across systems.