{{ }} expressions to add up and count
{{ }} expressions to add up and count
#65IdeaWow, I like this idea a lot. I can see I would get a lot of usage out of it. I think the idea you are proposing is simple to implement (for the user, probably very hard for you to design). Nice idea!
Thanks, everyone, for taking the time to read this. I wasn’t sure how this idea would be received, so I’m glad to hear that you’d find it useful.
I'm new to the app, and just in the trial. However, I created an account to say this is a brilliant idea, lacking in most other apps. I write scripts and the word count for each section is important for me to know. This would be perfect! The approach you're taking is very flexible - even allowing an overall word count as well as sections and subsections.
It's looking like a wonderful app which could replace a bunch of tools.
Thanks, David, and welcome! Thanks for sharing how you’d use this for your scripts. That’s really helpful.
I’ve wanted to add calculations and counts like these since Kosshi first launched, so I designed the editor with this in mind. The basic structure and a prototype are already there. I’ve just been unsure about how to make the feature simple to use.
The comments here have helped me see that this approach would be useful, so I’m planning to give it a higher priority. I’m looking forward to sharing a beta for you to try.
I often list small numbers in an outline and add them up. Right now I calculate in Spotlight and paste the result. It would be faster to calculate in the outline.
The idea
Write
{{ sum }}in a row. It shows the total of the numbers in the rows below. You don't need tags or special fields. Just write numbers as usual.You write:
You see:
The total updates when you change a number or add a row.
{{ sum }}could also add up more than plain numbers, like time:You write:
You see:
{{ words }}works the same way. It shows the word count, so you can see how long each part of a draft is:You write:
You see:
A plain number may not say what it counts. If you want a label, write
{{ words= }}instead:In the app,
wordswould appear as a small label, so the number is easy to see.Other ideas:
{{ 1200 * 12 }}: simple math{{ chars }}: character count{{ count }}: number of rows{{ progress }}: how many checkboxes are doneChoosing the range
{{ sum }}is short for{{ descendants.sum }}. The first part says which rows to use:descendants: all rows nested under it (default)children: only the rows one level downsiblings: other rows at the same levelparent: the row one level upYou write:
You see:
parentis one row, soparent.numberis just its number, 1000.Autocomplete
These names are hard to remember, so good autocomplete is important:
{{Export
When you export, you could choose to export the results instead of the
{{ }}expressions.This may be useful only for some people. But I think it fits Kosshi's design well, and it could make the outliner a better thinking tool. I made a simple prototype before, and the basic idea seems possible. For now, other things come first, such as improving the basics.
I posted the Summaries idea before. But showing summaries on every collapsed row can make the screen too busy. So I'm thinking of this instead. With
{{ }}, you can put summary-like information only where you want it.