Skip to content

Commit 6873cce

Browse files
committed
remove todos
1 parent 62e3a57 commit 6873cce

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

lua/obsidian/client.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2083,9 +2083,6 @@ end
20832083
---@field description string The text of the line where the task was found.
20842084
---@field status string The status of the task.
20852085

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
20892086
---@return obsidian.Task[]
20902087
Client.find_tasks = function(self)
20912088
local openTasks = search.search(self.dir, "- \\[(.)\\]", search.SearchOpts.default())

lua/obsidian/commands/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ M.register(
191191
M.register("ObsidianDebug", { opts = { nargs = 0, desc = "Log some information for debugging" } })
192192

193193
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+
195195
M.register("ObsidianTasks", { opts = { nargs = "?", desc = "List all tasks" } })
196196

197197
return M

lua/obsidian/commands/tasks.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ local function showTasks(client, data)
4848
local tasks = client:find_tasks()
4949
local toShow = {}
5050

51-
-- TODO: Hide filename, show only the task
5251
for _, task in ipairs(tasks) do
5352
local tStatus = checkboxes[task.status]
5453
if tStatus and (not filter or tStatus.name == filter) then

0 commit comments

Comments
 (0)