Ticket #417 (closed enhancement: fixed)
User's contribution should be saved in document file(s)
|Reported by:||Improfane||Owned by:||armin|
Gobby is great, I especially like the colour coding for each user. What would be even better for me is if this was preserved between saves.
While I've not contributed or seen the code, I can think of a few (probably messy) ways to implement this:
(a) store user input as a continuous stream, each character, minus deletions, store context/user switches in a separate file, referring to cursor (or delta) and user
(b) The current copy is stored as it is currently. Assuming most contributions are contiguous text and often has new lines. The attribution could be stored like so:
- Each user has an 'attribution' file.
- Each line in the attrition file refers to a line in the full file.
- The text ranges (substring beginning and end) or simply the start position is stored. Another user will 'end' the previous user's input and begin their own.
(c) Store it in yucky XML or something, with elements for users.
I do understand that these features are unlikely to make it into Gobby because it is not the applications' purpose to record user interaction, its focus is on the current revision rather than attribution to each revision.
Thanks for reading.