Replies: 3 comments 1 reply
-
To be precise, you're looking for a way to add custom pre/post-processing functionality to Dataview through JavaScript snippets which run along with dataview, right? This goes along with other requests by people to add custom functions / loaded functionality. I'm not opposed to doing this for what would effectively be "dataview plugins"; such plugins would likely have access to the Dataview Index (which you would listen to for relevant events), could modify parsed page and task metadata, and call into the Obsidian API. |
Beta Was this translation helpful? Give feedback.
-
Exactly. I really like the idea. That way, dataview isn’t forcing a
particular paradigm on users for custom fields (like using emojis to
indicate due dates on a task). Instead, with plugins like this, it would be
entirely opt in. If you want to use an emoji to indicate a task is
recurring or due or give it a high priority, you can do that by enabling a
particular add on.
Along these lines, I wish there was an option available so that the task
parser didn’t filter out non-real tasks (list items below tasks) as that
would be very handy for custom field storage or task comments for use by
such an add on.
…On Fri, Aug 13, 2021 at 12:34 PM blacksmithgu ***@***.***> wrote:
To be precise, you're looking for a way to add custom pre/post-processing
functionality to Dataview through JavaScript snippets which run along with
dataview, right? This goes along with other requests by people to add
custom functions / loaded functionality.
I'm not opposed to doing this for what would effectively be "dataview
plugins"; such plugins would likely have access to the Dataview Index
(which you would listen to for relevant events), could modify parsed page
and task metadata, and call into the Obsidian API.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#405 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEQWQRYPZ3E25WM3XTH5KVLT4VXWBANCNFSM5CABF4LQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
-
Sweet! Thank you so much!
…On Fri, Aug 13, 2021 at 1:06 PM blacksmithgu ***@***.***> wrote:
FWIW, the task parser skipping list items below tasks was actually a bug
in my task implementation, which should be fixed in 0.4.5 this weekend.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#405 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEQWQR5QBVVQNNZUCDUHLULT4V3NRANCNFSM5CABF4LQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email>
.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I like the idea of JavaScript snippets for dataview like obsidian has for css snippets. If the code had access to an observable, it could listen for objects being cached and modify them as they are.
So, instead of forcing dataview to have an opinionated way of handling metadata in a task, dataview would onetime load a script after initialization, and the script would listen for tasks being modified in the cached, parse metadata however it likes, and modify the task to associate the metadata with the task. For example, the script could listen for tasks being completed, and change its due date for recurring tasks. This would likely be more efficient than doing it all in a view, which is loaded each time the page it lives on is modified.
Beta Was this translation helpful? Give feedback.
All reactions