Use case or problem
I want to tag few todo items with #now tag, and see them on the top of my document in the “Doing now” section.
I like how Native Block Embed ![[#^now]] renders results - but it searches only for the first item. I want to see all the matched items.
I’ve tried dataview and tasks plugins. I don’t like them as they add artificial feeling with the overlay over the search results block.
Also I’ve tried the “search” block but it doesn’t generate checkboxes, to be able to mark task as finished in-place.
Proposed solution
Will be cool to extend the Native Block Embed, by asking it to show all results, not the only first one. Extend the syntax and instead of “show the first one” do also “show all matches” when a flag “all:true” is passed.
Another way to achieve the same - is to change “search” capabilities. It now searches by #tag but it doesn’t render each found todo item, to make it clickable. Will be good to add a flag “render:true” to show the rendered content of the found results.
Current workaround (optional)
Related feature requests (optional)
I feel this would be clearer if there were some examples showing exactly what you had in mind, instead of everyone having to read the description and try and work out what they think you meant….
I changed the title to match the main request (was “Search results with rendered content”).
The alternate request already has a thread: Render text in backlinks, search results, and queries instead of showing raw markdown (reading mode rendering).
1 Like
Thank you for your suggestion! I’ve added the like to that request too. But they want a wider system change in all places. But my request is backward compatible and just asks to render context inside the search results. Or if it’s hard or impossible to do - to extend the existing working solution with showing not the first found mention, but all of them, by passing a flag to the block. From programming perspective the last one is super easy to do as it requires to check “if flag isn’t set then skip the loop, and otherwise go through all results and display them”.
I can’t find where is the source code of that part of the app. I would make the change myself, but not sure where I can find that logic in the source code. And if the code I self available on GitHub to make my contribution to the core product.
Obsidian isn’t open source and doesn’t accept code contributions, but you could probably write a plugin to do it. Here is the developer documentation: Home - Developer Documentation.