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

Function isEditorInsertMode

packages/app-core/src/lib/vim-nav.ts:96–100  ·  view source on GitHub ↗
(view: EditorView | null, vimMode: boolean)

Source from the content-addressed store, hash-verified

94// ---------------------------------------------------------------------------
95
96export function isEditorInsertMode(view: EditorView | null, vimMode: boolean): boolean {
97 if (!view || !vimMode) return false
98 const cm = getCM(view)
99 return cm?.state.vim?.insertMode === true
100}
101
102/**
103 * True when codemirror-vim is mid-command, waiting for a character or motion

Callers 2

handlerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected