Clean up some debug commands
This commit is contained in:
parent
2a4ea9b3e1
commit
5f90d7244a
@ -41,6 +41,7 @@ functions:
|
|||||||
path: "./page.ts:deletePage"
|
path: "./page.ts:deletePage"
|
||||||
command:
|
command:
|
||||||
name: "Page: Delete"
|
name: "Page: Delete"
|
||||||
|
|
||||||
# Backlinks
|
# Backlinks
|
||||||
indexLinks:
|
indexLinks:
|
||||||
path: "./page.ts:indexLinks"
|
path: "./page.ts:indexLinks"
|
||||||
@ -138,7 +139,14 @@ functions:
|
|||||||
path: "./template.ts:insertTemplateText"
|
path: "./template.ts:insertTemplateText"
|
||||||
slashCommand:
|
slashCommand:
|
||||||
name: task
|
name: task
|
||||||
|
description: Insert a task
|
||||||
value: "* [ ] |^|"
|
value: "* [ ] |^|"
|
||||||
|
insertTaskToday:
|
||||||
|
path: "./template.ts:insertTemplateText"
|
||||||
|
slashCommand:
|
||||||
|
name: task-today
|
||||||
|
description: Insert a task with today as the deadline
|
||||||
|
value: "* [ ] |^| 📅 {{today}}"
|
||||||
insertQuery:
|
insertQuery:
|
||||||
path: "./template.ts:insertTemplateText"
|
path: "./template.ts:insertTemplateText"
|
||||||
slashCommand:
|
slashCommand:
|
||||||
@ -147,11 +155,6 @@ functions:
|
|||||||
<!-- #query |^| -->
|
<!-- #query |^| -->
|
||||||
|
|
||||||
<!-- /query -->
|
<!-- /query -->
|
||||||
insertTaskToday:
|
|
||||||
path: "./template.ts:insertTemplateText"
|
|
||||||
slashCommand:
|
|
||||||
name: task-today
|
|
||||||
value: "* [ ] |^| 📅 {{today}}"
|
|
||||||
quickNoteCommand:
|
quickNoteCommand:
|
||||||
path: ./template.ts:quickNoteCommand
|
path: ./template.ts:quickNoteCommand
|
||||||
command:
|
command:
|
||||||
@ -187,7 +190,7 @@ functions:
|
|||||||
path: ./text.ts:quoteSelection
|
path: ./text.ts:quoteSelection
|
||||||
command:
|
command:
|
||||||
name: "Text: Quote Selection"
|
name: "Text: Quote Selection"
|
||||||
key: "Ctrl->"
|
key: "Ctrl-Shift-."
|
||||||
mac: "Cmd-Shift-."
|
mac: "Cmd-Shift-."
|
||||||
listifySelection:
|
listifySelection:
|
||||||
path: ./text.ts:listifySelection
|
path: ./text.ts:listifySelection
|
||||||
@ -238,12 +241,6 @@ functions:
|
|||||||
- get-plug:github
|
- get-plug:github
|
||||||
|
|
||||||
# Debug commands
|
# Debug commands
|
||||||
parseServerCommand:
|
|
||||||
path: ./debug.ts:parseServerPageCommand
|
|
||||||
command:
|
|
||||||
name: "Debug: Parse Document on Server"
|
|
||||||
parsePage:
|
|
||||||
path: ./debug.ts:parsePage
|
|
||||||
parseCommand:
|
parseCommand:
|
||||||
path: ./debug.ts:parsePageCommand
|
path: ./debug.ts:parsePageCommand
|
||||||
command:
|
command:
|
||||||
|
@ -8,16 +8,11 @@ import { parseMarkdown } from "@silverbulletmd/plugos-silverbullet-syscall/markd
|
|||||||
import { getServerLogs } from "@silverbulletmd/plugos-silverbullet-syscall/sandbox";
|
import { getServerLogs } from "@silverbulletmd/plugos-silverbullet-syscall/sandbox";
|
||||||
import { invokeFunction } from "@silverbulletmd/plugos-silverbullet-syscall/system";
|
import { invokeFunction } from "@silverbulletmd/plugos-silverbullet-syscall/system";
|
||||||
|
|
||||||
export async function parseServerPageCommand() {
|
|
||||||
console.log(await invokeFunction("server", "parsePage", await getText()));
|
|
||||||
}
|
|
||||||
|
|
||||||
export async function parsePageCommand() {
|
export async function parsePageCommand() {
|
||||||
parsePage(await getText());
|
console.log(
|
||||||
}
|
"AST",
|
||||||
|
JSON.stringify(await parseMarkdown(await getText()), null, 2)
|
||||||
export async function parsePage(text: string) {
|
);
|
||||||
console.log("AST", JSON.stringify(await parseMarkdown(text), null, 2));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function showLogsCommand() {
|
export async function showLogsCommand() {
|
||||||
|
Loading…
Reference in New Issue
Block a user