Internal

Initializing dendron.yml

Renaming a Note

Flow

  • engine-server/src/drivers/file/storev2.ts
renameNote opts {
  oldNote, oldLoc, newLoc := opts
  notesToChange = getNotesWithLinkTo(oldNote)
  notesToChange.forEach { n =>
    replaceLinks(n, from: oldLoc, to: newLoc)
    n.links = findLinks(n)
  }
  newNote = {oldNote, newLoc}
  @deleteNote( oldNode, metaOnly)
}
  • src/topics/markdown/utilsv2.ts
replaceLinks opts {
  remark = getRemark(dendronLinksOpts: {replaceLink: { from, to }} )
  return remark.process(opts.content).toString()
}
  • src/drivers/file/storev2.ts
deleteNote(note) {
  ...
  if !note.children {
    ...
  } else {
  }

}

MISC

Does Dendron use parent/children metadata inside notes during initialization?

  • src/filesv2.ts: string2Note

WorkspaceService: Add Vault

  • src/workspace.ts
createVault(vault, noAddToConfig):
  ensureDir(vault)
  createNoteRoot if not_exist
  createSchemaRoot if not_exist

  if !noAddToConfig:
    config.add vault

Sync Vault

  • src/workspace.ts
sync {
    emptyRemoteVaults.map {
        @cloneVault
    }
}

cloneVault {

}


Children
  1. Engine Client