dsebastien / obsidian-dataview-serializer

Obsidian plugin that gives you the power of Dataview, but generates Markdown, making it compatible with Obsidian Publish, and making the links appear on the Graph
MIT License
27 stars 2 forks source link

Functionality of the dataviewjs scripts in the plugin #4

Open Prakhargarg-2010196 opened 1 month ago

Prakhargarg-2010196 commented 1 month ago

To allow serialising the dataviewjs scripts in the obsidian for more complex functionalities

Example snippet(but it can vary):

// asc : for ascending order
let pages =dv.pages("#moc").file.name.sort(page=>page,'asc')
for (let page of pages){
    dv.paragraph(`- [[${page}]]`)
}
Prakhargarg-2010196 commented 1 month ago

To allow serialising the dataviewjs scripts in the obsidian for more complex functionalities

Example snippet(but it can vary):

// asc : for ascending order
let pages =dv.pages("#moc").file.name.sort(page=>page,'asc')
for (let page of pages){
  dv.paragraph(`- [[${page}]]`)
}

The code part has to be enclosed in the ```dataview

dsebastien commented 1 month ago

Hello,

Honestly I don't think I'll be able to work on this. It's a cool idea, but it would require much more work. Although, I'll keep the ticket open because it would be great to have. Contributions are welcome!