reply2za / obsidian-query-control

An experimental Obsidian plugin that adds controls to embedded queries
MIT License
21 stars 1 forks source link

Keyword in Properties #2

Open zcysxy opened 6 days ago

zcysxy commented 6 days ago

Thank you so much for continuing the development of this fantastic plugin! I would like to bring up an issue from the original plugin: nothingislost/obsidian-query-control#49. Specifically, when a keyword is found in a note's properties, the entire note gets rendered. This can lead to significant performance issues and may even freeze Obsidian when the "render as Markdown" option is enabled, especially with large Markdown files.

A use case to consider is when, in note "B," I have a property that reads related: "[[A]]". Then, in the backlinks of note "A", the entire content of note "B" will be displayed. A straightforward fix would be to disable Markdown rendering when the keyword appears in properties.

reply2za commented 6 days ago

Maybe, I'm missing something but I am not able to replicate it. Can you provide a sample vault where this can be observed? Thanks for your help.

zcysxy commented 6 days ago

Sure! Here is a folder with two markdown files: test_vault.zip. Open the backlinks of note "B", and the entire note of "A" is rendered. Here is a screenshot of the test vault:

image

reply2za commented 5 days ago

It's weird how I'm still not seeing it. Can you find anything different with my setup?

image

-edit- Also what OS and version of Obsidian are you using?

zcysxy commented 5 days ago

Can you try toggling the "Render Markdown" button (the glasses button) off and on? I am on macOS Sequoia 15.0.1. My Obsidian is v1.7.5

reply2za commented 1 day ago

I tried this and sadly still cannot replicate it. I will continue to keep an eye out for such occurrences.