Use a bullet instead of a dash for the task

cycle-task-create
Zef Hemel 2024-09-29 13:29:37 +02:00
parent 9387bd988c
commit e5e2245a2d
1 changed files with 6 additions and 7 deletions

View File

@ -184,7 +184,7 @@ async function convertListItemToTask(node: ParseTree){
changes: {
from: listMark.from,
to: listMark.to,
insert: "- [ ]",
insert: "* [ ]",
},
});
}
@ -334,8 +334,7 @@ export async function taskCycleCommand() {
return;
}
console.log("Node", node);
const taskNode =
node.type === "Task"
const taskNode = node.type === "Task"
? node
: findParentMatching(node!, (n) => n.type === "Task");
@ -344,7 +343,7 @@ export async function taskCycleCommand() {
if (taskState) {
await cycleTaskState(taskState);
}
return
return;
}
// Convert a bullet point to a task