diff --git a/Library/Core/New Page/Page Template.md b/Library/Core/New Page/Page Template.md deleted file mode 100644 index 6e19acd..0000000 --- a/Library/Core/New Page/Page Template.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -description: Create a New Page template -tags: template -hooks.newPage: - suggestedName: "Library/Personal/New Page/" - confirmName: true -frontmatter: | - tags: template - displayName: "|^|" - hooks.newPage: - suggestedName: "" ---- diff --git a/Library/Core/New Page/Quick Note.md b/Library/Core/New Page/Quick Note.md deleted file mode 100644 index 16a85d6..0000000 --- a/Library/Core/New Page/Quick Note.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -description: "Create a quick note" -tags: template -hooks.newPage: - suggestedName: "Inbox/{{today}}/{{safeTime}}" - confirmName: false - command: "Quick Note" - key: "Alt-Shift-n" ---- diff --git a/Library/Core/New Page/Snippet Template.md b/Library/Core/New Page/Snippet Template.md deleted file mode 100644 index e3899b4..0000000 --- a/Library/Core/New Page/Snippet Template.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -tags: template -description: Create a new Snippet template -hooks.newPage: - suggestedName: Library/Personal/Snippet/ - confirmName: true -frontmatter: | - tags: template - hooks.snippet: - slashCommand: "|^|" ---- diff --git a/Library/Core/Page/Maintenance.md b/Library/Core/Page/Maintenance.md deleted file mode 100644 index 0e4f5b4..0000000 --- a/Library/Core/Page/Maintenance.md +++ /dev/null @@ -1,37 +0,0 @@ -#meta - -We would like to keep our space clean, these are some tools that help you do that. - -# Aspiring pages -This shows all page links that link to a page that does not (yet) exist. These could be broken links or just pages _aspiring_ to be created. - -```template -{{#let @brokenLinks = {aspiring-page}}} -{{#if @brokenLinks}} -{{#each @brokenLinks}} -* [[{{ref}}]]: broken link to [[{{name}}]] -{{/each}} -{{else}} -No aspiring pages, all good! -{{/if}} -{{/let}} -``` - -# Conflict copies -These are pages that have conflicted copies (as a result of sync), have a look at them as well as their original (non-conflicted versions) and decide which one to keep. - -```template -{{#let @conflictPages = { - page where name =~ /\.conflicted\.\d+$/ - select name as conflictedName, - replace(name, /\.conflicted\.\d+$/, "") as cleanName -}}} -{{#if @conflictPages}} -{{#each @conflictPages}} -* [[{{cleanName}}]]: confict copy [[{{conflictedName}}]] -{{/each}} -{{else}} -No conflicting pages! -{{/if}} -{{/let}} -``` diff --git a/Library/Core/Page/Meta Index.md b/Library/Core/Page/Meta Index.md deleted file mode 100644 index d9264dc..0000000 --- a/Library/Core/Page/Meta Index.md +++ /dev/null @@ -1,7 +0,0 @@ -#meta - -This page lists all `#meta` tagged pages currently available in your space. You can also navigate to them via the {[Navigate: Meta Picker]}. - -```query -page where tags = "meta" render [[Library/Core/Query/Page]] -``` \ No newline at end of file diff --git a/Library/Core/Page/Space Overview.md b/Library/Core/Page/Space Overview.md deleted file mode 100644 index f250881..0000000 --- a/Library/Core/Page/Space Overview.md +++ /dev/null @@ -1,39 +0,0 @@ -#meta - -This page compiles some useful things about your space and may also be useful for debugging things. - -# Stats -```template -**Total pages:** {{count({page select name})}} -**Total attachments:** {{count({attachment select name})}} -**Total tags:** {{count({tag select name})}} -``` - -# Active [[!silverbullet.md/Space Script]] -```template -{{#each {space-script}}} -* [[{{ref}}]] -{{/each}} -``` - -# Active [[!silverbullet.md/Space Style]] -```template -{{#each {space-style}}} -* [[{{ref}}]] -{{/each}} -``` - -# Active [[!silverbullet.md/Space Config]] -You have space config defined on the following pages: -```template -{{#each {space-config select replace(ref, /@.+/, "") as page}}} -* [[{{page}}]] -{{/each}} -``` - -Composed, this leads to the following active configuration: -```template -~~~yaml -{{yaml(@config)}} -~~~ -``` diff --git a/Library/Core/Page/Template Index.md b/Library/Core/Page/Template Index.md deleted file mode 100644 index d269fa2..0000000 --- a/Library/Core/Page/Template Index.md +++ /dev/null @@ -1,52 +0,0 @@ -#meta - -This page lists all templates currently available in your space. You can also navigate to them via the {[Navigate: Meta Picker]}. More information on templates can be found [[!silverbullet.md/Templates]] - -# New Page -These [[!silverbullet.md/Page Templates]] are available through the {[Page: From Template]} command: - -```query -template where hooks.newPage render [[Library/Core/Query/Template]] -``` - -# Snippets -These can be used as [[!silverbullet.md/Snippets]] via [[!silverbullet.md/Slash Commands]]: - -```template -{{#each { - template - where hooks.snippet - order by hooks.snippet.slashCommand -}}} -* [[{{ref}}|/{{hooks.snippet.slashCommand}}]] {{description}} -{{/each}} -``` - -# Widgets -Widgets can either be automatically attached to the top or bottom of pages (matching certain criteria) or used inline via [[!silverbullet.md/Live Templates]]. - -## Top -```query -template -where hooks.top -order by order -render [[Library/Core/Query/Template]] -``` - -## Bottom -```query -template -where hooks.bottom -order by order -render [[Library/Core/Query/Template]] -``` - -## Inline -Use with [[!silverbullet.md/Live Templates#Include]] to render useful things in your pages: - -```query -template -where name =~ /\/Widget\// and not hooks.top and not hooks.bottom -order by order -render [[Library/Core/Query/Template]] -``` diff --git a/Library/Core/Query/Full Page.md b/Library/Core/Query/Full Page.md deleted file mode 100644 index 0357f1c..0000000 --- a/Library/Core/Query/Full Page.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -tags: template -description: A page reference link as a list item showing the full page path ---- -* [[{{name}}|{{name}}]] \ No newline at end of file diff --git a/Library/Core/Query/Page.md b/Library/Core/Query/Page.md deleted file mode 100644 index ee67153..0000000 --- a/Library/Core/Query/Page.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -tags: template -description: A page reference link as a list item ---- -* [[{{name}}]] \ No newline at end of file diff --git a/Library/Core/Query/Task.md b/Library/Core/Query/Task.md deleted file mode 100644 index 4c80103..0000000 --- a/Library/Core/Query/Task.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -tags: template -description: Generic task template that supports updating the status back in the origin page ---- -* [{{state}}] [[{{ref}}]] {{name}} \ No newline at end of file diff --git a/Library/Core/Query/Template.md b/Library/Core/Query/Template.md deleted file mode 100644 index 51dee54..0000000 --- a/Library/Core/Query/Template.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -tags: template ---- - -* [[{{ref}}]] {{description}} -{{#if usage}} - * **Usage:** {{usage}} -{{/if}} \ No newline at end of file diff --git a/Library/Core/Quick Notes.md b/Library/Core/Quick Notes.md deleted file mode 100644 index 55bb148..0000000 --- a/Library/Core/Quick Notes.md +++ /dev/null @@ -1,8 +0,0 @@ -This is your {[Quick Note]} inbox. - -```query -page - where name =~ /^Inbox\// - render [[Library/Core/Query/Full Page]] - order by lastModified desc -``` diff --git a/Library/Core/Snippet/code.md b/Library/Core/Snippet/code.md deleted file mode 100644 index 4c75c52..0000000 --- a/Library/Core/Snippet/code.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -description: Insert a fenced code block -tags: template -hooks.snippet.slashCommand: code ---- -```|^| - -``` diff --git a/Library/Core/Snippet/each-directive.md b/Library/Core/Snippet/each-directive.md deleted file mode 100644 index a10fb5e..0000000 --- a/Library/Core/Snippet/each-directive.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -description: (Template) Insert an `#each` directive -tags: template -hooks.snippet: - slashCommand: "#each" - order: 10 ---- -{{escapeDirective("#each |^|")}} - -{{escapeDirective("/each")}} \ No newline at end of file diff --git a/Library/Core/Snippet/frontmatter.md b/Library/Core/Snippet/frontmatter.md deleted file mode 100644 index 4e7d87b..0000000 --- a/Library/Core/Snippet/frontmatter.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -tags: template -description: Insert Frontmatter -hooks.snippet: - slashCommand: frontmatter - insertAt: page-start - command: "Insert Frontmatter" ---- ---- -|^| ---- diff --git a/Library/Core/Snippet/h1.md b/Library/Core/Snippet/h1.md deleted file mode 100644 index 55fc849..0000000 --- a/Library/Core/Snippet/h1.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -tags: template -description: Make this a level 1 heading -hooks.snippet: - slashCommand: h1 - matchRegex: "^#*\\s*" ---- -# \ No newline at end of file diff --git a/Library/Core/Snippet/h2.md b/Library/Core/Snippet/h2.md deleted file mode 100644 index e2b5a4e..0000000 --- a/Library/Core/Snippet/h2.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -tags: template -description: Make this a level 2 heading -hooks.snippet: - slashCommand: h2 - matchRegex: "^#*\\s*" ---- -## \ No newline at end of file diff --git a/Library/Core/Snippet/h3.md b/Library/Core/Snippet/h3.md deleted file mode 100644 index 5c23af5..0000000 --- a/Library/Core/Snippet/h3.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -tags: template -description: Make this a level 3 heading -hooks.snippet: - slashCommand: h3 - matchRegex: "^#*\\s*" ---- -### \ No newline at end of file diff --git a/Library/Core/Snippet/h4.md b/Library/Core/Snippet/h4.md deleted file mode 100644 index f9a47fc..0000000 --- a/Library/Core/Snippet/h4.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -tags: template -description: Make this a level 4 heading -hooks.snippet: - slashCommand: h4 - matchRegex: "^#*\\s*" ---- -#### \ No newline at end of file diff --git a/Library/Core/Snippet/hr.md b/Library/Core/Snippet/hr.md deleted file mode 100644 index b2ce4af..0000000 --- a/Library/Core/Snippet/hr.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -tags: template -description: Insert a horizontal rule -hooks.snippet.slashCommand: hr ---- ---- diff --git a/Library/Core/Snippet/if-directive.md b/Library/Core/Snippet/if-directive.md deleted file mode 100644 index 003990a..0000000 --- a/Library/Core/Snippet/if-directive.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -description: (Template) Insert an `#if` directive -tags: template -hooks.snippet: - slashCommand: "#if" - order: 10 ---- -{{escapeDirective("#if |^|")}} - -{{escapeDirective("/if")}} \ No newline at end of file diff --git a/Library/Core/Snippet/if-else-directive.md b/Library/Core/Snippet/if-else-directive.md deleted file mode 100644 index 638a231..0000000 --- a/Library/Core/Snippet/if-else-directive.md +++ /dev/null @@ -1,12 +0,0 @@ ---- -description: (Template) Insert `#if` directive with 'else' -tags: template -hooks.snippet: - slashCommand: "#if-else" - order: 10 ---- -{{escapeDirective("#if |^|")}} - -{{escapeDirective("else")}} - -{{escapeDirective("/if")}} \ No newline at end of file diff --git a/Library/Core/Snippet/include-page.md b/Library/Core/Snippet/include-page.md deleted file mode 100644 index 1d6d259..0000000 --- a/Library/Core/Snippet/include-page.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -tags: template -description: Add a live preview of a page -hooks.snippet.slashCommand: include-page ---- -```include -raw: "[[|^|]]" -``` diff --git a/Library/Core/Snippet/item.md b/Library/Core/Snippet/item.md deleted file mode 100644 index 553b042..0000000 --- a/Library/Core/Snippet/item.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -tags: template -description: Make this a bullet item -hooks.snippet: - slashCommand: item - matchRegex: "^(\\s*)[\\-\\*]?\\s*" - command: "Text: Turn into a bullet item" - key: "Ctrl-q i" ---- -$1* \ No newline at end of file diff --git a/Library/Core/Snippet/let-directive.md b/Library/Core/Snippet/let-directive.md deleted file mode 100644 index d0c0d80..0000000 --- a/Library/Core/Snippet/let-directive.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -description: (Template) Insert a `#let` directive -tags: template -hooks.snippet: - slashCommand: "#let" - order: 10 ---- -{{escapeDirective("#let @|^| = ")}} - -{{escapeDirective("/let")}} \ No newline at end of file diff --git a/Library/Core/Snippet/note-admonition.md b/Library/Core/Snippet/note-admonition.md deleted file mode 100644 index f02355c..0000000 --- a/Library/Core/Snippet/note-admonition.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -tags: template -description: Insert a "note" admonition -hooks.snippet.slashCommand: note-admonition ---- -> **note** Note -> |^| diff --git a/Library/Core/Snippet/query.md b/Library/Core/Snippet/query.md deleted file mode 100644 index 0648b34..0000000 --- a/Library/Core/Snippet/query.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -description: Insert a live query -tags: template -hooks.snippet.slashCommand: query ---- -```query -|^| -``` diff --git a/Library/Core/Snippet/table.md b/Library/Core/Snippet/table.md deleted file mode 100644 index 0761950..0000000 --- a/Library/Core/Snippet/table.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -tags: template -description: Insert a table -hooks.snippet.slashCommand: table ---- -| Header A | Header B | -|----------|----------| -| Cell A|^| | Cell B | \ No newline at end of file diff --git a/Library/Core/Snippet/task.md b/Library/Core/Snippet/task.md deleted file mode 100644 index 108e4b4..0000000 --- a/Library/Core/Snippet/task.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -tags: template -description: Make this a task -hooks.snippet: - slashCommand: task - matchRegex: "^(\\s*)[\\-\\*]?\\s*(\\[[ xX]\\])?\\s*" - command: "Text: Turn into task" - key: "Ctrl-q t" ---- -$1* [ ] \ No newline at end of file diff --git a/Library/Core/Snippet/template.md b/Library/Core/Snippet/template.md deleted file mode 100644 index 90ba62b..0000000 --- a/Library/Core/Snippet/template.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -description: Insert a template -tags: template -hooks.snippet.slashCommand: "template" ---- -```template -|^| -``` diff --git a/Library/Core/Snippet/today.md b/Library/Core/Snippet/today.md deleted file mode 100644 index a8f31e7..0000000 --- a/Library/Core/Snippet/today.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -tags: template -description: "Today's date" -hooks.snippet.slashCommand: today ---- -{{today}} \ No newline at end of file diff --git a/Library/Core/Snippet/tomorrow.md b/Library/Core/Snippet/tomorrow.md deleted file mode 100644 index 82fb4c6..0000000 --- a/Library/Core/Snippet/tomorrow.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -tags: template -description: "Tomorrow's date" -hooks.snippet.slashCommand: tomorrow ---- -{{tomorrow}} \ No newline at end of file diff --git a/Library/Core/Snippet/warning-admonition.md b/Library/Core/Snippet/warning-admonition.md deleted file mode 100644 index b1ddfc1..0000000 --- a/Library/Core/Snippet/warning-admonition.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -description: Insert a "warning" admonition -tags: template -hooks.snippet.slashCommand: warning-admonition ---- -> **warning** Warning -> |^| diff --git a/Library/Core/Widget/Federated Template Copy.md b/Library/Core/Widget/Federated Template Copy.md deleted file mode 100644 index 5bb011c..0000000 --- a/Library/Core/Widget/Federated Template Copy.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -description: > - Adds a convenient "Copy to my space" button to any - template found via federation -tags: template -hooks.bottom.where: 'name =~ /^!/ and tags="template"' ---- -# Template actions -* {[Page: Copy|Copy to my space]}: use this template in your space by making a local copy of it (and tweaking it as you like) \ No newline at end of file diff --git a/Library/Core/Widget/Linked Mentions.md b/Library/Core/Widget/Linked Mentions.md deleted file mode 100644 index 8bb4e84..0000000 --- a/Library/Core/Widget/Linked Mentions.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -description: Adds Linked Mentions to pages -tags: template -hooks.bottom.where: 'true' ---- -{{#let @linkedMentions = {link where toPage = @page.name and page != @page.name order by page}}} -{{#if @linkedMentions}} -# Linked Mentions -{{#each @linkedMentions}} -* [[{{ref}}]]: “{{snippet}}” -{{/each}} -{{/if}} -{{/let}} diff --git a/Library/Core/Widget/Linked Tasks.md b/Library/Core/Widget/Linked Tasks.md deleted file mode 100644 index ac4af38..0000000 --- a/Library/Core/Widget/Linked Tasks.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -tags: template -description: | - Shows all tasks that contain a link the current page. For instance a task that references `[[John]]` in its name, would appear on the `John` page. -hooks.top: - where: 'true' - order: 1 ---- -{{#let @linkedTasks = {task where not done and contains(name, "[[" + @page.name + "]]")}}} -{{#if @linkedTasks}} -# Linked Tasks -{{#each @linkedTasks}} -{{template([[Library/Core/Query/Task]], .)}} -{{/each}} -{{/if}} -{{/let}} diff --git a/Library/Core/Widget/Table of Contents.md b/Library/Core/Widget/Table of Contents.md deleted file mode 100644 index 22ff719..0000000 --- a/Library/Core/Widget/Table of Contents.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -description: Adds a Table of Contents to pages -tags: template -hooks.top: - where: 'not pageDecoration.disableTOC' - # Show all the way at the top - order: 0 ---- -```toc -minHeaders: 3 -``` diff --git a/Library/Core/Widget/Tagged Tasks.md b/Library/Core/Widget/Tagged Tasks.md deleted file mode 100644 index f696607..0000000 --- a/Library/Core/Widget/Tagged Tasks.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -tags: template -description: Queries all tasks tagged with a specific tag. -usage: Pass in the tag to filter on as the `value` of this template ---- - -```query -task where tags = "{{.}}" and not done render [[Library/Core/Query/Task]] -``` \ No newline at end of file diff --git a/SETTINGS.md b/SETTINGS.md index 50d51a3..a0d72ab 100644 --- a/SETTINGS.md +++ b/SETTINGS.md @@ -2,8 +2,11 @@ indexPage: index hideSyncButton: true libraries: -# The "Core" library is recommended for all users + # The "Core" library is recommended for all users - import: "[[!silverbullet.md/Library/Core/*]]" + exclude: + - "[[!silverbullet.md/Library/Core/Widget/Table of Contents]]" + - "[[!silverbullet.md/Library/Journal]]" git: autoCommitMinutes: 5 autoSync: true # or false