olcli icon indicating copy to clipboard operation
olcli copied to clipboard

[Feature] Real-time collaboration

Open bicheTortue opened this issue 8 months ago • 2 comments

What would you like?

Real-time collaboration like on the web inteface.

Use case / why this matters:

Useful when modifying file at the same time as someone else. Avoiding overriding their change.

Requires a plugin with the desired editor. (i.g. vim, emacs, vcode, etc)

Any alternatives you've considered?

After looking at the code, it seems very complicated using the current implementation, a git integration for version management would probably solve this issue. With a pop-up for merging when conflicts pops up.

bicheTortue avatar Mar 24 '26 13:03 bicheTortue

I don't think real time sync with Overleaf where your local edits are live with the web interface are feasible in the short term.

If everyone is working locally, then you look into teamtype, which has plugins to integrate with various text editors such as VS Code and texstudio.

https://github.com/teamtype/teamtype

Meron35Z avatar Apr 15 '26 01:04 Meron35Z

Hi @bicheTortue, thanks for the thoughtful issue and to @Meron35Z for chiming in.

After looking into this carefully, I'm going to close this as not planned - but I want to be transparent about why and where olcli is actually heading.

What olcli will do - "Git-style" sync that's actually safe for concurrent work:

• Fix #7 (local deletions properly propagating to the remote) • Add a proper 3-way merge for sync so when both you and a collaborator edit the same file between pulls, the changes are merged automatically when possible, and surfaced as in-file conflict markers (the way git does) when they truly conflict • This won't be real-time, but it will mean two people can both work locally on overlapping files without silently overwriting each other.

For genuine live editing in your local editor: teamtype (https://github.com/teamtype/teamtype) (mentioned by @Meron35Z above) is a much better fit - it's purpose-built for that, with VS Code / TeXstudio plugins. Pairing olcli (offline + sync) with teamtype (live in-editor) covers the full collaboration spectrum without olcli having to become an OT engine.

Closing as not planned, but the related sync-correctness work in #7 + the upcoming merge support is where the practical improvement will land. Thanks again for raising this - it pushed me to make olcli's positioning much clearer.

aloth avatar Apr 27 '26 08:04 aloth