pending.nvim/lua/pending
Barrett Ruth fbeb0e2bee
feat(buffer): open as bottom-drawer split like fugitive (#23)
* feat(buffer): open as bottom-drawer split like fugitive

Problem: :Pending replaced the current buffer, making it impossible to
view tasks alongside the file being edited. No way to close the drawer
without :q or switching buffers manually.

Solution: open the task buffer in a botright horizontal split instead of
replacing the current buffer. Track the drawer window ID so re-opening
focuses it rather than creating a second split. Set winfixheight so the
drawer keeps its height when other windows open or close. Add q/<Esc>
mappings to close the drawer, and a WinClosed autocmd to clear the
tracked window ID when the user closes it manually. Add drawer_height
config option (default 15).

* fix(buffer): default to natural split height like fugitive

Problem: hardcoded drawer_height=15 was too small and diverged from
fugitive's model. Fugitive issues a plain botright split and lets Vim's
own split rules (equalalways, winheight) divide the available space.

Solution: remove the default height so the split sizes naturally. Only
call nvim_win_set_height when the user sets drawer_height to a positive
value, preserving the opt-in customization path.
2026-02-25 09:34:17 -05:00
..
sync fix: resolve remaining LuaLS type errors 2026-02-24 18:50:28 -05:00
buffer.lua feat(buffer): open as bottom-drawer split like fugitive (#23) 2026-02-25 09:34:17 -05:00
config.lua feat(buffer): open as bottom-drawer split like fugitive (#23) 2026-02-25 09:34:17 -05:00
diff.lua refactor: adopt markdown-style checkbox buffer format (#20) 2026-02-24 23:21:55 -05:00
health.lua fix(health): remove superfluous config info lines 2026-02-24 18:56:12 -05:00
init.lua feat(buffer): open as bottom-drawer split like fugitive (#23) 2026-02-25 09:34:17 -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 refactor: adopt markdown-style checkbox buffer format (#20) 2026-02-24 23:21:55 -05:00