edonyzpc / personal-assistant

A plugin which help you to automatically manage Obsidian.
Apache License 2.0
82 stars 2 forks source link

[feat] preview all records #85

Closed edonyzpc closed 1 year ago

edonyzpc commented 1 year ago

Description

As this plugin creating notes in specific directory with formatted named files. And when user wants to navigate these notes, they should open them each by each. If the user has one page to navigate all of the files, it will be great.

Requirement/Scenario

Navigate specific records that created by this plugin in one page. Something like the Templater script:

<%*
    let fileToWrite = tp.file.find_tfile(tp.file.path(true));
    let listedFolder = await this.app.vault.adapter.list('2.fleeting/fleeting-thoughts/');
    let contents = "";
    //listedFolder.files.forEach(async (f) => {
    for (const f of listedFolder.files) {
        console.log("filename = ", f);
        let targetFile = tp.file.find_tfile(f);
        let content = await this.app.vault.read(targetFile);
        contents = contents + "\n\n" + content;
    }
    await this.app.vault.modify(fileToWrite, contents);
%>

Tasks

edonyzpc commented 1 year ago

checkout this plugin, it might be helpful.