selimrbd / py-obsidianmd

Python interface to your Obsidian notes
BSD 3-Clause "New" or "Revised" License
273 stars 22 forks source link

`ALL` → `INLINE` works, `ALL` → `FRONTMATTER` doesn't. `INLINE`→`FRONTMATTER` still works. #24

Open ooker777 opened 1 year ago

ooker777 commented 1 year ago

I successfully convert frontmatter metadata to inline :

notes.metadata.move(fr=MetadataType.FRONTMATTER, to=MetadataType.INLINE)
notes.update_content(inline_inplace=False, inline_position="top", inline_tml="standard") #type: ignore
notes.write()

And revert that likewise. However, while I can do the ALLINLINE, I can't do the ALLFRONTMATTER. INLINEFRONTMATTER still works.

notes.metadata.move(fr=MetadataType.ALL, to=MetadataType.FRONTMATTER)
notes.update_content(inline_inplace=False, inline_position="top", inline_tml="standard") #type: ignore
notes.write()

https://selimrbd.github.io/py-obsidianmd/examples/