LiamRiddell/obsidian-solve

[Feature Request] Sum up previous lines

已关闭

#49 创建于 2024年3月2日

 (2 条评论) (4 个反应) (0 位负责人)TypeScript (4 个派生)auto 404
enhancementhelp wanted

仓库指标

星标
 (126 个星标)
PR 合并指标
 (平均合并 59分钟) (30 天内合并 3 个 PR)

描述

Is your feature request related to a problem? Please describe. Summing up a couple of numbers is what I mostly need a calculator for, and I suspect I'm not alone. The Mac apps Soulver, Numi and also the Numerals plugin have a "magic variable" that sums up all the above lines. (Up to an empty line or another kind of separator like a ## Headline.) But I can't do this very easily in Solve. (At least I don't know how?)

Describe the solution you'd like A syntax something like this. (Just as an example: two lines declare variables, one doesn't, one has a calculation.)

Apples = 10 Oranges = 20 10 1 + 1 @sum = 42

(Github makes links out of "@", that's not the intention :-)

Describe alternatives you've considered Could also be something else than "@sum" or "@total", if those seem like they would conflict with something. (":sum" or ":total" ?)

贡献者指南