fix(init): remap date prompt from d to D

Problem: mapping d for the date prompt intercepts dd before Vim can
recognize it as a motion, so dd never deletes a line.

Solution: move the date prompt to D, restoring full d-operator
behaviour (dd, dw, d$, etc.) and updating the help popup to match.
This commit is contained in:
Barrett Ruth 2026-02-24 18:54:58 -05:00 committed by Barrett Ruth
parent bef6c4ca17
commit f0b58df317

View file

@ -55,7 +55,7 @@ function M._setup_buf_mappings(bufnr)
vim.keymap.set('n', '!', function()
M.toggle_priority()
end, opts)
vim.keymap.set('n', 'd', function()
vim.keymap.set('n', 'D', function()
M.prompt_date()
end, opts)
vim.keymap.set('n', 'U', function()
@ -294,7 +294,7 @@ function M.show_help()
'<CR> Toggle complete/uncomplete',
'<Tab> Switch category/priority view',
'! Toggle priority',
'd Set due date',
'D Set due date',
'U Undo last write',
'o / O Add new task line',
'dd Delete task line (on :w)',