From 39200b598d3cdc24026dec1690371f2dc2247e9f Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Tue, 30 Dec 2025 20:21:27 +0800 Subject: [PATCH 1/2] fix: ctrl-i don't work after fec7e9ce tcell now can distinguish them https://github.com/phanen/tcell/commit/74fd4877e82c639eba6ca0b7c9c94b6a39c3d837 I always use c-i as tab key, to resume the behavior, this commit allow: togglePanel: --- pkg/config/keynames.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/config/keynames.go b/pkg/config/keynames.go index bb9756b4387..1eff0153724 100644 --- a/pkg/config/keynames.go +++ b/pkg/config/keynames.go @@ -52,9 +52,12 @@ var LabelByKey = map[gocui.Key]string{ gocui.KeyCtrlE: "", gocui.KeyCtrlF: "", gocui.KeyCtrlG: "", + gocui.KeyCtrlH: "", + gocui.KeyCtrlI: "", gocui.KeyCtrlJ: "", gocui.KeyCtrlK: "", gocui.KeyCtrlL: "", + gocui.KeyCtrlM: "", gocui.KeyCtrlN: "", gocui.KeyCtrlO: "", gocui.KeyCtrlP: "", From efbc4ed03316e1df98309a62c94354f91944b3e5 Mon Sep 17 00:00:00 2001 From: phanium <91544758+phanen@users.noreply.github.com> Date: Tue, 30 Dec 2025 20:21:27 +0800 Subject: [PATCH 2/2] fix: missing readline keybind in commit editor ctrl-b/ctrl-f commit here: 6422b399e73967f012c29b05c9a26fc9e852711a Didn't port to gocui, disappear in bb816d7001f78483059a58ea60acb68c80f56959 Add ctrl-h because not it's no longer recgnoized as backspace since (tcell distinguish them). --- vendor/github.com/jesseduffield/gocui/edit.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vendor/github.com/jesseduffield/gocui/edit.go b/vendor/github.com/jesseduffield/gocui/edit.go index 44601805a84..ac1827aea9f 100644 --- a/vendor/github.com/jesseduffield/gocui/edit.go +++ b/vendor/github.com/jesseduffield/gocui/edit.go @@ -28,7 +28,7 @@ func SimpleEditor(v *View, key Key, ch rune, mod Modifier) bool { case (key == KeyBackspace || key == KeyBackspace2) && (mod&ModAlt) != 0, key == KeyCtrlW: v.TextArea.BackSpaceWord() - case key == KeyBackspace || key == KeyBackspace2: + case key == KeyBackspace || key == KeyBackspace2 || key == KeyCtrlH: v.TextArea.BackSpaceChar() case key == KeyCtrlD || key == KeyDelete: v.TextArea.DeleteChar() @@ -38,11 +38,11 @@ func SimpleEditor(v *View, key Key, ch rune, mod Modifier) bool { v.TextArea.MoveCursorUp() case (key == KeyArrowLeft || ch == 'b') && (mod&ModAlt) != 0: v.TextArea.MoveLeftWord() - case key == KeyArrowLeft: + case key == KeyArrowLeft || key == KeyCtrlB: v.TextArea.MoveCursorLeft() case (key == KeyArrowRight || ch == 'f') && (mod&ModAlt) != 0: v.TextArea.MoveRightWord() - case key == KeyArrowRight: + case key == KeyArrowRight || key == KeyCtrlF: v.TextArea.MoveCursorRight() case key == KeyEnter: v.TextArea.TypeCharacter("\n")