Skip to content

Commit

Permalink
[dev] Added TWShowDueOrScheduledCurrent and TWShowDueOrScheduled
Browse files Browse the repository at this point in the history
  • Loading branch information
huantrinh1802 committed Sep 30, 2024
1 parent 2e9a755 commit 1d2e3b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/m_taskwarrior_d/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,13 @@ function M.setup(opts)
print("No scratch window")
end
end, {})
vim.api.nvim_create_user_command("TWShowDueOrScheduled", function()
M.utils.render_virtual_due_dates()
end, {})
vim.api.nvim_create_user_command("TWShowDueOrScheduledCurrent", function()
local _, line_number = M.utils.get_line()
M.utils.render_virtual_due_dates(line_number - 1, line_number)
end, {})
end

return M

0 comments on commit 1d2e3b5

Please sign in to comment.