feat(pulse): map hjkl to navigate as help shows (#3699)

* feat(pulse): map hjkl to navigate as help shows

* fix(pulse): fix some key binding descriptions
mine
Tatsuya Kyushima 2025-12-02 01:46:40 +09:00 committed by GitHub
parent e5cdf04e51
commit 39a1001fe9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 3 deletions

View File

@ -275,10 +275,14 @@ func (p *Pulse) bindKeys() {
tcell.KeyEnter: ui.NewKeyAction("Goto", p.enterCmd, true), tcell.KeyEnter: ui.NewKeyAction("Goto", p.enterCmd, true),
tcell.KeyTab: ui.NewKeyAction("Next", p.nextFocusCmd(dirLeft), true), tcell.KeyTab: ui.NewKeyAction("Next", p.nextFocusCmd(dirLeft), true),
tcell.KeyBacktab: ui.NewKeyAction("Prev", p.nextFocusCmd(dirRight), true), tcell.KeyBacktab: ui.NewKeyAction("Prev", p.nextFocusCmd(dirRight), true),
tcell.KeyDown: ui.NewKeyAction("Next", p.nextFocusCmd(dirDown), false), tcell.KeyDown: ui.NewKeyAction("Down", p.nextFocusCmd(dirDown), false),
tcell.KeyUp: ui.NewKeyAction("Prev", p.nextFocusCmd(dirUp), false), tcell.KeyUp: ui.NewKeyAction("Up", p.nextFocusCmd(dirUp), false),
tcell.KeyRight: ui.NewKeyAction("Next", p.nextFocusCmd(dirLeft), false), tcell.KeyRight: ui.NewKeyAction("Next", p.nextFocusCmd(dirLeft), false),
tcell.KeyLeft: ui.NewKeyAction("Next", p.nextFocusCmd(dirRight), false), tcell.KeyLeft: ui.NewKeyAction("Prev", p.nextFocusCmd(dirRight), false),
ui.KeyH: ui.NewKeyAction("Prev", p.nextFocusCmd(dirRight), false),
ui.KeyJ: ui.NewKeyAction("Down", p.nextFocusCmd(dirDown), false),
ui.KeyK: ui.NewKeyAction("Up", p.nextFocusCmd(dirUp), false),
ui.KeyL: ui.NewKeyAction("Next", p.nextFocusCmd(dirLeft), false),
})) }))
} }