# Extract selection to heading

**URL:** <https://forum.obsidian.md/t/extract-selection-to-heading/67897>\
**Category:** Help\
**Tags:** templater\
**Created:** [September 22, 2023, 5:04am UTC](https://forum.obsidian.md/t/extract-selection-to-heading/67897 "2023-09-22T05:04:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![AlanG](https://forum.obsidian.md/user_avatar/forum.obsidian.md/alang/32/55225_2.png) [@AlanG](https://forum.obsidian.md/u/AlanG)\
**Post date:** [October 22, 2023, 10:25am UTC](https://forum.obsidian.md/t/extract-selection-to-heading/67897/2 "2023-10-22T10:25:15Z")

</div>

I replied in [the other thread](https://forum.obsidian.md/t/templater-open-file-in-new-tab-and-append-to-end-of-file/69519/10), but for completeness for anyone coming from Google, here’s how you do this. It’s a really cool idea, I might start using this as part of my process!

> **[Move selected text to a different note, then embed the text back](https://share.note.sx/tus76cc6)**
>
> This script will take the text that is selected in the current source note, cut it, prompt the user for a destination note, then prompt the user for a heading name. Upon entering the heading name,...

---

_[View the full topic](https://forum.obsidian.md/t/extract-selection-to-heading/67897)._
