seraphli_obsidian-aggregator/docs/Example3.md
SErAphLi 163b37b943 feat: support custom eval helper
now able to create md table with stats
2023-02-01 23:54:59 +08:00

646 B

Aggregator Stats Table

scope:
    - ReadingNotes/
matches:
    - regex: '[\S\s]+'
      template: >-
        {{eval "return data.result.content.contains('#summary')? '✓': 'x'"}}
order:
    fields: mtime
    orders: desc
fileIndecator: >-
    |{{result.index}}|[[{{result.basename}}]]|{{eval "return moment.unix(data.result.mtime/1000).format('YYYY-MM-DD')"}}|{{template}}|
joinString: "\n"
decorator: |-
    Notes: {{eval "return (data.templates.match(/✓/g)).length"}}/{{eval "return data.summaries.length"}}
    
    | ID  | Note | ModifyTime | Done        |
    | --- | ---- | ---------- | ----------- |
    {{templates}}