Annotations: sync between devices#13372
Merged
Merged
Conversation
|
@hius07 Hi there, noob question: how is this different from the |
|
I think this feature is for separating configurations (which might be device specifics like font size) with annotations (which is synced to all devices). Personally I uses syncthing across my phone and PC so this is very handy. I do have 2 questions though:
|
Member
Author
|
0xstillb
pushed a commit
to 0xstillb/koreader-thai
that referenced
this pull request
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exports annotations to a lua file in the assigned folder (default - book metadata folder):
-automatically on book closing, or
-manually from the Bookmark list, or with a gesture/profile.
Imports annotations on book opening.
Export filename is
<book-filename>.annotations.lua.The file should be moved to other device manually or by a syncing program.
Syncing logic:
Checks for correspondence between old and new annotations (by highlight start and end positions).
-if there is no old annotation, the new one is added;
-if new annotation is newer than the old one, the old one is replaced;
-if there is no new annotation corresponding to the old one, and the export datetime is newer than the old annotation datetime, the old one is removed.
This change is