turulix / obsidian-folder-index

GNU General Public License v3.0
116 stars 9 forks source link

Default initial content suggestion #16

Closed redactedscribe closed 2 years ago

redactedscribe commented 2 years ago

It might be a good idea to change the Initial Content feature into a togglable one. This way you could provide a suggested initial content for users to enable, such as:

---
tags: MOCs
---

# MOC: {{folder}}

---

```folder-index-content


I don't know whether it should be enabled by default but I can see some people wanting these index files tagged as a MOCs so that they can explore them all (or negate them with `-tag:#MOCs`) in the graph for example.

`{{folder}}` would be a special keyword that you handle which displays the folder's name and keeps it up-to-date on folder name changes. Perhaps the keyword needs a prefix to give it a namespace of sorts to avoid potential conflicts with other plugins? Not really necessary, but it could be nice that the page specifically says MOC at the top so that you immediately know what you're looking at.

1.0.6
turulix commented 2 years ago

Keeping the folder name uptodate is a little more complicated as I can't ensure that someone changes the title themselfs or something like that. But yes the current initial content needs improving. I can definitly change the default initial content and add support for {{folder}}

redactedscribe commented 2 years ago

Thanks!