Quickly convert block/selection to transcluded/linked note?

What I’m trying to do

I often have notes where I realize that some part of it should really be split off into a note of its own (usually because I want to apply tags/properties to that entire block). Is there some easy way to do this, either natively or via a plugin? I’m envisioning something where I can select some text in a note, hit a hot key, and have a new note created with a title that’s the header in that text if it starts w/ a header (or the first X chars of the first line if no leading header) and the selected text is replaced with a link or transclusion pointing to that new note. (If I could configure where those new notes are dropped, I could then also use Templater to pop up a selector to let me apply some frontmatter templates based on the type of new note, and move it to the right dir, but I don’t think the “take this selected text as input and replace it with the generated link for the new note” piece can be done in Templater, can it?)

it can be done in templater but you may find GitHub - lynchjames/note-refactor-obsidian: Allows for text selections to be copied (refactored) into new notes and notes to be split into other notes. more convenient

Actually, I just noticed that the core Note Composer plugin, despite the description in the UI saying “Merge two notes or split one into two” also, if you have text selected, exposes an “Extract current selection” option in the command palette that replaces the selection with the link to the merged-to file, and you can use ctrl-enter to “merge” to a new file rather than an existing one, and Note Composer also supports using a template for the new note, so I can do almost all of what I want natively in that.

It looks like that plugin does a bit more, though, including the first line as title option, and also splitting a note by headings, which is actually a more common version of the scenario that I encounter, so I may play around with that a bit too.

Hrm. After poking at Note Refactor for a bit, I have realized that it is an abandoned and buggy plugin that has race condition issues that can cause data loss. :frowning: It looks like GitHub - mnaoumov/obsidian-advanced-note-composer: Obsidian plugin that enhances Note composer core plugin. is a more recent and actively-maintained plugin that does much the same thing and seems likely to incorporate PRs for some tweaks I want to add, so I’m going to go with that for now.