Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API to add custom emoji-based metadata #2391

Open
aigoncharov opened this issue Jul 18, 2024 · 0 comments · May be fixed by #2393
Open

API to add custom emoji-based metadata #2391

aigoncharov opened this issue Jul 18, 2024 · 0 comments · May be fixed by #2393
Labels
feature-request New feature or request.

Comments

@aigoncharov
Copy link

aigoncharov commented Jul 18, 2024

Is your feature request related to a problem? Please describe.

obsidian-tasks has additional emoji-based metadata compared to what dataview currently has. I would like to be able to access more emoji-based metadata.

Describe the solution you'd like
Expose API in plugin-api to customize how dataview handles emoji-based metadata.
I would propose to allow for adding custom extractors to extractSpecialTaskFields.

Describe alternatives you've considered

  • Potentially, we could allow for overriding just the list of EMOJI_REGEXES, but I think it would be less flexible.
  • Monkeypatching dataview?

Additional context
I am looking for a way to stop using query API provided by obsidian-tasks and switch completely to dataview. The custom emoji-metadata would allow me to, for example, query based on the cancellation date:

TASK
WHERE  completion = date("today") OR cancellation = date("today")

Linked a draft of what it might look like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request New feature or request.
Projects
None yet
1 participant