sethyuan / logseq-plugin-kanban-board

Draggable, editable Kanban view.
MIT License
62 stars 2 forks source link

After adding a "subtask", the main task disappears #13

Closed greenrd closed 1 year ago

greenrd commented 1 year ago

I tried to add subtasks to my Kanban board, by opening a card, adding text below the duration property and pressing tab to indent them with bullet points. When I do this, the card disappears from the board!

But in the Markdown file, it's almost correct. The only problem is that the whole task and its subtasks are indented with one tab character too many. So if I manually edit the file and remove the extra tabs at the start of those lines, and then save and reload the page in Logseq, everything works fine.

sethyuan commented 1 year ago

You have messed the block's parent child relationship by performing a wrong indentation, for a card to be valid, it has to be a child of a kanban block, not of another card.

greenrd commented 1 year ago

OK, but I'm not trying to add a card, I'm trying to add a subtask. Adding a subtask shouldn't make the card disappear.

sethyuan commented 1 year ago

Adding a sub-block will not make the card disappear, your problem is that you were indenting the card itself, making it a sub-block of another block, hence the disappearing (because it's no longer a card).

greenrd commented 1 year ago

Ah, I see. But I think the problem is that the tab key is being misinterpreted. I don't want to indent the whole card, only the line I am on. Normally in LogSeq, pressing Enter at the end of the previous line followed by pressing Tab on the line, will achieve this effect. But in the little card editor, pressing Enter does not create a new block.