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

Function arrowRun

packages/app-core/src/lib/cm-vim-default-keymap.test.ts:88–92  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

86 }
87
88 const arrowRun = (key: string): NonNullable<KeyBinding['run']> => {
89 const binding = vimAwareDefaultKeymap(true).find((b) => b.key === key)
90 if (!binding?.run) throw new Error(`no run for ${key}`)
91 return binding.run
92 }
93
94 it('defers in normal mode (so the arrow becomes a Vim motion)', () => {
95 const view = mountVim('hello world') // codemirror-vim starts in normal mode

Callers 1

Calls 1

vimAwareDefaultKeymapFunction · 0.90

Tested by

no test coverage detected