File tree Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Expand file tree Collapse file tree 3 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -2083,9 +2083,6 @@ end
2083
2083
--- @field description string The text of the line where the task was found.
2084
2084
--- @field status string The status of the task.
2085
2085
2086
- -- todo: support for task status
2087
- -- todo: make it async
2088
- -- todo: can we reuse the search function? move the result parsing to the command
2089
2086
--- @return obsidian.Task[]
2090
2087
Client .find_tasks = function (self )
2091
2088
local openTasks = search .search (self .dir , " - \\ [(.)\\ ]" , search .SearchOpts .default ())
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ M.register(
191
191
M .register (" ObsidianDebug" , { opts = { nargs = 0 , desc = " Log some information for debugging" } })
192
192
193
193
M .register (" ObsidianTOC" , { opts = { nargs = 0 , desc = " Load the table of contents into a picker" } })
194
- -- register the tasks command, the task should accept one argument that can be done or todo
194
+
195
195
M .register (" ObsidianTasks" , { opts = { nargs = " ?" , desc = " List all tasks" } })
196
196
197
197
return M
Original file line number Diff line number Diff line change @@ -48,7 +48,6 @@ local function showTasks(client, data)
48
48
local tasks = client :find_tasks ()
49
49
local toShow = {}
50
50
51
- -- TODO: Hide filename, show only the task
52
51
for _ , task in ipairs (tasks ) do
53
52
local tStatus = checkboxes [task .status ]
54
53
if tStatus and (not filter or tStatus .name == filter ) then
You can’t perform that action at this time.
0 commit comments