Query code refactor

This commit is contained in:
Zef Hemel
2022-07-06 12:18:47 +02:00
parent 05edbfe305
commit fcf712ccc7
6 changed files with 107 additions and 118 deletions
+7
View File
@@ -114,6 +114,13 @@ export async function quickNoteCommand() {
await navigate(pageName);
}
export async function dailyNoteCommand() {
let isoDate = new Date().toISOString();
let date = isoDate.split("T")[0];
let pageName = `📅 ${date}`;
await navigate(pageName);
}
export async function insertTemplateText(cmdDef: any) {
let cursorPos = await getCursor();
let page = await getCurrentPage();