You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ah, that's technically not a bug, but simply a feature not supported yet.
Search/replace for line breaks entails quite the need for quite a bit of extra logic (file-format specific line breaks, nvim's editor model working with an array of lines, accounting for match at the border of line ranges, etc.)
Also, the incremental preview of replacements affecting \n require the ability to hide complete lines in the buffer, something to my knowledge neovim core does not support yet. Thus, such a feature cannot even be implemented at the moment.
chrisgrieser
changed the title
Bug: Some regex is not recognized
FR: support search/replace for line breaks
Nov 27, 2024
Make sure you have done the following
Bug Description
New lines (
\n
), carriage returns (\r
) or*
are not recognized. Possibly moreRelevant Screenshot
To Reproduce
Search for/replace with
\n
,\r
or*
Sample Text
this is a test with carraige return and
new lines
neovim version
NVIM v0.10.2
ripgrep version
ripgrep 14.1.1
Minimal reproducible config
The text was updated successfully, but these errors were encountered: