From 66c7672a0cda3fa95b49d5bb2b6a0d25b4631794 Mon Sep 17 00:00:00 2001 From: David Chen Date: Tue, 7 Jan 2020 08:38:07 +0800 Subject: [PATCH] updated keybinding config docs --- docs/keybindings/Custom_Keybindings.md | 69 +++++++++++--------------- pkg/gui/keybindings.go | 6 +-- 2 files changed, 32 insertions(+), 43 deletions(-) diff --git a/docs/keybindings/Custom_Keybindings.md b/docs/keybindings/Custom_Keybindings.md index 6c77f0c105b..698b87e65d0 100644 --- a/docs/keybindings/Custom_Keybindings.md +++ b/docs/keybindings/Custom_Keybindings.md @@ -1,6 +1,35 @@ ## Possible keybindings | Put in | You will get | |---------------|----------------| +| `` | F1 | +| `` | F2 | +| `` | F3 | +| `` | F4 | +| `` | F5 | +| `` | F6 | +| `` | F7 | +| `` | F8 | +| `` | F9 | +| `` | F10 | +| `` | F11 | +| `` | F12 | +| `` | Insert | +| `` | Delete | +| `` | Home | +| `` | End | +| `` | Pgup | +| `` | Pgdn | +| `` | ArrowUp | +| `` | ArrowDown | +| `` | ArrowLeft | +| `` | ArrowRight | +| `` | Tab | +| `` | Enter | +| `` | Esc | +| `` | Backspace | +| `` | CtrlSpace | +| `` | CtrlSlash | +| `` | Space | | `` | CtrlA | | `` | CtrlB | | `` | CtrlC | @@ -8,12 +37,9 @@ | `` | CtrlE | | `` | CtrlF | | `` | CtrlG | -| `` | CtrlH | -| `` | CtrlI | | `` | CtrlJ | | `` | CtrlK | | `` | CtrlL | -| `` | CtrlM | | `` | CtrlN | | `` | CtrlO | | `` | CtrlP | @@ -27,44 +53,7 @@ | `` | CtrlX | | `` | CtrlY | | `` | CtrlZ | -| `` | CtrlTilde | -| `` | Ctrl2 | -| `` | Ctrl3 | | `` | Ctrl4 | | `` | Ctrl5 | | `` | Ctrl6 | -| `` | Ctrl7 | | `` | Ctrl8 | -| `` | CtrlSpace | -| `` | CtrlBackslash | -| `` | CtrlLsqBracket | -| `` | CtrlRsqBracket | -| `` | CtrlSlash | -| `` | CtrlUnderscore | -| `` | Backspace | -| `` | Tab | -| `` | Enter | -| `` | Esc | -| `` | Space | -| `` | F1 | -| `` | F2 | -| `` | F3 | -| `` | F4 | -| `` | F5 | -| `` | F6 | -| `` | F7 | -| `` | F8 | -| `` | F9 | -| `` | F10 | -| `` | F11 | -| `` | F12 | -| `` | Insert | -| `` | Delete | -| `` | Home | -| `` | End | -| `` | Pgup | -| `` | Pgdn | -| `` | ArrowUp | -| `` | ArrowDown | -| `` | ArrowLeft | -| `` | ArrowRight | diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 649b69c595b..50cec5afdaa 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -52,7 +52,7 @@ var keyMapReversed = map[gocui.Key]string{ gocui.KeyEsc: "esc", // ctrl+[, ctrl+3 gocui.KeyBackspace: "backspace", // ctrl+h gocui.KeyCtrlSpace: "ctrl+space", // ctrl+~, ctrl+2 - gocui.KeyCtrlSlash: "ctrl+/", + gocui.KeyCtrlSlash: "ctrl+/", // ctrl+_ gocui.KeySpace: "space", gocui.KeyCtrlA: "ctrl+a", gocui.KeyCtrlB: "ctrl+b", @@ -77,8 +77,8 @@ var keyMapReversed = map[gocui.Key]string{ gocui.KeyCtrlX: "ctrl+x", gocui.KeyCtrlY: "ctrl+y", gocui.KeyCtrlZ: "ctrl+z", - gocui.KeyCtrl4: "ctrl+4", - gocui.KeyCtrl5: "ctrl+5", + gocui.KeyCtrl4: "ctrl+4", // ctrl+\ + gocui.KeyCtrl5: "ctrl+5", // ctrl+] gocui.KeyCtrl6: "ctrl+6", gocui.KeyCtrl8: "ctrl+8", }