nothingislost / obsidian-query-control

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

Feature Request: Ability to define the amount and direction of context displayed in a query #11

Open insecurejezza opened 2 years ago

insecurejezza commented 2 years ago

This may be a very specific, but it would be useful for me to be able to control the amount of context to automatically show after the base query result has been retrieved and in what direction. My use case is demonstrated below. I am querying all "blocks" that contain the link [[Aggregation of Marginal Gains]]. I have tagged a reference from the book Atomic Habits on a nested line underneath the highlight. When I query, it shows me the nested line but now the highlight above it. If I could define in the metadata that the query should "show more context + 1" so the query would automatically extend upward. -1 could be to go down and it could increment based on how much you want to show.

CleanShot 2022-04-19 at 07 33 07

No idea how difficult this would be but just thought I'd throw it out there. Please close this off if it is not possible or feasible :) I have workarounds.

artem-barmin commented 2 years ago

Vote for this