Use a bullet instead of a dash for the task
parent
9387bd988c
commit
e5e2245a2d
|
@ -184,7 +184,7 @@ async function convertListItemToTask(node: ParseTree){
|
||||||
changes: {
|
changes: {
|
||||||
from: listMark.from,
|
from: listMark.from,
|
||||||
to: listMark.to,
|
to: listMark.to,
|
||||||
insert: "- [ ]",
|
insert: "* [ ]",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -334,8 +334,7 @@ export async function taskCycleCommand() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log("Node", node);
|
console.log("Node", node);
|
||||||
const taskNode =
|
const taskNode = node.type === "Task"
|
||||||
node.type === "Task"
|
|
||||||
? node
|
? node
|
||||||
: findParentMatching(node!, (n) => n.type === "Task");
|
: findParentMatching(node!, (n) => n.type === "Task");
|
||||||
|
|
||||||
|
@ -344,7 +343,7 @@ export async function taskCycleCommand() {
|
||||||
if (taskState) {
|
if (taskState) {
|
||||||
await cycleTaskState(taskState);
|
await cycleTaskState(taskState);
|
||||||
}
|
}
|
||||||
return
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Convert a bullet point to a task
|
// Convert a bullet point to a task
|
||||||
|
|
Loading…
Reference in New Issue