NORMAL ~/wkd/p/replacer :set skin=modern utf-8

replacer.nvim

Project-wide search-and-replace where every occurrence is its own decision. ripgrep finds the matches, a picker — fzf-lua or Telescope — lets you select them one by one with the hit highlighted in the preview, and nothing is written before you have had the chance to look at a diff.

status
beta — Beta stage — active development. This repository is past its first shape and in active use, but the surface is not frozen: breaking changes are still possible. Pin a commit or tag if you depend on it.
category
Editing
neovim
0.9+
repo
github.com/StefanBartl/replacer.nvim
commits
174
help
:help replacer

demo

recorded with VHS from demos/replacer.tape in a clean Neovim — re-recorded weekly
what is shown when
  1. :Replace old new --dry - plan first, write nothing
  2. :Replace old new --all - apply everywhere

install

{
  "StefanBartl/replacer.nvim",
  opts = {},
}

docs/

git log

  1. fix regex: :ReplaceTest panel now themed via ui.kit, not hardcoded rounded
  2. docs bindings: document the engine-native preview navigation keys
  3. refactor debug: dump inspect_buffer/analyze_line via lib.nvim.output.viewer
  4. docs link back to the wkd family site
  5. perf gitfiles: --changed asks git once instead of up to three times
  6. ci bump leafo/gh-actions-lua and gh-actions-luarocks off Node 20
  7. ci bump JohnnyMorganz/stylua-action to v5 (Node-20 deprecation)
  8. ci bump the failure-log upload to upload-artifact@v7; make test runs swap/shada-free
  9. ci pin ui/documentation/pickers checkouts to their ci-verified branch
  10. ci add job timeouts, failure log artifacts, swap/shada-free nvim runs, pinned deps
  11. refactor regex: rename escape_and_report to escape_to_register (PRIN-02)
  12. docs remove emoji and bold-as-heading from docs (LUA-54)

keys

j / k
next / previous line
gg / G
first / last line
⏎
open the line under the cursor
/
search the plugins
:
command line — Tab completes
:help x
vimdoc of a plugin (:e x = plugin page)
:ls · :log · :stack
plugin list · activity stream · dependency graph
:colo x
colorscheme
:set skin=
modern | tui
?
this help
esc
close