diff options
| author | Jonah Caplan <jonahcaplan@gmail.com> | 2021-02-20 18:19:05 -0500 |
|---|---|---|
| committer | Jonah Caplan <jonahcaplan@gmail.com> | 2021-02-25 01:44:10 -0500 |
| commit | ce54127d7de314e683ed0fefd8be987bbc47e369 (patch) | |
| tree | 0fd91434af3477f9b7c16a61b822537a18abcca2 /src/common/input/keybinds.rs | |
| parent | Make fullscreen panes not override the status bar and strider (#209) (diff) | |
| download | sl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.tar.gz sl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.tar.xz sl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.zip | |
add basic tab bar #166
Diffstat (limited to 'src/common/input/keybinds.rs')
| -rw-r--r-- | src/common/input/keybinds.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/input/keybinds.rs b/src/common/input/keybinds.rs index c573a557..e56488b4 100644 --- a/src/common/input/keybinds.rs +++ b/src/common/input/keybinds.rs @@ -133,6 +133,9 @@ fn get_defaults_for_mode(mode: &InputMode) -> Result<ModeKeybinds, String> { Key::Ctrl('g'), vec![Action::SwitchToMode(InputMode::Normal)], ); + for i in '1'..='9' { + defaults.insert(Key::Char(i), vec![Action::GoToTab(i.to_digit(10).unwrap())]); + } defaults.insert(Key::Esc, vec![Action::SwitchToMode(InputMode::Command)]); } InputMode::Scroll => { |
