1
0
silverbullet/plugs/core/dates.ts

8 lines
225 B
TypeScript
Raw Normal View History

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