--- date_daily: <% tp.file.title.slice(0,10) %> achievement: reading_book: emotion: important_date: false tags: - daily daily_review: reading_page: exercise: 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|YYYY년') + ']]' + ' / '; tR += '[[' + currentMoment.format('YYYY-MM|MM월') + ']]' + ' / '; tR += '[[' + currentMoment.format('gggg-[W]ww') + '|' + currentMoment.format('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}주차`; %>]] ### 분기업무 ![[214. 분기업무#3분기]] ### 반기업무 ![[215. 반기업무#후반기]] ### 연간업무 ![[216. 연간업무]] ### 내일 기억할 일 ### 오늘 기억할 일 <%* 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 : "없습니다😀"; %> ### 아침 #### 오늘의 확언 ^[확실히 말하다.] - #### 오늘의 목표 - - - [ ] - [ ] #### 할 일 추가하기 - [ ] ### 오늘 끝내야 할 일 ```tasks 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 ``` #### 업무 할 일 ```tasks tag include #업무 not done ``` #### 개인 할 일 ```tasks tag include #개인 not done ``` #### 반복 할 일 ```tasks is recurring not done has tags ``` #### 언젠가 할 일 ```tasks no due date not done description regex does not match /^$/ ``` #### 오늘 완료한 일 ```tasks done <% tp.file.title.slice(0,10) %> ``` ### 독서 - 읽은 책 - 읽은 페이지 ### 운동 - ### 하루 마무리 #### 오늘 배운 것들 - - #### 오늘 감사한 일 >[!note] > #### 일기 >[!note] #### 오늘요약 >[!note] > >^summary ### 오늘 작성한 노트 ```dataview List FROM "" WHERE file.cday = date("<% tp.date.now('YYYY-MM-DD') %>") SORT file.ctime desc ``` ### 오늘 수정한 노트 ```dataview List FROM "" WHERE file.mday = date("<% tp.date.now('YYYY-MM-DD') %>") SORT file.mtime desc ```