reHackable / maxio

Companion daemon for the reMarkableā„¢ paper tablet
GNU Lesser General Public License v3.0
156 stars 52 forks source link

exportNotebook does not work with notebooks inside a folder #35

Open Draic opened 3 years ago

Draic commented 3 years ago

I have most of my notebooks inside folders on the remarkable. The tool does not find a notebook, if it is inside a folder. If not inside a folder the tools works fine. Still hope remarkable makes the built-in export work with custom layouts

kalinkochnev commented 3 years ago

I was running into the same problem since I was using a portion of exportNotebook for another script I'm making. If you want to disable checking for a folder, comment out the following code

# This checks if there is a parent to the document and skips over it if it does
if ! echo "$metadata" | grep -qF "\"parent\": \"$1\""; then
    continue
fi