Document Statistics (Word Count, etc)

Registered by aidave

https://answers.launchpad.net/kabikaboo/+question/86162/+index

As you probably know, National Novel Writing Month is in November. I'm planning to participate and want to use Kabikaboo, but the lack of Document Statistics makes it hard. It would be useful to me if Kabikaboo could display such statisics as:

Word Count
Word Count This Session (Since application has been Opened.)
Time of Session

It would be extremely helpful if it could display these while you type. A feature I've long wanted in a word processor, but OpenOffice's writerstools is the only one I know of that has it, and its very bloated.

-Long Time User (Since your first p0ost on the Ubuntu forums :D)

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
Chase Baggett
Direction:
Approved
Assignee:
aidave
Definition:
Approved
Series goal:
None
Implementation:
Implemented
Milestone target:
milestone icon 1.6
Started by
aidave
Completed by
aidave

Related branches

Sprints

Whiteboard

Will probably appear in the repo long before the package... so best bet is to use the repo once status is set to "fixed implemented"

Have made a working beta now!
Looks good to me, but there is one flaw.
The timer starts when you open up Document Stats (from File menu).
It also resets the timer if you close and reopen the Stats window.
This behavior could be improved (start timer on app start, keep timer hidden on window close) but it is a bit of a pain.
If you really need that let me know.
Otherwise the code is in the repo ready for testing!

Its kinda cool actually, now I know how many words are in my own projects.
I am debating whether to add a word count for the currently selected node...

---
Update: there is now an option to Calculate Statistics on startup. Its off by default so it doesnt slow down big documents loading up. Also added Node Word count. Its done.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.