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
bef6c4ca17
commit
f0b58df317
1 changed files with 2 additions and 2 deletions
|
|
@ -55,7 +55,7 @@ function M._setup_buf_mappings(bufnr)
|
||||||
vim.keymap.set('n', '!', function()
|
vim.keymap.set('n', '!', function()
|
||||||
M.toggle_priority()
|
M.toggle_priority()
|
||||||
end, opts)
|
end, opts)
|
||||||
vim.keymap.set('n', 'd', function()
|
vim.keymap.set('n', 'D', function()
|
||||||
M.prompt_date()
|
M.prompt_date()
|
||||||
end, opts)
|
end, opts)
|
||||||
vim.keymap.set('n', 'U', function()
|
vim.keymap.set('n', 'U', function()
|
||||||
|
|
@ -294,7 +294,7 @@ function M.show_help()
|
||||||
'<CR> Toggle complete/uncomplete',
|
'<CR> Toggle complete/uncomplete',
|
||||||
'<Tab> Switch category/priority view',
|
'<Tab> Switch category/priority view',
|
||||||
'! Toggle priority',
|
'! Toggle priority',
|
||||||
'd Set due date',
|
'D Set due date',
|
||||||
'U Undo last write',
|
'U Undo last write',
|
||||||
'o / O Add new task line',
|
'o / O Add new task line',
|
||||||
'dd Delete task line (on :w)',
|
'dd Delete task line (on :w)',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue