From b2adb7cfcb1e0071a1ab9344ac8b80b651ad5929 Mon Sep 17 00:00:00 2001 From: Secret Specter Date: Thu, 3 Aug 2023 21:05:30 -0600 Subject: [PATCH] better diary open command --- fnl/personalize.fnl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fnl/personalize.fnl b/fnl/personalize.fnl index 133db5f..510b169 100644 --- a/fnl/personalize.fnl +++ b/fnl/personalize.fnl @@ -16,9 +16,10 @@ (nmap : ":Telescope find_files" "Telescope find_files") (nmap :x ":write|bdelete" "Save and delete buffer") (nmap :dt - #(vim.cmd (.. "edit ~/gemwiki/diary/" + #(vim.cmd (.. "split ~/gemwiki/diary/" (os.date "%Y%m%d") - ".gmi") + ".gmi" + "| resize 8 | $") "Open today's diary")) (let [duck (require :duck)] (nmap :dd #(duck.hatch) "hatch a duck")