Inline search query is amazing! Not being able to select and copy the text results that show in Preview Mode is a significant handicap. Everything in Preview can be selected, except for this.
Please let the text be blocked for copy if the mouse is dragged from white space across the text of interest.
Example
I accumulate numerous tags like #email/boss with a line of intended communication across so many notes. Copying search context would allow me to collect all of these notes and paste them into en email in one single action.
Related feature requests (optional)
The related feature request is a more powerful solution because it offers granular control on list presentation and which style the links are presented. But itâs not as speedy as a simple block-copy-paste action.
I like this idea.
I think enable the user to copy the markdown shown in the search result items can be fair enough.
It can be integrated into the context menu.
Currently, I use OCR to do thisâŚwell, itâs just a workaround.
I comment on it here since I found a slightly easier way to do this than using OCR. If you access the command menu (CMD P on my Mac), and run Export to PDF, the whole page, including the inline search results, are converted to text in the PDF and can be easily copied out to an email or any other document.
Yes, I was hoping to find a way of copying the content of pretty much any code block that renders the results of some kind of query. I suppose this would fall under this feature request.
Thanks for pointing that out. Although Iâm not sure how often I will actually use this procedure in practice, it fact that it is possible makes me optimistic that it already is possible to capture these query results programmatically.
Note that there is an even easier (manual) way: if you select only the output of the query and none of the surrounding note, then you can actually copy the markdown right there. I have not tested this extensively, but it works for task queries and dataview queries. It is a bit tricky, but if you manage to get the selection right, it works.
It feels rather unpolished that Obsidian blocks users from copying search results. This should be fixed. But the Text Expand plugin that @CawlinTeffid found seems to work pretty well as a workaround. Iâm marking it as a solution.
Unmarking solution because the request is still valid (but Iâm glad the plugin helps!). If you want to highlight it you could mention it as a workaround in the main post.
This also applies to the Copy Search Results in the main search. Right now it only lets you get the pages, but I want an option for the contents that was matched.