Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for placing all Kanban data under specific level-1 header #1073

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DraggonFantasy
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant