(key: string)
| 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 |
no test coverage detected