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

Method moveRowUp

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

Vim NORMAL `k`: body row → … → header → past the header leaves upward.

(row: number, col: number)

Source from the content-addressed store, hash-verified

974
975 /** Vim NORMAL `k`: body row → … → header → past the header leaves upward. */
976 private moveRowUp(row: number, col: number): void {
977 if (row === -1) {
978 this.exitToEditor('before')
979 return
980 }
981 this.focusCellAtOffset(row === 0 ? -1 : row - 1, col, this.cursorOffset)
982 }
983
984 /** Switch the focused cell into INSERT mode at a source offset: editable,
985 * native caret, block cursor removed. Don't re-focus — that re-fires the

Callers 1

onCellKeydownMethod · 0.95

Calls 2

exitToEditorMethod · 0.95
focusCellAtOffsetMethod · 0.95

Tested by

no test coverage detected