6.2 KiB
Created | Updated | tags | |
---|---|---|---|
2023-09-15 17:08 Fri | 2025-07-17 16:49 Thu |
|
<%*
let week = moment(tp.file.title);
// # 2023 Week 1
// tR += '# ' + week.format('gggg [Week] w') + '';
// 2023 / Q1 / January
tR += '' + week.format('[Haina/Yearly/]YYYY / ';
tR += '' + week.format('[Haina/Quarterly/]YYYY-[Q]Q / ';
tR += '' + week.format('[Haina/Monthly/]YYYY-MM';
// If the week crosses a month
// 2022 / Q4 / December - 2023 / Q1 / January
if (week.format('M') != week.endOf('week').format('M')) {
tR += ' - ';
tR += '' + week.format('[Haina/Yearly/]YYYY / ';
tR += '' + week.format('[Haina/Quarterly/]YYYY-[Q]Q / ';
tR += '' + week.format('[Haina/Monthly/]YYYY-MM';
}
tR += ' / ';
// ❮ Week 52 | Week 1 | Week 2 ❯
tR += '❮ ' + week.subtract(1, 'weeks').format('[Haina/Weekly/]gggg/gggg-[W]ww';
tR += ' | ' + week.add(1, 'weeks').format('[Week] w') + ' | ';
tR += '' + week.add(1, 'weeks').format('[Haina/Weekly/]gggg/gggg-[W]ww ❯';
week.subtract(1, 'weeks');
tR += ' / ';
week.subtract(1, 'weeks'); // 上周
// Monday - Tuesday - Wednesday - Thursday - Friday - Saturday - Sunday
for (let day = 0; day < 7; day++) {
tR += '' + week.weekday(day).format('[Haina/Daily/]YYYY-MM-DD';
if (day < 6) {
tR += ' - ';
}
}
week.add(1, 'weeks');
tR += ' ❯ ';
for (let day = 0; day < 2; day++) {
tR += '' + week.weekday(day).format('[Haina/Daily/]YYYY-MM-DD';
tR += ' - ';
}
%>
<% tR += moment(tp.file.title).weekday(1).format('YYYY-MM-DD ddd') %>*
上周工作
项目工作
- <% tp.file.cursor(1) %>
维护工作
本周计划
[!info]- 最近
(not done) OR (done after <% moment(tp.file.title).weekday(1).subtract(14, "days").format('YYYY-MM-DD') %>) path includes Haina filter by function task.file.path.includes('项目') filter by function task.file.property('Created') > '<% moment(tp.file.title).startOf('month').subtract(1, "month").format('YYYY-MM-DD') %>' sort by function reverse task.urgency group by filename group by heading
Priority
[!danger] 🔴重要且紧急⏫🔺
(not done) OR (done after <% moment(tp.file.title).weekday(1).subtract(7, "days").format('YYYY-MM-DD') %>) path includes Haina path includes Weekly/2025 filter by function (task.priorityName === 'High' || task.priorityName === 'Highest') sort by path reverse sort by done sort by heading group by heading
[!warning] 🟠不重要紧急🔼
(not done) OR (done after <% moment(tp.file.title).weekday(1).subtract(7, "days").format('YYYY-MM-DD') %>) path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> (filter by function task.priorityName === 'Medium') sort by path reverse sort by done sort by heading group by heading
[!important] 🟡重要不紧急🔽
(not done) OR (done after <% moment(tp.file.title).weekday(1).subtract(7, "days").format('YYYY-MM-DD') %>) path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> (filter by function task.priorityName === 'Normal') sort by path reverse sort by done sort by heading group by heading
[!info] 🟢不重要不紧急🔽⏬
(not done) OR (done after <% moment(tp.file.title).weekday(1).subtract(7, "days").format('YYYY-MM-DD') %>) path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> filter by function (task.priorityName === 'Lowest' || task.priorityName === 'Low' || task.priorityName === 'None') sort by path reverse sort by done sort by heading
[!info]- 转移
(not done) OR (done after <% moment(tp.file.title).weekday(1).subtract(7, "days").format('YYYY-MM-DD') %>) path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> filter by function (task.status.name === 'quote') group by heading
[!check] Latest 2 weeks
done after <% moment(tp.file.title).weekday(1).subtract(14, "days").format('YYYY-MM-DD') %> path includes Haina sort by path reverse sort by heading group by heading
[!todo] Not done
not done path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> (path includes W<% moment(tp.file.title).subtract(2, 'weeks').format('ww') %>) OR (path includes W<% moment(tp.file.title).subtract(1, 'weeks').format('ww') %> ) (filter by function task.status.name === 'Todo') sort by path reverse sort by heading
[!todo] In Progress
not done path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> (filter by function task.status.name === 'incomplete') sort by path reverse sort by heading
[!note] Deferred
not done path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> filter by function task.status.name === 'forwarded' sort by path reverse sort by heading
[!tip] Idea, Important
not done path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> filter by function (task.status.name === 'idea' || task.status.name === 'important'|| task.status.name === 'fire') sort by path reverse sort by heading
[!faq] Question
not done path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> filter by function task.status.name === 'question' sort by path reverse sort by heading
[!fail] Cancelled
path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> filter by function task.status.name === 'canceled' sort by path reverse sort by heading
[!todo] Todo
暂时不用not done path includes Haina path includes Weekly/<% moment(tp.file.title).format('YYYY') %> (filter by function task.status.type === 'TODO') sort by path reverse sort by heading