Skip to content

Commit 6cf1631

Browse files
committed
allow argument to tasks command
1 parent 46b9f44 commit 6cf1631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/obsidian/commands/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,6 @@ M.register("ObsidianDebug", { opts = { nargs = 0, desc = "Log some information f
192192

193193
M.register("ObsidianTOC", { opts = { nargs = 0, desc = "Load the table of contents into a picker" } })
194194
-- register the tasks command, the task should accept one argument that can be done or todo
195-
M.register("ObsidianTasks", { opts = { nargs = 0, desc = "List all tasks" } })
195+
M.register("ObsidianTasks", { opts = { nargs = "?", desc = "List all tasks" } })
196196

197197
return M

0 commit comments

Comments
 (0)