parinfer

eraserhd 2019-01-15T14:37:00.055400Z

@shaunlebron do you think we always want paren mode to fix up paste operations? Users are requesting it, but feels like we might not always want that.

eraserhd 2019-01-15T15:12:28.056100Z

@shaunlebron also, I owe you a link to NeoVim buffer changes API. I haven't looked to closely, but here's what I had: https://github.com/neovim/neovim/pull/7917

shaunlebron 2019-01-15T18:41:10.056800Z

paren mode won’t solve all paste issues though

shaunlebron 2019-01-15T18:41:51.057400Z

pasted input can be unbalanced itself

shaunlebron 2019-01-15T18:43:56.059Z

might be worth trying—after pasting, run paren mode if and only if the result is balanced

shaunlebron 2019-01-15T18:45:09.060200Z

paren mode can’t do anything with unbalanced code anyway

shaunlebron 2019-01-15T18:45:21.060500Z

so I’d try that if you’re looking for a direction to go with wrangling pasted code

shaunlebron 2019-01-15T18:48:25.060600Z

not enough context for me to understand this link

eraserhd 2019-01-15T20:27:46.061300Z

ahh, that sounds acceptable