1
0

Fixes #408: adding about and getting started command

This commit is contained in:
Zef Hemel 2023-05-26 16:37:32 +02:00
parent 9a562dd0fb
commit 50651dc185
2 changed files with 22 additions and 0 deletions

View File

@ -327,6 +327,16 @@ functions:
command:
name: "Debug: Parse Document"
versionCommand:
path: ./help.ts:versionCommand
command:
name: "Help: Version"
gettingStartedCommand:
path: ./help.ts:gettingStartedCommand
command:
name: "Help: Getting Started"
# Link unfurl infrastructure
unfurlLink:
path: ./link.ts:unfurlCommand

12
plugs/core/help.ts Normal file
View File

@ -0,0 +1,12 @@
import { editor } from "$sb/silverbullet-syscall/mod.ts";
import { version } from "../../version.ts";
export async function versionCommand() {
await editor.flashNotification(
`You are currently running SilverBullet ${version}`,
);
}
export async function gettingStartedCommand() {
await editor.openUrl("https://silverbullet.md/Getting%20Started");
}