Add basic readline-like support for using control-left and control-right to scroll horizontally by one word at a time

This commit is contained in:
David Dworken
2024-02-19 13:54:42 -08:00
parent 8c4ede4186
commit 5e87aa9eec
3 changed files with 44 additions and 2 deletions

View File

@@ -2092,7 +2092,7 @@ func testTui_general(t *testing.T, onlineStatus OnlineStatus) {
// Test jumping around the cursor via shortcuts
out = captureTerminalOutput(t, tester, []string{
"hishtory SPACE tquery ENTER",
"foo C-a AAA C-e ZZZ",
"foo C-a AAA SPACE C-e SPACE ZZZ",
})
out = strings.Split(stripTuiCommandPrefix(t, out), "\n")[0]
testutils.CompareGoldens(t, out, "TestTui-JumpCursor")