silverbullet icon indicating copy to clipboard operation
silverbullet copied to clipboard

Enforce page naming rules

Open JosNun opened this issue 1 year ago • 1 comments

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:

  • Page Picker
  • [[wikilinks]]
  • ...elsewhere?

JosNun avatar Feb 14 '24 16:02 JosNun

Thank you.

zefhemel avatar Feb 14 '24 16:02 zefhemel