filters:
  or:
    - file.name.contains(this.file.name)
    - file.links.contains(this.file)
properties:
  file.name:
    displayName: Note
  client:
    displayName: Client
  status:
    displayName: Status
  file.mtime:
    displayName: Modified
views:
  - type: table
    name: Daily notes
    filters:
      and:
        - '!file.hasTag("daily")'
        - '!file.hasTag("monthly")'
        - '!file.hasTag("weekly")'
        - file.name != this.file.name
    order:
      - file.name
      - client
      - status
      - file.mtime
    sort:
      - property: file.mtime
        direction: DESC
  - type: table
    name: Monthly
    filters:
      and:
        - '!file.hasTag("daily")'
        - '!file.hasTag("monthly")'
        - '!file.hasTag("weekly")'
        - file.name != this.file.name
    order:
      - file.name
      - client
      - status
    sort:
      - property: file.name
        direction: ASC
  - type: table
    name: Yearly
    filters:
      and:
        - '!file.hasTag("daily")'
        - '!file.hasTag("monthly")'
        - '!file.hasTag("weekly")'
        - file.name != this.file.name
    order:
      - file.name
      - client
      - status
    sort:
      - property: file.name
        direction: ASC
