typeintandem / tandem

Typing in Tandem. Decentralized, cross-editor, collaborative text-editing!
Apache License 2.0
698 stars 20 forks source link

Update vim/neovim plugins for hole punching (4/5) #97

Closed geoffxy closed 6 years ago

geoffxy commented 6 years ago

These are changes for vim and neovim to support hole punching. I only made changes to these editors since it was to test end-to-end locally.

:Tandem now sends the HostSession message to the agent. The plugin will then print the session ID when it receives it from the agent.

:Tandem <session-id> now sends the JoinSession message to the agent.

We can potentially also explore a way to add bindings for the plugin to send the ConnectTo message as well if we want (since the agent still has the ability to "connect" directly to another agent).