omnivore-app / obsidian-omnivore

Obsidian plugin to fetch articles and highlights from Omnivore
MIT License
720 stars 39 forks source link

Single file mode formatting issues #205

Open samanthavbarron opened 3 months ago

samanthavbarron commented 3 months ago

It seems like wrapping the entries when in "Single File" mode, as defined here

https://github.com/omnivore-app/obsidian-omnivore/blob/288003f293a5201b7d2397967ad078ee99fca9ef/src/settings/template.ts#L334-L336

limits the ways that the file can be formatted. For example, I was trying to use the Article Template:

- [{{{title}}}]({{{originalUrl}}})

But this produces the following output for me

---
- id: 0af147cf-8a48-4fc5-8a7f-f874bf4e1b6e
- id: 68a3f1ed-d84d-4985-9544-716dc7321f49
- id: 79b26e2b-1cbe-46a2-a393-2b6bf15058c4
---

%%0af147cf-8a48-4fc5-8a7f-f874bf4e1b6e_start%%
- [digitalblossom/alternative-frontends: 🔐🌐 Privacy-respecting web frontends for popular services](https://github.com/digitalblossom/alternative-frontends)
%%0af147cf-8a48-4fc5-8a7f-f874bf4e1b6e_end%%

%%68a3f1ed-d84d-4985-9544-716dc7321f49_start%%
- [ThePenguinDev/Proxigram: A privacy focused and open source front-end for Instagram - Codeberg.org](https://codeberg.org/ThePenguinDev/Proxigram)
%%68a3f1ed-d84d-4985-9544-716dc7321f49_end%%

%%79b26e2b-1cbe-46a2-a393-2b6bf15058c4_start%%
- [Scheduled Archiving — ArchiveBox 0.7.3 documentation](https://docs.archivebox.io/en/latest/Scheduled-Archiving.html)
%%79b26e2b-1cbe-46a2-a393-2b6bf15058c4_end%%

I'm not sure why the %% wrapping is there, but it would be great to be able to disable the newlines/IDs.

samanthavbarron commented 3 months ago

Similarly, I can't seem to figure out how to disable the IDs from being reported in the frontmatter.