obsidian-vimrc-support icon indicating copy to clipboard operation
obsidian-vimrc-support copied to clipboard

`surround` with Text Including Spaces

Open iamrecursion opened this issue 1 year ago • 1 comments

As far as I can tell at the moment, there's no way to use surround where one or both of the delimiter texts contain raw spaces. Passing strings directly (e.g. surround "( " " )") does not seem to work, nor does escaping spaces (e.g. surround (\ \ )). Are there any plans to support this kind of use case?

iamrecursion avatar Jul 10 '22 04:07 iamrecursion

I was hoping this would work after seeing #44 - it seems like the \ escape works if the escaped space is in the middle of a string, but in this case the space is on the beginning, or end, of the string, and it doesn't work, e.g.

:surround (\  \)

tangledhelix avatar Mar 28 '24 00:03 tangledhelix