Files
obsidian/.trash/2024-08-10(토).md

4.3 KiB
Raw Permalink Blame History

date_daily, achievement, reading_book, emotion, important_date, tags, daily_review, reading_page, exercise
date_daily achievement reading_book emotion important_date tags daily_review reading_page exercise
<% tp.file.title.slice(0,10) %> false
daily
false

*올해 남은 일: <% let edate = moment("12-31", "MM-DD"); let from = moment().startOf('day'); edate.diff(from, "days") >= 0 ? edate.diff(from, "days") == 0 ? tR += "오늘입니다!" : tR += edate.diff(from, "days") : tR += edate.add(1, "year").diff(from, "days") %>

*achievement:업적,성취(목표를 이루다), emotion:감정, exetcise:운동, review:(변화를 주기위해)검토, 비평, 논평, 평가, *

<%* const currentMoment = moment(tp.file.title, "YYYY-MM-DD"); tR += ' '; tR += '' + currentMoment.format('YYYY' + ' / '; tR += '' + currentMoment.format('YYYY-MM' + ' / '; tR += '' + currentMoment.format('gggg-[W]ww') + ''; tR += ' '; tR += '\n'; tR += ' '; currentMoment.add(-1,'days'); tR += '' + currentMoment.format('YYYY-MM-DD(ddd)') + '' + ' | '; currentMoment.add(1,'days'); tR += currentMoment.format('YYYY-MM-DD(ddd)') + ' | '; currentMoment.add(1,'days'); tR += '' + currentMoment.format('YYYY-MM-DD(ddd)') + ''; currentMoment.add(-1,'days'); tR += ' '; %>

<% tp.web.daily_quote() %>

일일업무(오전)

!211. 일일업무#오전

일일업무(오후)

!211. 일일업무#오후

주간업무(<% tp.file.title.slice(11,12) %>)

!212. 주간업무#<% tp.file.title.slice(11,12) %>

월간업무

![[213. 월간업무#<%* function getWeekOfMonth(date) { const year = date.getFullYear(); const month = date.getMonth(); const firstDayOfMonth = new Date(year, month, 1); const firstWeekdayOfMonth = firstDayOfMonth.getDay(); const dayOfMonth = date.getDate();

const offset = (firstWeekdayOfMonth === 0 ? 6 : firstWeekdayOfMonth - 1);
const weekNumber = Math.floor((dayOfMonth + offset - 1) / 7) + 1;

return weekNumber;

}

const dateStr = moment(tp.file.title, "YYYY-MM-DD"); const date = new Date(dateStr);

const weekOfMonth = getWeekOfMonth(date); tR += ${weekOfMonth}주차; %>]]

내일 기억할 일

오늘 기억할 일

<%* let yesterday = "10. Planner/11. Daily/" + tp.date.now("YYYY-MM-DD(ddd)", -1, tp.file.title, "YYYY-MM-DD(ddd)"); let section = "### 내일 기억할 일"; let should_include = false; let sectionContent = "";

let yfile = tp.file.find_tfile(yesterday); if(yfile) { const content = await app.vault.read(yfile); if(content.includes(section)) { let startIndex = content.indexOf(section) + section.length; let endIndex = content.indexOf('\n###', startIndex); endIndex = endIndex === -1 ? content.length : endIndex; sectionContent = content.substring(startIndex, endIndex).trim(); should_include = sectionContent.length > 0; } }

tR += should_include ? sectionContent : "없습니다😀"; %>

아침

오늘의 확언 ^[확실히 말하다.]

오늘의 목표

할 일 추가하기

오늘 끝내야 할 일

due on or before <% tp.file.title.slice(0,10) %>
filter by function task.file.folder.includes("10. Planner")
filter by function !task.file.folder.includes("templates")
not done
sort by priority

업무 할 일

tag include #업무 
not done

개인 할 일

tag include #개인 
not done

반복 할 일

is recurring
not done
has tags

언젠가 할 일

no due date
not done
description regex does not match /^$/

오늘 완료한 일

done <% tp.file.title.slice(0,10) %>

독서

  • 읽은 책
  • 읽은 페이지

운동

하루 마무리

오늘 배운 것들

오늘 감사한 일

Note

일기

Note

오늘요약

Note

^summary

오늘 작성한 노트

List FROM "" WHERE file.cday = date("<% tp.date.now('YYYY-MM-DD') %>") SORT file.ctime desc

오늘 수정한 노트

List FROM "" WHERE file.mday = date("<% tp.date.now('YYYY-MM-DD') %>") SORT file.mtime desc