I've added functionality to make word count correctly track between multiple files when they are opened during a sprint. Previously, it would break if you tried to open a new file during a sprint and it would mess up the total word count stats. Now it should function no matter how many files you open or how many words are in those files.
This should allow sprints some more flexibility. I find it especially useful when writing as I can work on multiple chapters in a sprint when I finish the one I started on.
I've mostly made changes in SprintRun.ts. The typingUpdate method was rewritten to track what files are being worked on and their individual stats. getMiniStats and getStats were both updated to use the new information. To facilitate this, I added a new interface to types.ts.
I've written some tests to make sure the new features don't break anything, though there are some bugs with them that I couldn't figure out. Testing in Obsidian didn't reveal any issues, so I ignored the buggy tests and just looked at the results in production.
I've added functionality to make word count correctly track between multiple files when they are opened during a sprint. Previously, it would break if you tried to open a new file during a sprint and it would mess up the total word count stats. Now it should function no matter how many files you open or how many words are in those files.
This should allow sprints some more flexibility. I find it especially useful when writing as I can work on multiple chapters in a sprint when I finish the one I started on.
I've mostly made changes in SprintRun.ts. The
typingUpdate
method was rewritten to track what files are being worked on and their individual stats.getMiniStats
andgetStats
were both updated to use the new information. To facilitate this, I added a new interface to types.ts.I've written some tests to make sure the new features don't break anything, though there are some bugs with them that I couldn't figure out. Testing in Obsidian didn't reveal any issues, so I ignored the buggy tests and just looked at the results in production.
This should close #19.