Added
- Embedded table: click-to-select cell — clicking a cell in the embedded table widget now selects that cell in table-nav mode. Works both when table-nav is already active (updates active cell) and when clicking from outside the table (enters table-nav at the clicked cell). The click handler is registered on the widget DOM via a module-level
setTableWidgetCellClickHandlercallback, coordinated betweentable-render-widget.tsandtable-nav-controller.ts. (#120)- Plugin:
src/vim/table-render-widget.ts(setTableWidgetCellClickHandler, click handler intoDOMfor embedded mode) - Plugin:
src/vim/table-nav-controller.ts(constructor registers callback;pendingClickCellfield for deferred cell selection on table-nav entry)
- Plugin:
Fixed
- Embedded table: click-outside handler exits table-nav during modal interaction — the capture-phase
mousedownlistener now checks for.modal-containerin the DOM before callingexitTable(). Previously, opening a modal (command palette, picker, settings) while in table-nav mode caused the click-outside handler to fire on the modal overlay, exiting table-nav and showing raw markdown. (#120)- Plugin:
src/vim/table-nav-controller.ts(installClickOutsideHandler— modal container check +target.closest('.modal-container')guard)
- Plugin:
- Embedded table: header-only tables (no data rows) no longer enter table-nav — tables with only a header and separator row (e.g.,
| H |\n|---|) are now skipped bycheckEntry(). Previously, entering such a table activated table-nav with only the header row navigable, which was confusing. (#121)- Plugin:
src/vim/table-nav-controller.ts(checkEntry—hasDataRowcheck beforeenterTableNav)
- Plugin:
Tests
- 1 regression test for click-to-select in
test/specs/table-cell-vim-mode.e2e.ts: clicking a cell updates active cell highlight to clicked position (verified to fail without handler) - 1 regression test for header-only table in
test/specs/table-cell-vim-mode.e2e.ts: header-only table does not enter table-nav (verified to fail without data-row check) - 1 regression test for click-outside table in
test/specs/table-cell-vim-mode.e2e.ts: cursor leaving table exits table-nav
Full Changelog: 0.108.0...0.109.0