mProjectsCode / obsidian-js-engine-plugin

https://www.moritzjung.dev/obsidian-js-engine-plugin-docs/
GNU General Public License v3.0
73 stars 5 forks source link

summarize the content under specific headings #5

Closed alanodididi closed 9 months ago

alanodididi commented 10 months ago

Hello, I would like to ask if this plugin can help count the content under specific headings in a specific folder. I tried writing code multiple times with GPT but couldn't succeed. Can you provide a similar example? Thank you very much. The dataview plugin seems to be doing well. I would like to ask if this plugin can help count the content under specific headings in a specific folder. I tried writing code multiple times with GPT but couldn't succeed, Can you provide a similar example? Thank you very much. The dataview plugin seems to not be able to do this function

mProjectsCode commented 10 months ago

Idk if I understand your question correctly, but you can access that dataview API from js engine code blocks like this.

const dv = engine.getPlugin("dataview").api;
// you can access the dataview API via `dv` now
dbarenholz commented 10 months ago

@alanodididi what does "count the content" mean? Number of characters under a header? Or how many bullet points? Maybe how many instances of a specific tag?

It's helpful to give some context here.

mProjectsCode commented 9 months ago

Closing this due to inactivity