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

Support for Dataview JS Snippets #102

Open
therealfakemoot opened this issue Apr 7, 2022 · 13 comments
Open

Support for Dataview JS Snippets #102

therealfakemoot opened this issue Apr 7, 2022 · 13 comments
Labels
enhancement New feature or request

Comments

@therealfakemoot
Copy link

Is your feature request related to a problem? Please describe.
Currently, Quartz cannot render Dataview query or javascript blocks.

Describe the solution you'd like
If it's possible, it'd be pretty nice for dataview query blocks to get rendered out into the page.

Describe alternatives you've considered
Unfortunately, alternatives are slim. Dataview is a plugin, and even worse, it works at runtime.

The "alternative" to dataview is building tables/lists by hand with hard links, and choosing not to use them for my cases which was a deliberate design decision.

Additional context

Here is an issue on the dataview tracker talking about how to bake this into dataview directly, might be relevant?

@therealfakemoot therealfakemoot added the enhancement New feature or request label Apr 7, 2022
@geoffreygarrett
Copy link
Contributor

Has anyone investigated this further? I would love this feature.

@pranavm7
Copy link
Contributor

Hey! I just read up on dataview from the links in the post. It seems like a very powerful feature. Although implementing that within Quartz may be a little complicated, I was wondering if a feature to add regex search would be the quickest way to help?
Please let me know if it would be an adequate solution for the short-term. Thanks!

@pablillocea
Copy link

Are there any news on this issue? I think it would be very useful to implement this feature.

@jackyzha0
Copy link
Owner

note for future: https://www.npmjs.com/package/obsidian-dataview seems to provide a nice API surface for doing dataview things

@deeplook
Copy link

I've just stumbled over this excellent project (big thanks!), published my vault and immediately noticed the lack of support for dataviews which are so essential in many vaults. Is this anywhere on the roadmap? Else I'm not sure how to work around this.

@aarnphm
Copy link
Collaborator

aarnphm commented Feb 13, 2024

I've just stumbled over this excellent project (big thanks!), published my vault and immediately noticed the lack of support for dataviews which are so essential in many vaults. Is this anywhere on the roadmap? Else I'm not sure how to work around this.

Feel free to check out the discord. iirc some people in the community figure out how to render the dataview into svg and publish it with quartz and GitHub Publisher.

@saberzero1
Copy link
Collaborator

I've just stumbled over this excellent project (big thanks!), published my vault and immediately noticed the lack of support for dataviews which are so essential in many vaults. Is this anywhere on the roadmap? Else I'm not sure how to work around this.

I personally worked around this by using a plugin to parse the Dataview queries before uploading to my Quartz repository. You can check it out here.

@HyperEpsilon
Copy link
Contributor

I personally worked around this by using a plugin to parse the Dataview queries before uploading to my Quartz repository. You can check it out here.

This may be a foolish question, but I don't see anything on that plugin about being able to parse Dataview queries. Is that just a feature that is built into the plugin, but not mentioned anywhere?

@aarnphm
Copy link
Collaborator

aarnphm commented Feb 28, 2024

I think we have this discussion on Discord, but we will probably not support this, atm, since Dataview is not an official Obsidian plugin.

But feel free to write a plugin for quartz if you want this.

@saberzero1
Copy link
Collaborator

I personally worked around this by using a plugin to parse the Dataview queries before uploading to my Quartz repository. You can check it out here.

This may be a foolish question, but I don't see anything on that plugin about being able to parse Dataview queries. Is that just a feature that is built into the plugin, but not mentioned anywhere?

https://github.com/saberzero1/quartz-syncer/blob/main/src/compiler/DataviewCompiler.ts

I'll update the documentation.

I think we have this discussion on Discord, but we will probably not support this, atm, since Dataview is not an official Obsidian plugin.

But feel free to write a plugin for quartz if you want this.

Dataview is currently very tightly coupled with Obsidian. Parsing Dataview queries outside of Obsidian is nearly impossible without reimplementing the entire parser, as Dataview uses a lot of build-in Obsidian functionality, which in turn is closed-source.

The easiest way to circumvent this is by parsing the queries in Obsidian through a plugin, before passing it to Quartz as markdown.

@azurast
Copy link

azurast commented Mar 23, 2024

I personally worked around this by using a plugin to parse the Dataview queries before uploading to my Quartz repository. You can check it out here.

This may be a foolish question, but I don't see anything on that plugin about being able to parse Dataview queries. Is that just a feature that is built into the plugin, but not mentioned anywhere?

https://github.com/saberzero1/quartz-syncer/blob/main/src/compiler/DataviewCompiler.ts

I'll update the documentation.

I think we have this discussion on Discord, but we will probably not support this, atm, since Dataview is not an official Obsidian plugin.
But feel free to write a plugin for quartz if you want this.

Dataview is currently very tightly coupled with Obsidian. Parsing Dataview queries outside of Obsidian is nearly impossible without reimplementing the entire parser, as Dataview uses a lot of build-in Obsidian functionality, which in turn is closed-source.

The easiest way to circumvent this is by parsing the queries in Obsidian through a plugin, before passing it to Quartz as markdown.

hi, just wondering how do i make the dataview compiler work? thanks in advance!

@Quasaur
Copy link

Quasaur commented Jun 2, 2024

I've just stumbled over this excellent project (big thanks!), published my vault and immediately noticed the lack of support for dataviews which are so essential in many vaults. Is this anywhere on the roadmap? Else I'm not sure how to work around this.

Feel free to check out the discord. iirc some people in the community figure out how to render the dataview into svg and publish it with quartz and GitHub Publisher.

It looks like GitHub Publisher, referred to in this YouTube Short (https://www.youtube.com/shorts/gXgW0EL1ko0) has VANISHED...!?!?!?!?

@saberzero1
Copy link
Collaborator

I've just stumbled over this excellent project (big thanks!), published my vault and immediately noticed the lack of support for dataviews which are so essential in many vaults. Is this anywhere on the roadmap? Else I'm not sure how to work around this.

Feel free to check out the discord. iirc some people in the community figure out how to render the dataview into svg and publish it with quartz and GitHub Publisher.

It looks like GitHub Publisher, referred to in this YouTube Short (https://www.youtube.com/shorts/gXgW0EL1ko0) has VANISHED...!?!?!?!?

It appears the GitHub Publisher for Obsidian has been renamed to Enveloppe, see below for details.

https://github.com/orgs/Enveloppe/discussions/349

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

No branches or pull requests