#meta

```space-lua
-- priority: 10

-- Slash command /todo basée sur la commande /task initiale
slashCommand.define {
  name = "todo",
  run = function()
    local line = editor.getCurrentLine()
    local ws, prefix, rest = string.match(line.textWithCursor, "^(%s*)([%-%*]?)%s*(.+)$")
    editor.replaceRange(line.from, line.to, ws .. "* [TODO] [[" .. rest, true)
  end
}
```


```space-lua
-- priority: 10

-- Slash command /todo basée sur la commande /task initiale
slashCommand.define {
  name = "event",
  run = function()
    local line = editor.getCurrentLine()
    local ws, prefix, rest = string.match(line.textWithCursor, "^(%s*)([%-%*]?)%s*(.+)$")
    editor.replaceRange(line.from, line.to, ws .. "* [PLANNED] [[" .. rest, true)
  end
}
```
