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

Multi-level Indentation getting lost in MD file when user edits task using Modal #41

Closed tu2-atmanand closed 1 month ago

tu2-atmanand commented 1 month ago

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.

tu2-atmanand commented 1 month ago
tu2-atmanand commented 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 :

tu2-atmanand commented 1 month ago

DEV : Keeping track of the original data : Image

tu2-atmanand commented 1 month ago

This issue has been solved.

tu2-atmanand commented 1 month ago

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.