Commit Graph

11 Commits

Author SHA1 Message Date
QQ ae1d2146c6 fix: replace toggleterm split with native rightbelow terminal
Root cause: toggleterm uses botright split (tabpage-level) and
find_open_windows() jumps to existing terminals across tabpages,
destroying window layouts. persist_size=false in Terminal opts was
never consumed by toggleterm's ui.get_size().

Changes:
- Replace toggleterm Terminal cache with own {bufnr, winid, job_id, cmd}
- Use rightbelow {size}split/vsplit (current-window-local)
- Three-path open: hide (close win), restore (assign buf to new split), create
- winfixwidth/winfixheight to protect terminal window size
- bufhidden=hide to keep process alive on window close
- <C-\><C-\> hide keymap on terminal buffers
- config.debug flag for layout diagnostics
- pcall toggleterm setup(persist_size=false) as safety net
2026-06-17 15:10:34 +08:00
QQ a3dfc7e01c update 2026-06-17 15:01:48 +08:00
QQ 0f036b6b58 feat: configurable keymaps + commands, README with examples 2026-06-11 21:13:58 +08:00
QQ a169b3139c fix: <C-\><C-\> toggles in ALL terminals, no Esc override needed 2026-06-11 21:07:21 +08:00
QQ a26dc1a51a fix: only bind Esc→normal in shell, not TUI programs (Reasonix/lazygit) 2026-06-11 21:01:03 +08:00
QQ 23984f2756 fix: map <Esc> to <C-\><C-n> in terminal buffers so Esc exits to normal mode 2026-06-11 20:56:56 +08:00
QQ 977384ccda fix: Terminal hidden=true — keep process alive across toggle 2026-06-11 20:53:27 +08:00
QQ bf7bd9fe42 fix: reuse terminal instance after hide (is_open returns false on toggle) 2026-06-11 20:09:25 +08:00
QQ 898ab9caaa feat: expose size config via M.setup({size={horizontal,vertical}}) 2026-06-11 20:00:05 +08:00
QQ 8981eebd1a fix: remove custom size, use toggleterm defaults 2026-06-11 19:55:09 +08:00
QQ 2611de78f2 init: QQdock.nvim — persistent adaptive terminal dock 2026-06-11 19:16:35 +08:00