kinabalu / obsidian-word-sprint

Obsidian Word Sprint plugin
MIT License
41 stars 6 forks source link

Bug: Word Sprint includes all words in note at start of timer #53

Closed SlRvb closed 1 year ago

SlRvb commented 1 year ago

When trying to write in a note that already has the words, Word Sprint will add the total of the notes words into the word count when starting the sprint instead of only the ones written for this sprint.

Example of error: Obsidian_fGQSj2WIY6

wagewarsgetrichdiegoncharov commented 1 year ago

I'm also having this issue.

dzhuyx commented 1 year ago

Same here. Any solutions?

kinabalu commented 1 year ago

Can probably have the plugin check for text already and add it for removing from total. Will have to look into what the API provides and maybe there's a better way of calculating number of words written during that time period

jmangelson commented 1 year ago

I am having the same problem. Really excited about the plugin otherwise.

Looking at the code in main.ts (line 349) it looks like the previous word count is being stored (or at least potentially stored) at the beginning of the sprint. Is the bug that this if statement is failing?

SprintRun.ts (lines 140-141, 102-113, 218) seems to implement the needed functionality already.

@kinabalu Is it possible to check if the condition for the if statement that leads to main.ts (line 349) is evaluating to False?

jmangelson commented 1 year ago

Hi, Is there any update on this?

I really like the plugin, but would like to continue editing a single document for multiple sprints.

Drakemoor commented 1 year ago

Is there any solution for this?

kinabalu commented 1 year ago

this has been fixed in 0.2.5

AaronKnowls commented 1 year ago

this has been fixed in 0.2.5

Thank you so much, kinabalu!!