1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-27 12:23:46 +03:00

Add additional tab activation key assignments

This commit is contained in:
Frieder Bluemle 2021-05-02 17:07:30 -06:00 committed by Wez Furlong
parent 11e8c515c1
commit 3f4ea691af
2 changed files with 24 additions and 0 deletions

View File

@ -368,18 +368,30 @@ impl InputMap {
KeyCode::Char('{'),
ActivateTabRelative(-1)
],
[ctrl_shift, KeyCode::Char('\t'), ActivateTabRelative(-1)],
[Modifiers::CTRL, KeyCode::PageUp, ActivateTabRelative(-1)],
[
Modifiers::SUPER | Modifiers::SHIFT,
KeyCode::Char(']'),
ActivateTabRelative(1)
],
[Modifiers::SUPER, KeyCode::Char('}'), ActivateTabRelative(1)],
[Modifiers::CTRL, KeyCode::Char('\t'), ActivateTabRelative(1)],
[Modifiers::CTRL, KeyCode::PageDown, ActivateTabRelative(1)],
[Modifiers::SUPER, KeyCode::Char('r'), ReloadConfiguration],
[Modifiers::CTRL, KeyCode::Char('R'), ReloadConfiguration],
[ctrl_shift, KeyCode::PageUp, MoveTabRelative(-1)],
[ctrl_shift, KeyCode::PageDown, MoveTabRelative(1)],
[Modifiers::SHIFT, KeyCode::PageUp, ScrollByPage(-1)],
[Modifiers::SHIFT, KeyCode::PageDown, ScrollByPage(1)],
[Modifiers::ALT, KeyCode::Char('1'), ActivateTab(0)],
[Modifiers::ALT, KeyCode::Char('2'), ActivateTab(1)],
[Modifiers::ALT, KeyCode::Char('3'), ActivateTab(2)],
[Modifiers::ALT, KeyCode::Char('4'), ActivateTab(3)],
[Modifiers::ALT, KeyCode::Char('5'), ActivateTab(4)],
[Modifiers::ALT, KeyCode::Char('6'), ActivateTab(5)],
[Modifiers::ALT, KeyCode::Char('7'), ActivateTab(6)],
[Modifiers::ALT, KeyCode::Char('8'), ActivateTab(7)],
[Modifiers::ALT, KeyCode::Char('9'), ShowTabNavigator],
[Modifiers::CTRL, KeyCode::Char('X'), ActivateCopyMode],
[

View File

@ -158,11 +158,23 @@ The default key bindings are:
| `CTRL+SHIFT` | `8` | `ActivateTab=7` |
| `CTRL+SHIFT` | `9` | `ActivateTab=-1` |
| `SUPER+SHIFT` | `[` | `ActivateTabRelative=-1` |
| `CTRL+SHIFT` | `Tab` | `ActivateTabRelative=-1` |
| `CTRL` | `PageUp` | `ActivateTabRelative=-1` |
| `SUPER+SHIFT` | `]` | `ActivateTabRelative=1` |
| `CTRL` | `Tab` | `ActivateTabRelative=1` |
| `CTRL` | `PageDown` | `ActivateTabRelative=1` |
| `CTRL+SHIFT` | `PageUp` | `MoveTabRelative=-1` |
| `CTRL+SHIFT` | `PageDown` | `MoveTabRelative=1` |
| `SHIFT` | `PageUp` | `ScrollByPage=-1` |
| `SHIFT` | `PageDown` | `ScrollByPage=1` |
| `ALT` | `1` | `ActivateTab=0` |
| `ALT` | `2` | `ActivateTab=1` |
| `ALT` | `3` | `ActivateTab=2` |
| `ALT` | `4` | `ActivateTab=3` |
| `ALT` | `5` | `ActivateTab=4` |
| `ALT` | `6` | `ActivateTab=5` |
| `ALT` | `7` | `ActivateTab=6` |
| `ALT` | `8` | `ActivateTab=7` |
| `ALT` | `9` | `ShowTabNavigator` |
| `SUPER` | `r` | `ReloadConfiguration` |
| `CTRL+SHIFT` | `R` | `ReloadConfiguration` |