-
求助集市分组以及隐藏引述块的角标
2025-05-22 10:04大佬,代码有两个问题。
① 开关按钮偏上了。
② 右上的数量统计有。全部为 22(正确),关闭为 16(实际关闭为 6),开启为 6(实际开启为 16)。
-
新建 Daily note 文件按周分类
2025-04-03 23:45.action{ $yearStartDate := now.Year | printf "%d-01-01" | toDate "2006-01-02" } .action{ $ysDateDuration := div ($yearStartDate.Sub (toDate "2006-01-02" $anchorSunday)).Hours 24 } .action{ $ysWeekDay := mod $ysDateDuration 7 } .action{ $yearStartWeek := add (div (sub $ysDateDuration 1) 7) 1 } .action{ if or (eq $ysWeekDay 0) (gt $ysWeekDay 4) } .action{ $yearStartWeek := add $yearStartWeek 1 } .action{ end } .action{ $nowWeek := add (div (div (now.Sub (toDate "2006-01-02" $anchorSunday)).Hours 24) 7) 1 } .action{ $week := add (sub $nowWeek $yearStartWeek) 1 } .action{$today:= (now | date "2006-01")} .action{$weekResult:= (list $today "Week" $week| join " ")} .action{$this_year :=now | date "2006"} .action{$this_year_first :=toDate "2006-01-02" ( nospace (cat $this_year "-01-01"))} .action{$this_year_last :=toDate "2006-01-02" ( nospace (cat $this_year "-12-31"))} .action{$dayDict := dict "Mon" 1 "Tue" 2 "Wed" 3 "Thu" 4 "Fri" 5 "Sat" 6 "Sun" 7} .action{$firstDay := get $dayDict ($this_year_first | date "Mon")} .action{$pass_days := div (now.Sub $this_year_first ).Hours 24} .action{$week := div (add $pass_days $firstDay) 7} .action{$remain :=mod (add $pass_days $firstDay) 7} .action{if not (eq $remain 0)} .action{$week = add $week 1} .action{end} .action{$all_days := div ($this_year_last.Sub $this_year_first ).Hours 24} .action{$all_week := div (add $all_days $firstDay) 7} .action{$remain :=mod (add $all_days $firstDay) 7} .action{if not (eq $remain 0)} .action{$all_week = add $all_week 1} .action{end} .action{$ini_date := toDate "2006-01-02" "2021-05-02"} .action{$now_date := now} .action{$day := mod (div ($now_date.Sub $ini_date).Hours 24) 7} .action{if eq $day 0} .action{$day = 7} .action{end} .action{$leftday :=mul (sub $day 1) 24} .action{$rightday :=mul (sub 7 $day) 24} .action{$leftHour :=nospace (cat "-" $leftday "h") } .action{$rightHour :=nospace (cat "+" $rightday "h")} {{{col {{{row 📌 日期:`.action{(now | date_modify $leftHour) | date "2006.01.02"}`~`.action {(now | date_modify $rightHour) | date "2006.01.02"}`}}} {{{row 🚴 第`.action {$week}`周/共`.action {$all_week}` 周 }}} }}} --- ## ✍ 本周总结 {{{col {{{row ###### 👩💻 工作总结 1. }}} {{{row ###### 🧠 学习总结 1. }}} }}} --- .action{/*今天距离周一有几天*/} .action{$ng_week := (mod (div ((toDate "2006-01-02" "2021-06-28").Sub now).Hours 24) 7) } .action{/*用于range循环,表示循环7次, 没什么实际意义*/} .action{$days := list "星期六" "星期五" "星期四" "星期三" "星期二" "星期一" "星期天"} .action{/*循环生成星期列表*/} .action{/*生成周一日期所需要修正的时长*/} .action{$monday:= mul 24 $ng_week} {{{col .action{range $index,$day:=$days} .action{/*布局*/} .action{$setColum:= mod (add $index 1) 3 } .action{if eq $setColum 1} {{{ .action{end} .action{/*迭代 每次增加24*/} .action{$after := mul 24 $index} .action{/*在周一的基础上,附加的时间*/} .action{$realdate:= add $monday $after} .action{/*生成以 h 为单位的 字符串*/} .action{$result:=(list $realdate "h" | join "")} .action{/*获取列表项*/} .action{$days_list := now | date_modify $result | date "2006-01-02"} ### .action {$days_list} .action {last (slice (list "星期一" "星期二" "星期三" "星期四" "星期五" "星期六" "星期日") 0 (add 1 $index ) )} {{select * from blocks where name=".action{$days_list}" and content="💻 工作安排" }} .action{/*布局*/} .action{$setColum:= mod (add $index 1) 1 } .action{if eq $setColum 2} }}} .action{else if eq $index 3} }}} .action{end} .action{$index := add $index 2} .action{end} }}} ### 日总结汇总 {{SELECT * from blocks where type='h' and content = '✍ 今日总结' and alias='.action{$weekResult}' }}
-
任务管理数据库模版分享
2025-03-28 12:17大大,模板有个问题。把待办清单添加进数据库后,再修改文档的数据,数据库内的 TODO 列不会更新;
或者在数据库 TODO 列修改,文档也不会随之更新
-
标题图标大小
2025-03-26 14:41大佬,顺便反馈给 QYL 主题的问题。标题折叠后鼠标不移开(图一),此时的展开三角形会偏上并且点击不能展开(图二);当鼠标移开后重新点击展开三角形时,三角形会居中并且可以展开(图三)。