obsidian-map-view icon indicating copy to clipboard operation
obsidian-map-view copied to clipboard

Note preview rendering issues

Open Nitero opened this issue 9 months ago • 1 comments

I have 2 issues with the note previews when hovering over a marker:

  1. When you have too many properties they are not ommited from the preview as usual
  2. Inline dataview queries don't seem to render, even though normal dataview queries do

I hade a look at the code and I think the fix for 1. is just to increase the snippetLines in MarkerPopup.extractSnippet or expose it as a setting

I'm not sure about the second issue though as it seems this is handled by the Obsidian function MarkdownRenderer.render which just does not process inline queries? or maybe the issue is on dataviews side? I tried to manually replace any inline query via a regex with a normal query but the syntax is quite a bit different so I'm not sure if that's feasible

Nitero avatar Mar 12 '25 22:03 Nitero

Regarding 1, it can definitely be made a setting (it actually used to be long ago, but the mechanism changed back and forth a few times since). If you're into it, feel free to open a PR! Unfortunately re 2 this is not under the plugin's control -- it is somewhere between the render method that Obsidian provides and how Dataview is registered.

esm7 avatar Mar 18 '25 09:03 esm7