kjk / edna

Note taking for developers and power users
https://edna.arslexis.io
Other
371 stars 16 forks source link

Feature request: allow Go blocks to access notes/blocks #12

Open pmf opened 2 months ago

pmf commented 2 months ago

Have you searched existing Github issues to see if someone has already requested this feature? Yes

Is your feature request related to a problem? Please describe. No

Describe the solution you'd like It would be nice if Go blocks could access/iterate over notes and blocks. This would allow running dynamic queries/reports over a subset of notes. Since currently blocks do not have tags or IDs (?), this would mean iterating over all of a note's blocks.

Describe alternatives you've considered I have not found any.

Additional context n/a

kjk commented 2 months ago

Probably not Go, because it is executed on the server and I don't think I can provide the blocks.

But JavaScript - yes. It would run in the browser and I could provide API for accessing and modifying notes / blocks.

Which opens up a question: what APIs, specifically, do you need to implement your use cases?