obsidian-query-control icon indicating copy to clipboard operation
obsidian-query-control copied to clipboard

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

Open insecurejezza opened this issue 2 years ago • 1 comments

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.

insecurejezza avatar Apr 18 '22 21:04 insecurejezza

Vote for this

artem-barmin avatar May 23 '22 00:05 artem-barmin