This is a super simple plugin that checks the search registry /
and runs the
search again for the search phrase and creates a dedicated buffer with the
output.
It is useful for quick text manipulation on the search output.
Plug 'piotr1215/yanksearch.nvim'
use 'piotr1215/yanksearch.nvim'
To use the plugin, simply type :YankMatchingLines
after performing a search.
Neovim 0.5 or higher
As of the latest update, the plugin supports configuration options. You can specify the number of lines above, below, or around the matching line to be yanked as well.
Here's an example:
require('yanksearch').setup({
lines_above = 1,
lines_below = 1,
lines_around = 0,
})
The plugin defaults to:
require('yanksearch').setup({
lines_above = 0,
lines_below = 0,
lines_around = 0,
})
Tests are run with vusted test
.
Ci auto generates neovim help doc from README, so it's possible to run h yanksearch