1
0
silverbullet/website/SETTINGS.md

47 lines
1.5 KiB
Markdown
Raw Normal View History

2023-02-28 10:13:24 +00:00
This page contains settings for configuring SilverBullet and its Plugs. Changing any of these in most cases will go into effect immediately, except for `indexPage` which requires a reload.
2022-10-12 09:47:13 +00:00
```yaml
2023-02-28 10:13:24 +00:00
# Initial page to load when launching SB
indexPage: "[[SilverBullet]]"
2023-02-28 10:13:24 +00:00
2023-08-28 13:52:39 +00:00
# Load custom CSS styles from the following page, can also be an array
customStyles: "[[STYLES]]"
2023-07-02 12:48:27 +00:00
2023-02-28 10:13:24 +00:00
# Template related settings
pageTemplatePrefix: "template/page/"
snippetPrefix: "snippet/"
quickNotePrefix: "📥 "
dailyNotePrefix: "📅 "
dailyNoteTemplate: "[[template/page/Daily Note]]"
2023-02-28 10:13:24 +00:00
weeklyNotePrefix: "🗓️ "
weeklyNoteTemplate: "[[template/page/Weekly Note]]"
2023-02-28 10:13:24 +00:00
weeklyNoteMonday: false
# Markdown
previewOnRHS: true
2023-05-29 07:53:49 +00:00
# Defines files to ignore in a format compatible with .gitignore
spaceIgnore: |
dist
largefolder
*.mp4
2023-08-20 17:54:31 +00:00
# Plug overrides allow you to override any property in a plug manifest at runtime
# The primary use case of this is to override or define keyboard shortcuts. You can use the . notation, to quickly "dive deep" into the structure
plugOverrides:
core:
# Matching this YAML structure:
2023-08-28 15:12:15 +00:00
# https://github.com/silverbulletmd/silverbullet/blob/main/plugs/editor/editor.plug.yaml
2023-08-20 17:54:31 +00:00
# and overriding the "key" for centering the cursor
functions.centerCursor.command.key: Ctrl-Alt-p
# However, it's even possible to define custom slash commands this way without building a plug (/today-header in this case):
2023-08-20 17:54:31 +00:00
functions.todayHeader:
redirect: insertTemplateText
slashCommand:
name: today-header
value: |
## {{today}}
2022-10-12 09:47:13 +00:00
```