# Copy Search Results: Please add option to copy CONTEXT

**URL:** <https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836>\
**Category:** Feature requests\
**Created:** [July 14, 2021, 6:18am UTC](https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836 "2021-07-14T06:18:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![goodsignal](https://forum.obsidian.md/user_avatar/forum.obsidian.md/goodsignal/32/129_2.png) [@goodsignal](https://forum.obsidian.md/u/goodsignal)\
**Post date:** [July 14, 2021, 6:18am UTC](https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836/1 "2021-07-14T06:18:30Z")

</div>

### Use case or problem

The search pane has a great UI for including context (collapse, expand, show more).

When we need to copy the results, all of that valuable context is stripped.

 ![20210714-125342results](https://forum.obsidian.md/uploads/default/original/3X/0/a/0af79aa6e46dc8dd5a8f6185e8f5a8b14fbb6b6c.jpeg)

### Proposed solution

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.

### Related feature requests (optional)

> [@Inline Query Results: Please allow us to Select and Copy these as text or markdown](https://forum.obsidian.md/t/inline-query-results-please-allow-us-to-select-and-copy-these-as-text-or-markdown/20840):
>
> Use case or problem 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. [20210714-132559nocopy] Proposed solution 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 contex…

---

<div class="post-metadata">

**Author:** ![jiegp](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/j/46a35a/32.png) [@jiegp](https://forum.obsidian.md/u/jiegp)\
**Post date:** [October 8, 2021, 10:52am UTC](https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836/2 "2021-10-08T10:52:54Z")

</div>

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!?

````
```query
`Show more contex`
embed OR search
```
````

---

<div class="post-metadata">

**Author:** ![drntistfrankchen](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/7ab992/32.png) [@drntistfrankchen](https://forum.obsidian.md/u/drntistfrankchen)\
**Post date:** [July 29, 2022, 3:00am UTC](https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836/3 "2022-07-29T03:00:42Z")

</div>

### Use case or problem

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.

### Proposed solution

Allow the user to copy the result of the search.

### Current workaround (optional)

### Related feature requests (optional)

---

<div class="post-metadata">

**Author:** ![uberunix](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/74df32/32.png) [@uberunix](https://forum.obsidian.md/u/uberunix)\
**Post date:** [March 25, 2025, 12:01am UTC](https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836/4 "2025-03-25T00:01:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Yurcee](https://forum.obsidian.md/user_avatar/forum.obsidian.md/yurcee/32/53074_2.png) [@Yurcee](https://forum.obsidian.md/u/Yurcee)\
**Post date:** [April 17, 2025, 8:51am UTC](https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836/5 "2025-04-17T08:51:22Z")

</div>

Something like this is very much needed indeed:  
 ![Obsidian_j7MAEVzKSh](https://forum.obsidian.md/uploads/default/original/3X/a/3/a3f7e86adc6966c765e3cc1ffa1cd9588f0d40d8.gif)

In my implementation, I use the Query Language plugin as overhead as I cannot get to Obsidian search API (yet), and [this](https://forum.obsidian.md/t/plugin-codescript-toolkit/94399) 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.)

---

<div class="post-metadata">

**Author:** ![writtenfool](https://forum.obsidian.md/user_avatar/forum.obsidian.md/writtenfool/32/11800_2.png) [@writtenfool](https://forum.obsidian.md/u/writtenfool)\
**Post date:** [January 4, 2026, 3:03am UTC](https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836/6 "2026-01-04T03:03:52Z")

</div>

totally agree with original poster (OP).

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.

Please

---

<div class="post-metadata">

**Author:** ![denroj](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@denroj](https://forum.obsidian.md/u/denroj)\
**Post date:** [February 12, 2026, 8:58am UTC](https://forum.obsidian.md/t/copy-search-results-please-add-option-to-copy-context/20836/7 "2026-02-12T08:58:41Z")

</div>

> [@uberunix](#):
>
> aggregating related blocks of content from across notes is a burdensome task and this would make it significantly easier

I agree, if someone has better ways of doing it pls share.
