(input: TuiKeybind.KeybindOverrides = {})
| 8 | import { getOpencodeModeStack, OPENCODE_BASE_MODE, OpencodeKeymapProvider, registerOpencodeKeymap } from "../src/keymap" |
| 9 | |
| 10 | function createResolvedKeymapConfig(input: TuiKeybind.KeybindOverrides = {}) { |
| 11 | const keybinds = TuiKeybind.parse(input) |
| 12 | return { |
| 13 | keybinds: createBindingLookup(TuiKeybind.toBindingConfig(keybinds), { |
| 14 | commandMap: TuiKeybind.CommandMap, |
| 15 | bindingDefaults: TuiKeybind.bindingDefaults(), |
| 16 | }), |
| 17 | leader_timeout: 2000, |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | test("legacy page key aliases compile as page keys", async () => { |
| 22 | const sequences: Record<string, string[][]> = {} |
no test coverage detected