nvim-autopairs icon indicating copy to clipboard operation
nvim-autopairs copied to clipboard

Make fast wrap befor punctuation

Open fgheng opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] Hello, I am always frustrated when I use fast wrap, the example is as below: input: |hello, how are you; | is where the cursor at, and now I input " at | then input <M-e> to fast wrap output: 'helloq howwareeyou$ if I input $, the result will be 'hello, how are you;' buf what I want is 'hello, how are you';

Describe the solution you'd like A clear and concise description of what you want to happen. put wrap before punctuation.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. I have added %; to fast_wrap.pattern, but it can not help

Additional context Add any other context or screenshots about the feature request here.

fgheng avatar May 29 '22 16:05 fgheng

I am facing a similar issue with fast wrap, when making json objects I sometimes forget to wrap the properties in quotes so I wanna use fast wrap to fix it but I wants to add the quotes after the colon not before

PCJPablo avatar Jul 28 '22 18:07 PCJPablo

I need this too, please give us this feature!

FT-Labs avatar Sep 25 '22 19:09 FT-Labs

I need this too 🥺

williamhCode avatar Nov 07 '22 02:11 williamhCode

This should be fixed, issue can be closed :)

davawen avatar Nov 25 '22 20:11 davawen