Please add the same controls that the search pane has for context to the Copy Search Results window. Or, give an option to match the information shown in the search pane.
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.
Yes, please! This would also be very helpful for those who would like to use Obsidian for research coding. The context option in the search understands quite well that a certain tag is related to a paragraph or a bulletpoint and not necessarily to a whole file - this is exactly what is necessary for effective coding and should be quite easy to implement as the two functions would just have to be combined.
I also tried adding the context function by adding it to the code for embedding searches in notes - but that does not seem to work either!?
Now I when I want to copy the search result, I found that what i get is just the title of the document. I want to copy the sentences that match my search.
I agree that this feature is hugely important to my desired workflow with obsidian. The search function provides excellent results, but it’s a tremendous shame it doesn’t give us a way to make use of them. Unless I’m missing something, aggregating related blocks of content from across notes is a burdensome task and this would make it significantly easier
In my implementation, I use the Query Language plugin as overhead as I cannot get to Obsidian search API (yet), and this plugin so I can create modals in my pseudo-plugin.
Features:
Copy lines of All Results from all Files yielding results
Copy individual lines of individual files
Copy BlockID if it exists, if not, create it and copy it with ![[file#^block-id]] embedding syntax to the clipboard
Live filtering of all results (supports regular expressions)
Highlights of two kinds
Draggable modal (of different sizes) on PC and mobile
Excluded folders
Renders YouTube timestamps and clickable parent note, upon clicking which it takes me to the line where result is
(All done with Claude.ai)
Something like this should be very important for researchers and note takers alike.
(Decided to not share it publicly because of the overhead and many faulty parts in the code.)
In my case I use regex in search and it is very useful. I’ve fine tuned them and they work well for me.
Just today I thought "I seem to recall the elipsis has a way to copy the search results?. I really want to take all those nuggets and paste them into a card on a canvas.
It does, but yet, it doesn’t. All I get is links to the notes. No helpful.
A bit misleading … I want the copied content of the search results. And I do not need to have reference links to the blocks, just the result content.
I do not want to go thru the contorted and complex efforts I’ve seen other people recomend; it’s impressive, but geez.