Collaborative editing
You can edit the same buffers with other people. There’s no server, editors connect to each other directly.
Usage
To start a session, you need to create a ticket: Space m n or :session-new
To join a session, copy the ticket to your clipboard, and then: Space m j
or :session-join.
There is no main peer in a session: everyone is equal. Local buffers are
unshared by default, but anyone can share a buffer with Space m s or
:session-share. It stays shared until the owner unshares it, closes it or leaves.
You can navigate shared buffers using the shared buffer picker: Space m f.
You can see connected peers using the peer picker: Space m p. Selecting a peer
jumps to it.
Remote buffers (not owned) are kept in memory, but you can save a local copy
with :write <path>.
Configuration
The feature can be configured in the [editor.p2p] section:
| Key | Description | Default |
|---|---|---|
enable | Enable collaborative editing. Needs a restart | true |
name | Name that peers see | Random ID |
Privacy
Anyone with the ticket can join and open every shared buffer, so only send it to people you trust. All connections go through iroh and are encrypted end-to-end.
Links
See issues for known bugs or planned features. Please report any bug you find.
The design is still bound to change, so discussions are welcome!