tokenshift / obsidian-page-gallery

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

Use full dataview query & expression language via `DataviewApi.query` #1

Closed tokenshift closed 2 years ago

tokenshift commented 2 years ago

Instead of using a custom TOML/YAML/etc-based config language, use DataviewApi.query to parse a dataview-format query, then build the gallery from the resulting data. This way users have access to the full dataview query & expression language--including sorting, grouping, etc.

Downside: Can't easily add my own gallery type, so I'll probably have to use the built-in table, list, and task types, and figure out how to translate each of them into a useful gallery.

Will still need a way to specify block-specific style options, though, without having to add custom CSS snippets.