2022-04-25 16:33:38 +08:00
|
|
|
import {
|
|
|
|
getCursor,
|
|
|
|
insertAtCursor,
|
|
|
|
moveCursor,
|
|
|
|
} from "@plugos/plugos-silverbullet-syscall/editor";
|
2022-04-21 17:46:33 +08:00
|
|
|
|
|
|
|
export async function insertQuery() {
|
|
|
|
let cursorPos = await getCursor();
|
|
|
|
await insertAtCursor(`<!-- #query -->\n\n<!-- #end -->`);
|
|
|
|
await moveCursor(cursorPos + 12);
|
|
|
|
}
|