Code snippet: extract note

There are only some points i found while testing:

  1. if the title/filename is already belong to another file. The the 1st note file remain. In the reading file, the content of the new snip is being replaced by the [[link]] while its content is deleted (no warning of existing note ).
  2. For people who are are new to markdown, the definition of next line maybe a bit fuzzy when text is wrapped. If you select text within the line, then it just turn that highlighted selection into new link
  3. Should alert people on choosing new default location for new notes (instead of main vault). Cause the vault fill up quite fast when you snip (especially with hotkey)
  4. Always make a copy of the original note (either alert reminder or auto copy feature). (because after reading and snip, the original file is shredded with [[link title]]. most of the important points are already being shorten/cut/snipped away)

Also:

  1. If the title of the note contain symbols and OS block file creation, then Obsidian do nothing (great!).

Recommend features:

  • If note heading already exist, give alert for new name OR auto adding a number behind new notes. maybe also 1 option to name the new notes as foldername_# (# to make it unique)