On Tuesday 21 October 2008, Scott Scriven wrote:

> * Noel Henson <

[hidden email]> wrote:

> > Here is a simple script that adds outline-aware math to VO.

>

> Neat!

>

> > I've also included a test outline.

>

> Thanks, this really helps explain things.

>

> Is there any sort of "count" operation, to list the number of

> immediate child nodes? Or a way to have more than one

> calculation per line?

There is no way to count child nodes. I'll think about that. We do count

child nodes/branches in checkboxes to compute percentages.

Currently there is only one formula per heading. Having more that one would

increase the complexities of finding where to put results and assigning

variable names dramatically.

>

> This is just an idea, but something like...

>

> Days worked: {SUM} days= 123 {SUM} hours= 984

> October: {COUNT} days= 12 {SUM} hours= 96

> 21: 09:00-17:00 (hours= 8)

> 18: 10:00-17:30 (hours= 7.5)

> 17: 09:30-17:45 (hours= 8.25)

> ...

> September: ...

You could do this:

Days worked: {hours/8} days= 123

October: {hours} hours= 96

21: 09:00-17:00 (hours= 8)

18: 10:00-17:30 (hours= 7.5)

17: 09:30-17:45 (hours= 8.25)

...

September: ...

> Or, something else I'd find useful is a count of children with

> [_]s, and children with [X]s... or more generally, perhaps the

> number of children with a given string. But that may be overkill

> in VO; I hardly even use % in checklist parents any more. It

> seems like a feature more suited to TreeLine.

To each his own. :)

You have access to routines in vo_checkboxes.vim to count the number of

children. That's how the percentages are computed. If you don't have the

exact routine you want, you could use what's there as a examples.

>

>

> -- Scott

> _______________________________________________

> VimOutliner mailing list

>

[hidden email]
>

http://www.lists.vimoutliner.org/mailman/listinfo/vimoutlinerNoel

--

------------------------------------------------------------------

Noel Henson

www.noels-lab.com Chips, firmware and embedded systems

www.vimoutliner.org Work fast. Think well.

_______________________________________________

VimOutliner mailing list

[hidden email]
http://www.lists.vimoutliner.org/mailman/listinfo/vimoutliner