cshuaimin / ssr.nvim

Treesitter based structural search and replace plugin for Neovim.
MIT License
933 stars 13 forks source link

Impossible to search for literal `$` #37

Open loqusion opened 11 months ago

loqusion commented 11 months ago

If the string you want to search and replace contains a $, it seems there is currently no way to use ssr.nvim since $ is interpreted as a special character. This makes working with languages that make heavy use of $ such as php and bash quite cumbersome.

Perhaps we could implement some basic escape sequence, like \$? (\\ for literal backslash)