Update todo formatting

This commit is contained in:
Corey Johnson 2025-07-10 14:58:24 -07:00
parent 785d90e140
commit 6f98a458b5
2 changed files with 8 additions and 8 deletions

View File

@ -157,17 +157,17 @@ const getDefaultDocument = () => {
return `
# Today
- [ ] Sample task with a due date @${today}
- [ ] You can use a #tag to filter todos
- [ ] A sub task! Create nested todos by indenting with <tab>
- [x] Complete a todo by pressing <opt+k>
- [ ] You can also set a time estimate for todos (press the play button to start) 10m
[ ] Sample task with a due date @${today}
[ ] You can use a #tag to filter todos
[ ] A sub task! Create nested todos by indenting with <tab>
[x] Complete a todo by pressing <opt+k>
[ ] You can also set a time estimate for todos (press the play button to start) 10m
# This week
- [ ] Another todo with a due date @${future}
[ ] Another todo with a due date @${future}
# Later
- [ ] I use later as a junk drawer for todos I don't want to forget
[ ] I use later as a junk drawer for todos I don't want to forget
`.trim()
}

View File

@ -24,7 +24,7 @@ export const buildKeyBindings = (
const line = state.doc.lineAt(head)
if (line.text.trim() === "") {
const newTodo = "- [ ] "
const newTodo = "[ ] "
view.dispatch({
changes: { from: line.from, to: line.to, insert: newTodo },
selection: { anchor: line.to + newTodo.length },