Adds option to force update same task mentions in current file#397
Adds option to force update same task mentions in current file#397nkakouros wants to merge 1 commit intotbabej:masterfrom
Conversation
I've been trying to get to this but life keeps interfering. :-/
Your implementation seems more robust though. #222 looks like it may discard some unsaved changes in the buffer. |
|
What remains for this to be merged? |
The CI needs some tender loving care, so the existing tests are failing and thus nobody even bothered to write tests for this new functionality. And then all the maintainers are burnt out and/or having different priorities in life. |
This tries to fix the case when multiple viewports list the same task. Updating the task in one of them and saving can have the unwanted result that the changes get reverted as taskwiki uses non-updated mentions of the task as authoritative.
For example:
In this scenario, where the second occurrence of the task has been marked as complete (with the TaskWikiDone command), if the user saves the file, the task will be marked as pending. Common change logs for such tasks look like:
bouncing between pending and completed. This happens for other task attributes as well (e.g. due time).
PS: I would really like to write tests for any pending PR I have and have them merged, but I can't get the test suite to work.
Edit: I now see that #222 deals with the same issue. Feel free to close this if the older PR makes more sense.