Fork me on GitHub
#parinfer
<
2018-03-22
>
tianshu04:03:27

@shaunlebron except indent lines with tab, any case for multiple changes?

tianshu04:03:37

multiple cursor?

shaunlebron10:03:49

search/replace

tianshu10:03:55

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.

shaunlebron11:03:08

not sure what the vim plugin is doing, i don’t think it’s replacing whole text

shaunlebron11:03:28

might wanna follow what it’s doing

shaunlebron11:03:16

likewise, you can do parent-expression hack rather than replacing whole file

eraserhd11:03:53

The Vim plugin finds the first and last changed lines and replaces that subset with one setline() call.

eraserhd11:03:51

Actually, there's first a shortcut to test if it gets the text back unchanged, in which case it does nothing.

eraserhd11:03:19

(well, it will still update the cursor POS)

eraserhd11:03:02

It could be useful to move computing the delta into the wrapper.

dominicm11:03:22

I might add support for nvim_buf_set_lines there :thinking_face: something about performance.

eraserhd17:03:40

@dominicm It's using Vim-specific terminal functions, I think. It would be cool to have tests running on Neovim, also.