2022-04-25 08:33:38 +00:00
|
|
|
import {
|
|
|
|
getCursor,
|
|
|
|
insertAtCursor,
|
|
|
|
moveCursor,
|
2022-04-25 09:24:13 +00:00
|
|
|
} 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);
|
|
|
|
}
|