MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / moveRowDown

Method moveRowDown

packages/app-core/src/lib/cm-table.ts:966–973  ·  view source on GitHub ↗

Vim NORMAL `j`: header → first body row → … → past the last row leaves the * table downward, keeping the column offset (clamped).

(row: number, col: number)

Source from the content-addressed store, hash-verified

964 /** Vim NORMAL `j`: header → first body row → … → past the last row leaves the
965 * table downward, keeping the column offset (clamped). */
966 private moveRowDown(row: number, col: number): void {
967 const target = row === -1 ? 0 : row + 1
968 if (target >= this.model.rows.length) {
969 this.exitToEditor('after')
970 return
971 }
972 this.focusCellAtOffset(target, col, this.cursorOffset)
973 }
974
975 /** Vim NORMAL `k`: body row → … → header → past the header leaves upward. */
976 private moveRowUp(row: number, col: number): void {

Callers 1

onCellKeydownMethod · 0.95

Calls 2

exitToEditorMethod · 0.95
focusCellAtOffsetMethod · 0.95

Tested by

no test coverage detected