Allow configuration of collapsing behaviour in embedded queries

Use case or problem

The embedded search query is great for time management, e.g. inserting bespoke search queries into daily notes to find the current week’s task. But some results are collapsed, meaning it might be easy to miss tasks. Currently, though in the search window, you can expand / collapse all notes, there is no such option for embedded queries.

Proposed solution

Provide the facility to set various options within the search query. These would need a special syntax , e.g.

#Options: collapse = true, ascending_sort = false

18 Likes

I agree. This would make large search results from embedded queries much more readable and/or informative.

1 Like

For super explicit context, it’d be cool if the embedded search could look like this:

6 Likes

I do like the above look … equal to the options in “Linked mentions” and search. So it looks like the code to do it like that is already there.

An option to group by first letter of the page being linked with an index at the top would be great to make large results (my music video collection for example) manageable.

EDITED after 2 hours : In the Discord I was pointed at the dataview communicty plugin that for me does exactly what I want. I still have to move the links to seperate pages but that is more like obsidian works and makes it also easier to link to seperate pages.

1 Like

+1 for this

Definitely a +1 for this

+1 for this. I keep a note as a catalogue for the different types of software I use, and it would be great to be able to collapse the entire embedded search.

+1 on collapse operator for embedded queries. Typically, I use queries on “maps of content” pages – that is, pages which serves as indexes into other pages. In these cases, it would be very nice to display the query results without expanding. For example, I would like to see a query for my YouTube channels related to gardening display collapsed results rather than expanded results as it now works.

1 Like

+1 Query blocks - expose option to fold or collapse results - #6 by andavargas

+1 absolutely essential to make sense of embedded queries in MOCs.

+1 from me too