Closed
Description
Describe the bug
Using the context-aware meta return functionality (<leader><CR>
) clears the values ([-]
, [X]
) of previous checkboxes in the same hierarchy.
Steps to reproduce
Create a headline and checkbox; e.g.:
* headline
- [X] checkbox 1
and execute the meta-return:
* headline
- [ ] checkbox 1
- [ ]
Curiously, this seems to not affect some checkbox states:
* headline
- [X] checkbox 1
- [ ] checkbox 2
- [X] checkbox 3
and pressing <leader><CR>
:
* headline
- [ ] checkbox 1
- [ ] checkbox 2
- [X] checkbox 3
- [ ]
Expected behavior
Ideally the meta return would create a new (blank) checkbox and leave the previous values unaffected.
Emacs functionality
No response
Minimal init.lua
return {
"nvim-orgmode/orgmode",
event = "VeryLazy",
ft = { "org" },
config = function()
-- Setup orgmode
require("orgmode").setup({
org_agenda_files = "~/orgfiles/**/*",
org_default_notes_file = "~/orgfiles/refile.org",
mappings = {
org = {
org_toggle_checkbox = "<leader>ca",
-- NOTE: this keymap is not the culprit
},
},
})
end,
}
Screenshots and recordings
No response
OS / Distro
Arch Linux
Neovim version/commit
0.10.2
Additional context
No response