named queries support
See original GitHub issueI find myself constantly having to update some queries all over the place.
for example, I have a query in my daily note template to show the tasks that were completed on that date
.
it took me a while to get a reasonable version of it (and I’m still not sure I’m done). by that time this query is in many daily notes, so I have to go and fix it everywhere.
or, another example, before the support for startswith
, all my index
and inbox
notes, tested for inclusion in the folder with split(file.folder, "/", length(split(this.file.folder, "/"))) = split(this.file.folder, "/")
. of course, when startswith
came out, I had to go over all of them and upgrade.
it would be nice, instead, to have a note with predefined queries, and then just reference those queries where needed.
embedding partials doesn’t work as partials do not have access to the embedding page.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (11 by maintainers)
Top GitHub Comments
Regarding the documentation vor views, the important missing piece for me was that arguments are available through
input
For an immediate solution if you use DataviewJS, you can use the customJS plugin OR use dataview views
dv.view(path-to-js-file, { args })
.