kylechui / nvim-surround

Add/change/delete surrounding delimiter pairs with ease. Written with :heart: in Lua.
MIT License
2.92k stars 60 forks source link

`csbq` replaces with double quote #284

Closed kuator closed 7 months ago

kuator commented 7 months ago

Checklist Have you read through :h nvim-surround to see if there might be any relevant information there? Yes

Is your feature request related to a problem? Please describe. When I try to csbq this piece of text (abc), it turns into qabcq, but "abc" would be more preferrable, imo

Describe the solution you'd like Would it be possible to add an option that makes csbq replace previous surrounding with double quote, as double quotes are what I use 99.9 percent of the time?

kylechui commented 7 months ago

You should be able to add a surround like q = { add = { '"', '"' } } for that behavior. Aliases for multiple characters don't have a well-defined "default" operation; someone else might prefer ' normally or even ` by default.

kuator commented 7 months ago

Thank you!