ããä¸æ»ãã
ã©ã¤ããã°
Obsidianã®ç«ã¡ä¸ãã£ãç¶æ ã§å¤é¨ã®ã·ã§ã¼ãã«ãããå¼ã³åºãã®ãã¯ã¼ã«ãããªãã®ã§ãåèãã¾ããã LifeLogèªä½ããObsidianãèµ·åããã«ãã¤ãªã¼ãã¼ãã«æ¸ãè¾¼ãããªã®ã§ããã®å©ç¹ãæ´»ããã¦ããªãã
ããããã©ãããã°ãããã
LifeLog.md
Templaterã¹ã¯ãªããã§ç´æ¥æ¸ãè¾¼ã¿ã¾ãã
<%* DAILY = "journals/" DATE = "YYYY-MM-DD" s = tp.file.selection() if(s){ tp.file.cursor_append(s) }else{ e = app.workspace.activeLeaf.view.editor p = e.getCursor().line s = e.getLine(p) if(/^#+ /.test(s)){ s = `[[${tp.file.title}${s.replace(/^#+ /, "#")}]]` new Notice("Heading link.") } } f = `${DAILY}${tp.date.now(DATE)}.md` p = app.vault.getAbstractFileByPath(f) s = `\n- ${tp.date.now("HH:mm")} ${s}\n\n` if(p){ await app.vault.append(p, s) }else{ await app.vault.create(f, s) } new Notice("Log in the daily note.") %>
å¤æ°DAILYã«ã¯ãã¤ãªã¼ãã¼ãã®ãã©ã«ãããDATEã«ã¯æ¥ä»ãã©ã¼ããããè¨å®ãã¦ãã ããã
使ãæ¹
ã«ã¼ã½ã«è¡ãã¿ã¤ã ã¹ã¿ã³ãä»ãã§ãã¤ãªã¼ãã¼ãã«è¨é²ãã¾ãã æåããã°ãLog in the daily note.ãã¨ã¡ãã»ã¼ã¸ãåºã¾ãã
工夫ããã®ã¯ãã«ã¼ã½ã«è¡ãè¦åºãã®å ´åã§ãã è¦åºãããã°ã«ããçç±ãæãæµ®ãã°ãªãã ãªã®ã§ãè¦åºãã§å®è¡ããã¨ããã®è¦åºãã¸ã®å èµãªã³ã¯ããæ¸ãè¾¼ããã¨ã«ãã¾ããã
ããããã°ããªãã»ã©ããã®æéã«ã¯ãã®é¨åãæ¸ãã¦ãããã ãã¨ããè¦ãæ¸ãã«ãªãã¾ãã ã¿ããããã°ããã®å ´æããåéã§ãããã
ã¾ã¨ã
Thinoã§è¦ãã¨å èµãªã³ã¯ãæ ãããã«ä½¿ãã¾ãã