Closed tu2-atmanand closed 1 month ago
This Issue is getting solved currently. I am using the method to store the indentation along with the task.body lines. So, for this i have solved, the method to display Sub-tasks, with any level of indentation and The Task Description (That is any line without the checkbox patter) will be shown as usual. Because my Task Board is not going to show, indentation more then on level in the Description part. The most important work which is left to blend this new changes i have made to store the indentation for the task.body items is :
taskElementsFormatter
will only be used to display the content inside the EditTaskModal, So, for this, the Order should not be chaned, because right now i am keeping all the subtasks first and then all the rest of the lines after subTasks, so this has to be changed.updateTaskInJson
is also not working, it removed all the lines, when i edited one of the bodyLinesDEV : Keeping track of the original data :
This issue has been solved.
const handleSave = () => {
const updatedTask = {
...task,
title,
body: [
...bodyContent.split('\n'),
...subTasks,
],
due,
tag,
time: newTime,
priority,
filePath: filePath,
};
onSave(updatedTask);
onClose();
};
This issue has been solved, now, the plugin is able to detect multi-level bodyLines and subTasks and also preserve their indentation levels and the order of the lines, when writing back to the file.
Currently, the plugin is only able to detect and display Subtasks and Task Description body with only one level of indentation. But say if there are subtasks and also the Task Description has content with indentation more than 2 levels then this is not detected and displayed on the board.