leaps icon indicating copy to clipboard operation
leaps copied to clipboard

Store comments against a file

Open amlwwalker opened this issue 9 years ago • 2 comments

I had a play with the commenting that is demonstrated in the leaps_share example. I wasn't sure but are these comments stored against a file permanently or is it just while a session exists? Its another thing I would be interested in working on if you had any ideas (and places within the code to look at) that you could share?

amlwwalker avatar Apr 18 '16 10:04 amlwwalker

Hey @amlwwalker, the messages sent while editing a document aren't stored. Leaps lets you broadcast text to all users on the same document, which are used for metadata such as cursor positions and these chat messages.

The logic for brokering document changes, messages etc is quite large now and needs breaking down, but it can be found at https://github.com/Jeffail/leaps/blob/master/lib/binder.go

Jeffail avatar Apr 19 '16 21:04 Jeffail

Hey @amlwwalker, just checking in since the refactor, the logic posted above is now at https://github.com/Jeffail/leaps/blob/master/lib/binder/binder.go

Jeffail avatar Apr 25 '16 20:04 Jeffail