Quickadd Example

Language:: JavaScript
Program:: Obsidian

Summary

undefined

Code

const projectNotes = DataviewAPI.pages("#project").where(p => !p.file.path.contains("Template")).values;
const targetProject = await this.quickAddApi.suggester(projectNotes.map(p => p.file.name), projectNotes);
const targetProjectFile = app.vault.getAbstractFileByPath(targetProject.file.path);
let markdownLink = this.app.fileManager.generateMarkdownLink(targetProjectFile, '');
markdownLink = `${markdownLink.slice(0, markdownLink.length - 2)}|${targetProject.alias}${markdownLink.slice(markdownLink.length - 2)}`
return `Project:: ${markdownLink}`;

Explanation

Result


up:: ๐Ÿงช Code Diary