jya-dev / supernote-tool

Unofficial python tool for Supernote
Apache License 2.0
224 stars 25 forks source link

Headers, keywords, and stars support #37

Open dsummersl opened 2 months ago

dsummersl commented 2 months ago

Would love to have these features of notes exposed in some way, if possible (happy to put together a PR if you have any pointers to starting!).

jya-dev commented 3 weeks ago

Hi,

You can get some hints from the output of supernote-tool analyze your.note command. Keyword is easy. You can find __keywords__ section from the output.

Headers, that is called 'Title' in source code, and keywords are parsed by my tool. Notebook object have the result of parsing. This code should be helpful to you. https://github.com/jya-dev/supernote-tool/blob/master/supernotelib/fileformat.py#L214 https://github.com/jya-dev/supernote-tool/blob/master/supernotelib/fileformat.py#L195