Fixes #408: adding about and getting started command
This commit is contained in:
parent
9a562dd0fb
commit
50651dc185
@ -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
12
plugs/core/help.ts
Normal 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");
|
||||
}
|
Loading…
Reference in New Issue
Block a user