pending.nvim/lua/pending
Barrett Ruth 3919e3f88f fix(buffer): replace indentexpr with dedicated o/O mappings
Problem: setup_indentexpr always returned 0 because no task line
starts with whitespace (the /ID/ prefix begins with /), so the
return 2 branch was dead code. Pressing o or O opened a blank line
at column 0 with no ID prefix, which the diff parser cannot
recognise as a task.

Solution: remove setup_indentexpr and M.get_indent() entirely; add
M.open_line(above) which inserts a two-space stub line and enters
insert mode at the end so the user types directly into the new task
body. The diff layer already handles lines matching ^  .+ as new
tasks. Add o and O buffer-local mappings in init.lua.
2026-02-24 19:52:48 -05:00
..
sync fix: resolve remaining LuaLS type errors 2026-02-24 18:50:28 -05:00
buffer.lua fix(buffer): replace indentexpr with dedicated o/O mappings 2026-02-24 19:52:48 -05:00
config.lua feat: overdue highlighting, relative dates, undo write, buffer mappings (#1) 2026-02-24 18:33:07 -05:00
diff.lua feat: overdue highlighting, relative dates, undo write, buffer mappings (#1) 2026-02-24 18:33:07 -05:00
health.lua fix(health): remove superfluous config info lines 2026-02-24 18:56:12 -05:00
init.lua fix(buffer): replace indentexpr with dedicated o/O mappings 2026-02-24 19:52:48 -05:00
parse.lua fix: resolve remaining LuaLS type errors 2026-02-24 18:50:28 -05:00
store.lua feat(store): add snapshot() and atomic json write 2026-02-24 18:44:13 -05:00
views.lua feat: overdue highlighting, relative dates, undo write, buffer mappings (#1) 2026-02-24 18:33:07 -05:00