fix(tui): reserve home and end for navigation (#40123)
Co-authored-by: Simon Klee <hello@simonklee.dk>
This commit is contained in:
parent
634b9b21dd
commit
adbd22833c
2 changed files with 15 additions and 2 deletions
|
|
@ -97,6 +97,19 @@ test("resolves message navigation defaults", () => {
|
|||
expect(config.keybinds.get("session.messages_last_user")).toMatchObject([{ key: "alt+end" }])
|
||||
})
|
||||
|
||||
test("reserves home and end for navigation", () => {
|
||||
const config = resolve({}, { terminalSuspend: true })
|
||||
|
||||
expect(config.keybinds.get("input.buffer.home")).toEqual([])
|
||||
expect(config.keybinds.get("input.buffer.end")).toEqual([])
|
||||
expect(config.keybinds.get("input.select.buffer.home")).toMatchObject([{ key: "shift+home" }])
|
||||
expect(config.keybinds.get("input.select.buffer.end")).toMatchObject([{ key: "shift+end" }])
|
||||
expect(config.keybinds.get("input.line.home")).toMatchObject([{ key: "ctrl+a" }])
|
||||
expect(config.keybinds.get("input.line.end")).toMatchObject([{ key: "ctrl+e" }])
|
||||
expect(config.keybinds.get("input.visual.line.home")).toMatchObject([{ key: "alt+a" }])
|
||||
expect(config.keybinds.get("input.visual.line.end")).toMatchObject([{ key: "alt+e" }])
|
||||
})
|
||||
|
||||
test("opens the subagent picker with down", () => {
|
||||
const config = resolve({}, { terminalSuspend: true })
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue