filipesilva / fdb

Reactive database environment for your files.
MIT License
81 stars 2 forks source link

Made for org-mode #1

Open licht1stein opened 3 months ago

licht1stein commented 3 months ago

Just watched your demo and I feel very excited to try fdb. But want to directly say (since you're using Emacs on the demo video), that fdb and org-mode are a match made in heaven :)

I will explore the possibilities once I learn the basics of using fdb. Thanks!

filipesilva commented 3 months ago

Org-mode is something I had in mind a lot while making FileDB! I don't use it, because I use Obsidian instead and a lot of my knowledge management workflows depend on having Obsidian on my laptop and phone and them syncing seamlessly.

I think the cool things to do is make a .org reader that extracts whatever data you want from .org files. There's a couple of clj org parsers around (https://github.com/200ok-ch/org-parser and https://github.com/eigenhombre/clj-org and https://github.com/bnbeckwith/orgmode) so it doesn't seem too hard to get started with.

This is how the (obsidian) markdown reader looks like. Add some parsing code similar to fdb.readers.md/read to your /user/load-repl.fdb.clj, add that fn in :extra-readers, and now you should be able to parse org files into the db.

Let me know what you end up doing with your org file data!

licht1stein commented 3 months ago

I've used obsidian before, I even made the obsidian.el package to work with obsidian from emacs. But I ended up switching to denote and org-mode files.