Skip to content

[Feature Request] Have => trigger a calculation parse from previous = sign even if spans multiple lines #10

Open
@wakatara

Description

@wakatara

First off, thank you soooooo much for making this!!

I was a huge user of Calca previously and basically, this if you hadn't have built this I would have had to myself. I've been testing the minor mode today and love it. I am taking a look at your code later to figure out how you did it. =] This rocks. (only tried it with my old markdown Calca files so far. Also, supporting most of the features in Calca would be baller if you need some extra roadmap ideas.)

One thing that would be amazing in order to support more ordered, thoughtful files would be to support the => as an trigger on calculaton on the last previous variable you've defined a formula for (ie the last thing_to_calculate = this + that.+ other things) even if it spans multiple lines.).
Eg.

Food            = 150 * Months * Days
                => 36,000 (derived from literate-calc package)

instead of

Food            = 150 * Months * Days => Food: 36,000. (derived)

I'd also suggest that that would also work better than having every line provide a solution to each declaration (right now I have lines that look like this:

Months         		= 8. => Months: 8
Days			= 30 => Days: 30
Working Days	        = 20 => Working Days: 20

from ol Calca formulas.

But just wanted to say thank you so much for your work on this. I had this as a project I really needed to get to towards the end of the year, so am ecstatic someone has beat me to it. \o/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions