Remove some page templates, remove template picker button, update changelog

pull/648/head
Zef Hemel 2024-01-22 09:53:39 +01:00
parent 07cec72257
commit ddd730d9b3
9 changed files with 17 additions and 51 deletions

View File

@ -25,14 +25,14 @@ functions:
openPageNavigator:
path: editor.ts:openPageNavigator
command:
name: "Open Page Navigator"
name: "Page Navigator"
key: "Ctrl-k"
mac: "Cmd-k"
openTemplateNavigator:
path: editor.ts:openTemplateNavigator
command:
name: "Open Template Navigator"
name: "Template Picker"
key: "Ctrl-Shift-t"
mac: "Cmd-Shift-t"

View File

@ -66,7 +66,7 @@ export function TopBar({
// Then calculate a new width
currentPageElement.style.width = `${
Math.min(editorWidth - 200, innerDiv.clientWidth - 200)
Math.min(editorWidth - 170, innerDiv.clientWidth - 170)
}px`;
}
}

View File

@ -259,15 +259,6 @@ export class MainUI {
client.startPageNavigate("page");
},
},
{
icon: TemplateIcon,
description: `Open template (${
isMacLike() ? "Cmd-Shift-t" : "Ctrl-Shift-t"
})`,
callback: () => {
client.startPageNavigate("template");
},
},
{
icon: TerminalIcon,
description: `Run command (${isMacLike() ? "Cmd-/" : "Ctrl-/"})`,

View File

@ -2,12 +2,23 @@ An attempt at documenting the changes/new features introduced in each
release.
---
## Edge
_Not yet released, this will likely become 0.6.0. To try this out now, check out [the docs on edge](https://community.silverbullet.md/t/living-on-the-edge-builds/27)._
* Nothing new yet, be patient but check out 0.6.0 below.
---
## 0.6.0
* **Templates 2.0**: templates are now turbo charged (thats a technical term) and have replaced a lot of previously built in (slash) commands. Theres more to this than will fit this CHANGELOG, have a look at [[Templates]]: and more specifically [[Page Templates]], [[Snippets]], [[Live Template Widgets]] and [[Libraries]].
A quick FAQ:
* **Where did my templates go!?** They have now moved to the [[Template Picker]], see that “T” button up there? Yeah, thats new.
* **Upgrade instructions**: to get the best experience after upgrading to 0.6.0 do the following:
* Upgrade your docker image/deno version to 0.6.0
* Reload your page 2-3x to be sure you have the latest front-end code running
* Run the {[Library: Import]} command in your space, and enter the following federation URL: `!silverbullet.md/Library/` This will import both the [[Library/Core]] and [[Library/Journal]] libraries into your space, which will bring you roughly on par with 0.5.x versions in terms of functionality (this will include the daily note, weekly note, various slash commands etc.)
* A **quick FAQ** on the template system
* **Where did my templates go!?** They have now moved to the [[Template Picker]], run {[Template Picker]} (or press `Cmd-Shift-t` on Mac or `Ctrl-Shift-t` on Windows/Linux). Yeah, thats new!
* **Where did all my slash commands go?!** They are now distributed via [[Libraries]]. Yep, Libraries are here, enabling an easier way to distribute templates and pages. Read [[Libraries]] for more info.
* **But, what about slash templates etc.?!** Yeah, we did some rebranding and changed how these are defined. Slash templates are now [[Snippets]] and cannot _just_ be instantiated via [[Slash Commands]], but through [[Commands]] and custom keybindings as well. Awesomeness.
* **And my page templates broke!?** Yeah, same story as with [[Snippets]]: the format for defining these changed a bit, but should be easy to update to the new format: check [[Page Templates]].

View File

@ -1,6 +1,6 @@
This library is highly recommended for everybody to import immediately. It provides a lot of functionality youll likely appreciate (and may be used to having out of the box, if youre longer-term SilverBullet user).
Some random examples:
Some examples:
* [[Table of Contents]] and [[Linked Mentions]]
* All the slash commands you know and love, ranging from `/h1` to `/task` to `/table` to `/code` to `/query` to `/template` to `/today` to...
* Some useful general purpose pages such as [[Library/Core/Page/Maintenance]], [[Library/Core/Quick Notes]] and [[Library/Core/Page/Template Index]].

View File

@ -1,13 +0,0 @@
---
description: Define a new Page Template
tags: template
hooks.newPage:
suggestedName: Library/Personal/Page/
forPrefix: Library/Personal/Page/
confirmName: true
frontmatter: |
tags: template
displayName: "|^|"
hooks.newPage:
suggestedName: Library/Personal/Page/
---

View File

@ -1,12 +0,0 @@
---
tags: template
hooks.newPage:
suggestedName: "template/snippet/"
confirmName: true
forPrefix: template/snippet/
description: Define a new Snippet Template
frontmatter: |
tags: template
hooks.snippet:
name: "|^|"
---

View File

@ -1,10 +0,0 @@
---
tags: template
description: Define a new template
hooks.newPage:
suggestedName: template/
forPrefix: template/
frontmatter:
tags: template
---
|^|

View File

@ -22,7 +22,6 @@ SilverBullets UI is minimalist by design. Lets look at the few UI elements
* [[Client Modes]] (the 🔄 button)
* [[Index Page]] (the 🏠 button)
* [[Page Picker]]
* [[Template Picker]]
* [[Command Palette]]
* The main [[Editor]] component contains your pages text