sabidib / remarking

Remarking is an unofficial command line tool for extracting highlights from documents on your reMarkable tablet.
GNU General Public License v3.0
53 stars 2 forks source link

feat: work without the cloud #6

Open sr1920 opened 3 years ago

sr1920 commented 3 years ago

This requires you to connect to the cloud, which is a problem if you don't synchronize the device with the cloud. It would be nice to be able to also access directly the device through the USB port; it seems a minor modification, but really very useful!

sabidib commented 3 years ago

You're right @sr1920, this is pretty minor modification.

The downloaded files from the cloud are laid out in the same format as the device files.

I see adding USB device support as follows:

Add support for running without the cloud by just looking at a directory of documents. This is pretty trivial to do. We just need to add an option like --re-use-working-dir and set --working-dir to a folder full of downloaded documents. Remarking can then use the documents that exist in the working dir instead of downloading from the cloud.

To read from USB you only need the path to the xochitl folder on the mounted remarkable device. That path can be passed to the remarking's --working-dir together with --re-use-working-dir to look at all documents on the device.