Update todo formatting
This commit is contained in:
parent
785d90e140
commit
6f98a458b5
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user