[feature request] toggle using full paths in the database
It would be great if there was an option to use just the filename and not the whole paths in the database. I sync my database across multiple machines (using syncthing) but my main directories containing my PDF papers have different paths on each machine. As a result my highlights on one machine doesn't show up on another machine even though they do exist in the database.
(Kind of related to #1393)
Update: I had only looked at the schema of the tables but looking a bit deeper in the code it seems that you're writing a hash of the file content for document_path, which is confusing but great. Now I need to figure out why my highlights don't work across machines 🤔
Kind of unrelated but I noticed that there's a write_annotations_file command that generates a .sioyek.annotations along the pdf. It'd be great if there was an option to make sioyek use these text-based files instead of a database entirely.
As you said, the highlights are associated with the hash of files exactly because we want them to work across machine. It is weird that it is not working for you. Have you modified the PDFs in any way (e.g. adding an embedded highlight, etc.)?