td week parses git log for task create/complete events and joins with time.csv for weekly "what got done" reports. Nvim integration moved into dotfiles/nvim/ (symlinked in by new deploy_nvim step) so all three td surfaces live under dotfiles. README covers the deploy pattern and td. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
12 lines
763 B
Lua
12 lines
763 B
Lua
-- td: time-track markdown todos (logic lives in ~/.local/bin/td and td.lua)
|
|
-- Loaded from ~/.config/nvim/lua/mappings.lua via require("td_mappings").
|
|
local td = require("td")
|
|
vim.api.nvim_create_user_command("TdStart", td.start, {})
|
|
vim.api.nvim_create_user_command("TdStop", td.stop, {})
|
|
vim.api.nvim_create_user_command("TdReport", td.report, {})
|
|
vim.api.nvim_create_user_command("TdWeek", td.week, { nargs = "*" })
|
|
vim.keymap.set("n", "<leader>ts", td.start, { desc = "td: start timer on current task" })
|
|
vim.keymap.set("n", "<leader>tp", td.stop, { desc = "td: stop (pause) timer" })
|
|
vim.keymap.set("n", "<leader>tr", td.report, { desc = "td: report floating window" })
|
|
vim.keymap.set("n", "<leader>tw", td.week, { desc = "td: week (tasks from git log)" })
|