silverbullet icon indicating copy to clipboard operation
silverbullet copied to clipboard

Soulver-like calculation support

Open zefhemel opened this issue 2 years ago • 2 comments

This one's a bit out there and I'm not 100% how this should work, but I really like the free form way you can write calculations in Soulver and I wonder if we can accomplish something similar in SB.

Open ideas on even how this could work purely from the UX perspective, implementation can come later.

zefhemel avatar Jul 16 '22 16:07 zefhemel

If you look at the Soulver UI, it used a panel to the right to show calculation results. This is doable in SB but it will be tricky to align it with the text.

Alternatively, perhaps calculation results can be inlined in the page text similar to how this works with queries. We'd have to figure out a clean way to put in those results and make them update on the fly(ish).

zefhemel avatar Jul 16 '22 16:07 zefhemel

Can be based on this: https://github.com/5anthosh/fcal

zefhemel avatar Oct 26 '22 20:10 zefhemel

And this https://github.com/gtg922r/obsidian-numerals

zefhemel avatar Feb 11 '23 06:02 zefhemel

Along these lines too is something I'm interested in: ipython integration. I think conceptually they are both pretty similar; you have cells which are acted upon by some external process (whether that's a calculator or a python interpreter), and results are presented (and potentially cached). You'd also potentially have dependencies across different cells.

jamesob avatar Feb 28 '23 18:02 jamesob