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:
parent
760d2acdac
commit
12c22c4226
1 changed files with 2 additions and 2 deletions
|
|
@ -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)',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue