@shaunlebron except indent lines with tab, any case for multiple changes?
multiple cursor?
search/replace
I'm trying to introduce parinfer-rust in emacs. in current version, there's no change in result, so I should replace the whole in editor? that may cause some issues in emacs.
not sure what the vim plugin is doing, i don’t think it’s replacing whole text
might wanna follow what it’s doing
likewise, you can do parent-expression hack rather than replacing whole file
The Vim plugin finds the first and last changed lines and replaces that subset with one setline() call.
Actually, there's first a shortcut to test if it gets the text back unchanged, in which case it does nothing.
(well, it will still update the cursor POS)
It could be useful to move computing the delta into the wrapper.
I might add support for nvim_buf_set_lines there :thinking_face: something about performance.
OK, so there's a test harness now: https://github.com/eraserhd/parinfer-rust/blob/master/tests/test_parinfer.vim
@dominicm It's using Vim-specific terminal functions, I think. It would be cool to have tests running on Neovim, also.
hint hint