tokenshift / obsidian-page-gallery

Generates a gallery based on selected page contents.
MIT License
68 stars 2 forks source link

Allow from to use variables #75

Open 3esmit opened 4 weeks ago

3esmit commented 4 weeks ago

I am trying to filter just files from within the note itself folder.

from: 'this.file.folder'

And it doesn't works...

The workaround I found was to use where: contains(file.path, this.file.folder)

fields: [file.name]
columns: 2
filter: false
orientation: landscape
views:
  - name: Projects
    from: '"/"'
    where: contains(file.path, this.file.folder + "/") and file.path = this.file.folder  + "/" + file.name + "/" + file.name + ".md"

While this works, its slow because my vault have over 2000 files and it needs to scan all