parinfer

shaunlebron 2018-11-06T16:46:08.004Z

https://www.patreon.com/posts/smart-mode-vs-22541795

snoe 2018-11-06T20:02:22.010100Z

Looks promising, is there an enumeration of the editor capabilities required for Smart Mode or elastic tab stops? I suspect "nature of changes" goes beyond a stream of diff patches. It seems that having a solid use-case in parinfer, could spur implementation of those capabilities in the big 4 or 5 editors. It would also be nice to know where or how any editor falls short.

shaunlebron 2018-11-06T20:08:02.011900Z

1. synchronous notification of a change 2. a change structure describing what has been replaced in the file 3. ability to modify the file immediately after the change has occurred

shaunlebron 2018-11-06T20:11:13.013900Z

diffing the before and after text can produce an accurate change structure sometimes (maybe most of the time)

shaunlebron 2018-11-06T20:15:10.016800Z

thanks for that feedback, the vscode team has apparently been receptive to requests for API improvements—specifically chris told me that interceptions of key events was requested for the vim plugin (and that they’re the only ones allowed to use it!)

shaunlebron 2018-11-06T20:15:52.017300Z

the limitation is enforced by only allowing one plugin at a time to use it

shaunlebron 2018-11-06T20:17:32.018500Z

anyway, I think the problem with vscode was that the change events are asynchronous, and that the pending PR is having to use diffs to account for the shortcoming, which I’m not comfortable using

shaunlebron 2018-11-06T20:17:43.018700Z

@chrisoakman has more context

chrisoakman 2018-11-06T20:29:42.019200Z

Shaun accurately summarized the current state of VS Code Parinfer

chrisoakman 2018-11-06T20:30:07.019800Z

I have been meaning to reach out to the VS Code team and ask if they can make a change for the Parinfer extension similar to what they did for the Vim one.

mattly 2018-11-06T22:18:08.020300Z

would that mean that you couldn't use the vim and parinfer extensions in vscode simultaneously?

mattly 2018-11-06T22:18:17.020600Z

they already seem to have some issues, but

chrisoakman 2018-11-06T22:26:26.021900Z

We would definitely want to support using both extensions at the same time. They would need to play nice with each other in terms of "who gets the update first?". This is exactly the issue that the VSCode team might need to give us some input on. Last I looked at this I think I was referencing this comment: https://github.com/Microsoft/vscode/issues/5280#issuecomment-246629457

👍 1