From f0b58df31779a4729465d60c654a2da746b1cc3b Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 24 Feb 2026 18:54:58 -0500 Subject: [PATCH] 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. --- lua/pending/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/pending/init.lua b/lua/pending/init.lua index 5db6a0c..b6d9988 100644 --- a/lua/pending/init.lua +++ b/lua/pending/init.lua @@ -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() ' Toggle complete/uncomplete', ' 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)',