Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouping capabilities? #29

Open
shurane opened this issue Oct 11, 2014 · 1 comment
Open

Grouping capabilities? #29

shurane opened this issue Oct 11, 2014 · 1 comment

Comments

@shurane
Copy link

shurane commented Oct 11, 2014

It would be kind of nifty if there was a way to group lines together in the same 'group'. This way, you could do operations on the group, i.e. sum.

I was thinking about this while trying to break down the amount of work someone had to do for their college classes/jobs/etc.

Example with some syntax:

168 hours * 60 minutes a week = 10,080 minutes a week
#work {{
4 * 60 minutes weekdays + 6 * 60 minutes weekend = 600 minutes
12 * 60 minutes library + 8 * 60 minutes IT support = 1,200 minutes
}}
{#work.righthand.sum} minutes of work

#classes {{
3 * 50 minutes + 2 * 75 minutes calculus III = 300 minutes
3 * 60 minutes discrete mathematics = 180 minutes
3 * 60 minutes communications = 180 minutes
3 * 60 minutes gps \220 = 180 minutes
2 * 75 minutes politics = 150 minutes
}}
{#classes.righthand.sum} minutes of class

#homework {{
5 * 60 minutes * 5 days a week = 1,500 minutes
}}

{#classes.righthand.sum} minutes of classes + {#work.righthand.sum} minutes of work + {#homework.righthand.sum} minutes of homework = 'total' minutes reserved.

Syntax doesn't seem the most ideal, but seems pretty nifty.

@osnr
Copy link
Owner

osnr commented Oct 11, 2014

I'm reluctant to add syntax beyond 'natural math syntax'. Couldn't you construct these sums by linking? It would be annoying, though.

We're also getting into spreadsheet territory here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants