You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use dataview for managing projects by having a list of "issues" open with the following query:
list from #issue and -#issue/solved where contains(related-to, this.file.link)
I'm able to create new "issues" by making a new note and applying the "Issue" template to the note, then linking it to the appropriate project, but I would like to create a button that does this automatically.
I've been able to accomplish this using an inline dataview query and it does function, but it's not ideal:
There are a few papercuts, but the most significant is that the DSL lacks the encodeURIComponent JS function. This means that my URL needs to be percent-encoded out of the gate, making it a bit more annoying to write and edit, and it means that I need to manually do escaping of the / and characters in any file paths. If this function existed in the DSL, the "new note" URL could more straightforwardly be written. I'd hope to be able to write this
This makes it much easier to see what's going into the link, and ensures that no special characters in the file name will be mis-escaped.
Describe alternatives you've considered
I could write the query using JS instead of the DSL, but I'm not familiar with the JS syntax and the documentation does not make it clear how to add an external hyperlink.
The text was updated successfully, but these errors were encountered:
I use dataview for managing projects by having a list of "issues" open with the following query:
I'm able to create new "issues" by making a new note and applying the "Issue" template to the note, then linking it to the appropriate project, but I would like to create a button that does this automatically.
I've been able to accomplish this using an inline dataview query and it does function, but it's not ideal:
There are a few papercuts, but the most significant is that the DSL lacks the
characters in any file paths. If this function existed in the DSL, the "new note" URL could more straightforwardly be written. I'd hope to be able to write this
encodeURIComponent
JS function. This means that my URL needs to be percent-encoded out of the gate, making it a bit more annoying to write and edit, and it means that I need to manually do escaping of the/
andThis makes it much easier to see what's going into the link, and ensures that no special characters in the file name will be mis-escaped.
Describe alternatives you've considered
I could write the query using JS instead of the DSL, but I'm not familiar with the JS syntax and the documentation does not make it clear how to add an external hyperlink.
The text was updated successfully, but these errors were encountered: