shit_admin: 2026-08-13 12:41:21
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
# Bases examples
|
||||
|
||||
## Task tracker
|
||||
|
||||
~~~yaml
|
||||
filters:
|
||||
and:
|
||||
- file.hasTag("task")
|
||||
- 'file.ext == "md"'
|
||||
|
||||
formulas:
|
||||
days_until_due: 'if(due, (date(due) - today()).days, "")'
|
||||
is_overdue: 'if(due, date(due) < today() && status != "done", false)'
|
||||
|
||||
properties:
|
||||
formula.days_until_due:
|
||||
displayName: "Days Until Due"
|
||||
|
||||
views:
|
||||
- type: table
|
||||
name: Active
|
||||
filters:
|
||||
and:
|
||||
- 'status != "done"'
|
||||
order:
|
||||
- file.name
|
||||
- status
|
||||
- due
|
||||
- formula.days_until_due
|
||||
groupBy:
|
||||
property: status
|
||||
direction: ASC
|
||||
~~~
|
||||
|
||||
## Daily notes index
|
||||
|
||||
~~~yaml
|
||||
filters:
|
||||
and:
|
||||
- file.inFolder("Daily Notes")
|
||||
- '/^\d{4}-\d{2}-\d{2}$/.matches(file.basename)'
|
||||
|
||||
formulas:
|
||||
day_of_week: 'date(file.basename).format("dddd")'
|
||||
word_estimate: '(file.size / 5).round(0)'
|
||||
|
||||
views:
|
||||
- type: table
|
||||
name: Recent notes
|
||||
limit: 30
|
||||
order:
|
||||
- file.name
|
||||
- formula.day_of_week
|
||||
- formula.word_estimate
|
||||
- file.mtime
|
||||
~~~
|
||||
Reference in New Issue
Block a user