Add support for placing all Kanban data under specific level-1 header #1073
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issues:
Problem
Sometimes, it’s more convenient to have a Kanban board alongside regular markdown content within the same file. For example, I often have task notes that include subtasks I’d like to track using Kanban, while keeping the task description in the same place. However, with the current implementation, I’m forced to create a separate Kanban note for each case. This results in having two notes for a single task instead of consolidating everything into one note, which feels redundant and less organized.
Solution
This PR introduces the concept of a "Kanban Data Heading". It's a H1 heading that groups all Kanban data under itself. When defined for a Kanban note - the plugin updates only the section of the note, which corresponds to this header. It's inspired by Obsidian Excalidraw's "Back-of-the-card" feature
This setting is not set by default. The default behavior of the plugin is unchanged, the PR only adds this feature as an option. If user wants to enable it for a Kanban note, they can set the Kanban Data Heading in the settings of the board. Also user can "convert" their regular markdown notes to Kanban Note by executing a command "Convert markdown note to Kanban", it automatically adds a new header to the note where the kanban data is placed
Please see the video below for demonstration of the feature:
demo_kanban_1_basic.mp4
Also, this allows the user to combine markdown, kanban and excalidraw all in the same note as demonstrated in the next videos:
demo_kanban_2_excalidraw.mp4
demo_kanban_2_excalidraw2.mp4
NOTE: While I’ve tested various use cases thoroughly, there is still a possibility that this feature could inadvertently affect your data. I strongly recommend creating a backup of your notes before using this feature, especially when enabling it for the first time.