callum-oakley / gotta-go-fast

A command line utility for practicing typing and measuring your WPM and accuracy.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Richer results and result logging

gyvess opened this issue · comments

Some typing sites have results which include other statistics, in particular slowest typed character and WPM for individual words. These are useful stats in order to better know where you are most deficient, so you can tailor typing tests that will aid in ironing out your weaknesses.

On a related note, result logging would also be nice so you can more easily track your progress. A --log option could be added that enables it and allows the specification of a file output. Maybe no file output is necessary and gotta-go-fast can simple output the results to stdout, that way users can do more with the results in terminal. I imagine the results would be output as a single line with values delimited by spaces and/or tabs, for example.

[DATE] [TIME] [HEIGHT] [LINENUM] [WPM] [ACCURACY] [SLOWEST CHARACTER] [SLOWEST WORD] [FILENAME] 

Here's a mock log with five entries.

2020-07-24  03:06:19,696    6   397     113 97%     g   country         '/home/gyves/Documents/Typing/Begin/Common300'
2020-07-24  03:07:25,735    6    56      93 99%     o   ica             '/home/gyves/Documents/Typing/Begin/Trigrams'
2020-07-24  03:09:37,389    6    14     127 96%     r   react           '/home/gyves/Documents/Typing/Begin/Common Patterns 3'
2020-07-24  03:13:04,442    6    99     121 100%    d   ight            '/home/gyves/Documents/Typing/Begin/Quadgrams'
2020-07-24  03:14:12,012    6   533      97 91%     w   particular      '/home/gyves/Documents/Typing/Begin/CommonEX'

There's probably a way to make this look better, but I attempted to put the values most variable in width at the end of the line and right alight some columns. The goal is to make the resuts human readable and simple to use awk and sort on.