|
|
@@ -428,9 +428,7 @@ test("resolves semantic keymap sections", async () => {
|
|
|
const config = await getTuiConfig(tmp.path)
|
|
|
expect(config.keymap.sections.global.find((binding) => binding.cmd === "command.palette.show")?.key).toBe("alt+p")
|
|
|
expect(config.keymap.sections.global.find((binding) => binding.cmd === "session.new")?.key).toBe("<leader>n")
|
|
|
- expect(config.keymap.sections.which_key.find((binding) => binding.cmd === "tui-which-key.toggle")?.key).toBe(
|
|
|
- "alt+k",
|
|
|
- )
|
|
|
+ expect(config.keymap.sections.which_key.find((binding) => binding.cmd === "tui-which-key.toggle")?.key).toBe("alt+k")
|
|
|
expect(config.keymap.sections.which_key.find((binding) => binding.cmd === "tui-which-key.layout.toggle")?.key).toBe(
|
|
|
"ctrl+alt+shift+k",
|
|
|
)
|
|
|
@@ -441,9 +439,11 @@ test("resolves semantic keymap sections", async () => {
|
|
|
"ctrl+alt+right,ctrl+alt+]",
|
|
|
)
|
|
|
expect(
|
|
|
- (config.keymap.sections.which_key.find((binding) => binding.cmd === "tui-which-key.toggle") as
|
|
|
- | { group?: unknown }
|
|
|
- | undefined)?.group,
|
|
|
+ (
|
|
|
+ config.keymap.sections.which_key.find((binding) => binding.cmd === "tui-which-key.toggle") as
|
|
|
+ | { group?: unknown }
|
|
|
+ | undefined
|
|
|
+ )?.group,
|
|
|
).toBe("System")
|
|
|
expect(config.keymap.sections.prompt.find((binding) => binding.cmd === "prompt.editor")?.key).toBe("ctrl+e")
|
|
|
expect(config.keymap.sections.autocomplete.find((binding) => binding.cmd === "prompt.autocomplete.next")?.key).toBe(
|