Note extractor

Thanks to user @randulfr for providing a way to do this with Obsidian right now via Keyboard Maestro (macOS only):

Windows users can try this autohotkey script :

it requires autohotkey ANSI or now. description in the link & here :Block reference


A plugin is now available for this with Obsidian v0.9.7 (currently insider’s build).

I have include a couple of commands for different note extraction behaviours and a setting to include a heading in the new note.

I could also add a config setting for automatic ZK UID generation for new note file names if that would be useful.


@J_L: I have installed your plug-in, refreshed Obs, but it only works halfway. The new note is created but the content is not transferred, even though the content is taken away from the source note.

@Klaas Is that using the command for the first line as the file name or the content only option with the modal to enter the file name?

Could you post a copy of some example content I can try and replicate the issue with?

Thanks for this very useful plugin @J_L! It automates a process I do very often and makes it a breeze.

I already have another feature request. :blush: Make it possible to refactor content out to an existing note, i.e. append selected text to an existing note.

To me, the ideal UX for this would replace your existing filename modal with something that emulates Obsidian’s “Open quick switcher” command: as you type a filename the vault is auto-searched for existing files to choose from, or press enter to create a new file. But whatever is easiest / makes better sense, I support.

I’ve been using it for a week and it works great. Thank you very much!

1 Like

what code should i use if i want the new note name will be the - original note name + the first line of the part i cut?

thank you

hi, with the note refactor plugin

what code should i use if i want the new note name will be the - original note name + the first line of the part i cut?

thank you

Love the plugin - it is the number one plugin in my workflow. But I do have a request. Just like @Danashafir I would also like some more variables to work for the prefix option besides the date. Preferably, it would be nice if the same placeholders for the templates in the plugin also could be used for the prefix.

1 Like

Just to clarify: I create notes from Heading 2. I would like these new notes to have {{title}}-{{new_note_title}} as the filename.

This, so much. It would make breaking notes up into smaller notes so much faster without having to manually name every file.