Skip to content

Commit

Permalink
updated keybinding config docs
Browse files Browse the repository at this point in the history
  • Loading branch information
David Chen committed Jan 7, 2020
1 parent 983379d commit 66c7672
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 43 deletions.
69 changes: 29 additions & 40 deletions docs/keybindings/Custom_Keybindings.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,45 @@
## Possible keybindings
| Put in | You will get |
|---------------|----------------|
| `<f1>` | F1 |
| `<f2>` | F2 |
| `<f3>` | F3 |
| `<f4>` | F4 |
| `<f5>` | F5 |
| `<f6>` | F6 |
| `<f7>` | F7 |
| `<f8>` | F8 |
| `<f9>` | F9 |
| `<f10>` | F10 |
| `<f11>` | F11 |
| `<f12>` | F12 |
| `<insert>` | Insert |
| `<delete>` | Delete |
| `<home>` | Home |
| `<end>` | End |
| `<pgup>` | Pgup |
| `<pgdown>` | Pgdn |
| `<up>` | ArrowUp |
| `<down>` | ArrowDown |
| `<left>` | ArrowLeft |
| `<right>` | ArrowRight |
| `<tab>` | Tab |
| `<enter>` | Enter |
| `<esc>` | Esc |
| `<backspace>` | Backspace |
| `<c-space>` | CtrlSpace |
| `<c-/>` | CtrlSlash |
| `<space>` | Space |
| `<c-a>` | CtrlA |
| `<c-b>` | CtrlB |
| `<c-c>` | CtrlC |
| `<c-d>` | CtrlD |
| `<c-e>` | CtrlE |
| `<c-f>` | CtrlF |
| `<c-g>` | CtrlG |
| `<c-h>` | CtrlH |
| `<c-i>` | CtrlI |
| `<c-j>` | CtrlJ |
| `<c-k>` | CtrlK |
| `<c-l>` | CtrlL |
| `<c-m>` | CtrlM |
| `<c-n>` | CtrlN |
| `<c-o>` | CtrlO |
| `<c-p>` | CtrlP |
Expand All @@ -27,44 +53,7 @@
| `<c-x>` | CtrlX |
| `<c-y>` | CtrlY |
| `<c-z>` | CtrlZ |
| `<c-~>` | CtrlTilde |
| `<c-2>` | Ctrl2 |
| `<c-3>` | Ctrl3 |
| `<c-4>` | Ctrl4 |
| `<c-5>` | Ctrl5 |
| `<c-6>` | Ctrl6 |
| `<c-7>` | Ctrl7 |
| `<c-8>` | Ctrl8 |
| `<c-space>` | CtrlSpace |
| `<c-\\>` | CtrlBackslash |
| `<c-[>` | CtrlLsqBracket |
| `<c-]>` | CtrlRsqBracket |
| `<c-/>` | CtrlSlash |
| `<c-_>` | CtrlUnderscore |
| `<backspace>` | Backspace |
| `<tab>` | Tab |
| `<enter>` | Enter |
| `<esc>` | Esc |
| `<space>` | Space |
| `<f1>` | F1 |
| `<f2>` | F2 |
| `<f3>` | F3 |
| `<f4>` | F4 |
| `<f5>` | F5 |
| `<f6>` | F6 |
| `<f7>` | F7 |
| `<f8>` | F8 |
| `<f9>` | F9 |
| `<f10>` | F10 |
| `<f11>` | F11 |
| `<f12>` | F12 |
| `<insert>` | Insert |
| `<delete>` | Delete |
| `<home>` | Home |
| `<end>` | End |
| `<pgup>` | Pgup |
| `<pgdown>` | Pgdn |
| `<up>` | ArrowUp |
| `<down>` | ArrowDown |
| `<left>` | ArrowLeft |
| `<right>` | ArrowRight |
6 changes: 3 additions & 3 deletions pkg/gui/keybindings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
}
Expand Down

0 comments on commit 66c7672

Please sign in to comment.