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

.cook files not appearing in dataview results #7

Open
RichSteele opened this issue Nov 15, 2021 · 2 comments
Open

.cook files not appearing in dataview results #7

RichSteele opened this issue Nov 15, 2021 · 2 comments

Comments

@RichSteele
Copy link

I have a simple query to return all recent changes in my vault:

LIST FROM #source-notes AND "notes"
WHERE status = "in-progress"
SORT file.name

However, .cook files are not returned from it. Guessing that dataview works from the cache and so the cooklang plugin needs to somehow inform either dataview or the cache of its files.

@deathau
Copy link
Collaborator

deathau commented Nov 17, 2021

There isn't any official API to add files into the cache, and from my digging there doesn't seem to be an unexposed one, either. It seems like there's a hard-coded list of extensions that Obsidian allows into the cache and that's it.

Options:

  1. Introduce support for .cook.md files (with appropriate conversion utilities) in order to allow them into the cache as .md files (which breaks compatibility with anything else using CookLang). Discussion here: Should we copy the excalidraw plugin and have CookLang Markdown (`.cook.md`) files? #10
  2. Petition @lishid to create some third-party way of plugins adding custom file extensions into the cache.

@lishid
Copy link

lishid commented Nov 17, 2021

Hmm I can try adding extensions for hooked plugin types into the cache extension list.

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

No branches or pull requests

3 participants