johnfactotum / foliate

Read e-books in style
https://johnfactotum.github.io/foliate/
GNU General Public License v3.0
6.37k stars 292 forks source link

Timestamp in annotation #1048

Closed azzamsa closed 1 year ago

azzamsa commented 1 year ago

Is your feature request related to a problem? Please describe. Yes. I always wanted to know my reading progress. How my thought developed over the years. One of them is to see the timestamp in highlighted text or a note in the pdf/epub files.

Describe the solution you'd like The annotations should contain a timestamp. Either right-click on the annotation list on the sidebar or hover over the mouse.

Describe alternatives you've considered

Additional context Okular was able to show the timestamp in PDF annotation. But the ebook has to be saved in .okular archive format, which can't be managed via a book manager such as Calibre. Because it is unlikely for them to support the .zip format. .okular is just a .zip.

image

I have checked the .json file of Foliate, and currently, it doesn't save any information about the date and time.

image

  "lastLocation": "epubcfi(/6/8!/4/2[sbo-rt-content]/2/18/1:0)",
  "progress": [
    14,
    657
  ],
  "annotations": [
    {
      "value": "epubcfi(/6/10!/4/2[sbo-rt-content]/2/4,/5:2,/5:39)",
      "color": "lime",
      "text": "Jon has been teaching Rust since 2018",
      "note": ""
     "timestamp": // ⚠️ <-- please support timestamp
    }