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