Skip to content

Instantly share code, notes, and snippets.

@amelandri
Created December 17, 2025 07:30
Show Gist options
  • Select an option

  • Save amelandri/fab52278deffc1fd48eb2162b3a05b7a to your computer and use it in GitHub Desktop.

Select an option

Save amelandri/fab52278deffc1fd48eb2162b3a05b7a to your computer and use it in GitHub Desktop.
Obsidian base file to manage attachments
filters:
  and:
    - and:
        - file.ext != "base"
        - file.ext != "canvas"
        - file.ext != "base"
        - file.ext != "md"
formulas:
  Backlink Tags: file.backlinks.map(value.asFile().tags)
views:
  - type: cards
    name: All
    order:
      - file.name
      - file.ext
      - file.backlinks
      - file.ctime
      - file.folder
      - file.fullname
      - file.mtime
      - file.size
    sort:
      - property: file.ext
        direction: ASC
    image: file.file
    imageFit: contain
    cardSize: 310
  - type: cards
    name: Orphans
    filters:
      and:
        - "!file.backlinks.length"
    order:
      - file.name
      - file.ext
      - file.backlinks
      - file.ctime
      - file.folder
      - file.fullname
      - file.mtime
      - file.path
      - file.size
    sort:
      - property: file.folder
        direction: ASC
      - property: file.ext
        direction: ASC
    image: file.file
    imageFit: contain
    cardSize: 310

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment