From c4c8648cc716d40f5f6558b5f2bf375d8f9a36d9 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 24 May 2019 12:45:48 -0400 Subject: Change ex command to C-x when using terminal --- config/bindings.go | 4 ++-- doc/aerc-tutorial.7.scd | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/config/bindings.go b/config/bindings.go index a9a57c5..e74624c 100644 --- a/config/bindings.go +++ b/config/bindings.go @@ -266,8 +266,8 @@ func init() { keyNames["c-u"] = KeyStroke{tcell.KeyCtrlU, 0} keyNames["c-v"] = KeyStroke{tcell.KeyCtrlV, 0} keyNames["c-w"] = KeyStroke{tcell.KeyCtrlW, 0} - keyNames["c-x"] = KeyStroke{tcell.KeyCtrlX, 0} - keyNames["c-y"] = KeyStroke{tcell.KeyCtrlY, 0} + keyNames["c-x"] = KeyStroke{tcell.KeyCtrlX, rune(tcell.KeyCAN)} + keyNames["c-y"] = KeyStroke{tcell.KeyCtrlY, 0} // TODO: runes for the rest keyNames["c-z"] = KeyStroke{tcell.KeyCtrlZ, 0} keyNames["c-]"] = KeyStroke{tcell.KeyCtrlLeftSq, 0} keyNames["c-\\"] = KeyStroke{tcell.KeyCtrlBackslash, 0} diff --git a/doc/aerc-tutorial.7.scd b/doc/aerc-tutorial.7.scd index ef857da..15f7bb3 100644 --- a/doc/aerc-tutorial.7.scd +++ b/doc/aerc-tutorial.7.scd @@ -88,6 +88,9 @@ email, adding a blank line between the email's headers and body. The message review screen is shown next. You have a chance now to revise the email before it's sent. Press *y* to send the email if it looks good. +*Note*: when using the terminal in the message view, you can summon aerc's ex +command line by using **. ':' is sent to the editor. + # USING THE TERMINAL aerc comes with an embedded terminal, which you've already used to view and edit -- cgit 1.4.1-2-gfad0