obsidian-calc icon indicating copy to clipboard operation
obsidian-calc copied to clipboard

Migrate the Plugin to ESBuild and add Inline Widgets for all expressions

Open phibr0 opened this issue 3 years ago • 2 comments

Now if something can be calculated it will be added as a inline Widget: image

The results are not part of the document, they just look like it.

phibr0 avatar Oct 30 '21 13:10 phibr0

Hi @phibr0, thanks for the contribution. I like it.

I'm interested to hear your take on ESBuild vs Rollup. Is it just preference, or does ESBuild add lots of value? (I haven't kept up to date with js bundlers)

I think the inline widget should be able to be toggled via a plugin setting.

Before removing the markers may be it should check if the '.meld-calc-result' class is present first? (in case something else is adding markers to that line)

Overall I think it would be quite useful have the answers show up like that.

meld-cp avatar Oct 30 '21 21:10 meld-cp

I know that ESBuild is very fast compared to Rollup and ESBuild is now the default bundler for the obsidian sample plugin.

bigredjoe avatar Feb 05 '22 14:02 bigredjoe