feat(tui): add diff viewer keybind (#33365)

This commit is contained in:
Victor Navarro 2026-06-24 12:07:23 +02:00 committed by GitHub
commit 05f335ce62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 0 deletions

View file

@ -472,6 +472,7 @@ it.instance("resolves keybind lookup from canonical keybinds", () =>
keybinds: {
leader: { key: { name: "g", ctrl: true } },
command_list: "alt+p",
diff_open: "ctrl+j",
which_key_toggle: "alt+k",
editor_open: "ctrl+e",
"prompt.autocomplete.next": "ctrl+j",
@ -487,6 +488,7 @@ it.instance("resolves keybind lookup from canonical keybinds", () =>
expect(config.keybinds.get("leader")?.[0]?.key).toEqual({ name: "g", ctrl: true })
expect(config.leader_timeout).toBe(1234)
expect(config.keybinds.get("command.palette.show")?.[0]?.key).toBe("alt+p")
expect(config.keybinds.get("diff.open")?.[0]?.key).toBe("ctrl+j")
expect(config.keybinds.get("session.new")?.[0]?.key).toBe("<leader>n")
expect(config.keybinds.get("which-key.toggle")?.[0]?.key).toBe("alt+k")
expect(config.keybinds.get("which-key.layout.toggle")?.[0]?.key).toBe("ctrl+alt+shift+k")