silverbulletmd / silverbullet

The knowledge tinkerer's notebook
https://silverbullet.md
MIT License
2.54k stars 185 forks source link

Enforce page naming rules #707

Open JosNun opened 9 months ago

JosNun commented 9 months ago

The page on page naming describes several rules, but when creating the page via the UI, those rules aren't enforced. It wouldn't be a bad idea to have checks in the UI that prevent creating pages with invalid names that could cause issues down the line.

Could also potentially leverage aliases or displayName frontmatter to let it look like what you named it, but still be named properly under the hood? I'm not familiar enough with those features to comment on whether this'd work or not (or if it's a good idea)

https://github.com/silverbulletmd/silverbullet/assets/7729878/a06d61ce-1942-40ec-bbaa-7b292a1616bb

Places that need to check:

zefhemel commented 9 months ago

Thank you.