Obsidian++ Cookbook - ๐ - YouTube - Official Docs
When working in Obsidian in can be natural to โorganize as you goโ. One natural thing to want to do is right things in one note - then decide there is too much detail and create a new note with a region - and it can be helpful if this as simple as possible.
This is the sort of thing that is easy in Plugin REPL . If you execute the following code in plugin repl:
newCommand(async function send_selection_to_file() {
let filename = await promptString("File to send selection to:")
await writeFile(filename, selection())
kill()
insert(`[[${filename}]]`)
})
then you will have a command to send a region to a new file that you can run form the
You might also like the Note Refactor plugin, which provides similar functionality.
I am not affiliated with Obsidian. I am the author of plugin repl