2022-03-25 19:03:06 +08:00
|
|
|
import { syscall } from "../lib/syscall";
|
2022-02-25 00:24:49 +08:00
|
|
|
|
|
|
|
export async function insertToday() {
|
2022-03-04 19:09:25 +08:00
|
|
|
console.log("Inserting date");
|
2022-02-25 00:24:49 +08:00
|
|
|
let niceDate = new Date().toISOString().split("T")[0];
|
|
|
|
await syscall("editor.insertAtCursor", niceDate);
|
|
|
|
}
|