tu2-atmanand / Task-Board

An Obsidian plugin to view and manage all your task in a much more efficient Kanban Board format. Easily manage your tasks throught your vault.
https://tu2-atmanand.github.io/task-board-docs/
GNU General Public License v3.0
5 stars 0 forks source link

updateTaskInFile doesnt seems to work properly #28

Closed tu2-atmanand closed 1 month ago

tu2-atmanand commented 1 month ago

When i marked one taks complete, the following content got written in the MD file :

- [x] Aadhar Card : [[AdharCard.pdf]] |   ✅2024-09-26T11:20

- [ ] Aadhar Card : [[AdharCard.pdf]] |  

That is the same task line content got written again, along with the complete date ofcourse, on the top of the file.

Also when i edited the task with the original content :

- [x] Aadhar Card : [[AdharCard.pdf]] , Just adding some content to see if the Editing functionality is working | 🔼 #Test ✅2024-09-26T16:50

- [x] Aadhar Card : [[AdharCard.pdf]] |   ✅2024-09-26T11:20

So the conclusion is, somehow the updateTaskInFile function is not seems to be able to detect the old task title properly and this issue is only coming for above type of tasks, so, if there is characters like the square brackets in the Task Title, then i think something is failing in detecting the oldTask inside the MD file.

tu2-atmanand commented 1 month ago

Ohh my bad, i figures out, that problem was happening with only 5 tasks, because same tasks were there in the same file at bottom, i created this file long back to arrange my document, and pasted the same 5 lines of document again.

tu2-atmanand commented 1 month ago

Alright the issue has been resolved, I am not facing the issue, it has been tested. The function is working fine.