diff --git a/config/default.toml b/config/default.toml index 1333859..6309d7b 100644 --- a/config/default.toml +++ b/config/default.toml @@ -14,12 +14,17 @@ next_torrent = "j" prev_tab = "h" next_tab = "l" -# Tab switching +# Tab switching (1-9, 0 for 10th) switch_tab_1 = "1" switch_tab_2 = "2" switch_tab_3 = "3" switch_tab_4 = "4" switch_tab_5 = "5" +switch_tab_6 = "6" +switch_tab_7 = "7" +switch_tab_8 = "8" +switch_tab_9 = "9" +switch_tab_10 = "0" # Torrent actions toggle_torrent = "enter" diff --git a/src/config/keybinds.rs b/src/config/keybinds.rs index 671cc0b..5be0832 100644 --- a/src/config/keybinds.rs +++ b/src/config/keybinds.rs @@ -12,6 +12,11 @@ pub struct KeybindsConfig { pub switch_tab_3: String, pub switch_tab_4: String, pub switch_tab_5: String, + pub switch_tab_6: String, + pub switch_tab_7: String, + pub switch_tab_8: String, + pub switch_tab_9: String, + pub switch_tab_10: String, pub toggle_torrent: String, pub toggle_all: String, pub delete: String, diff --git a/src/handler.rs b/src/handler.rs index 5c1c2c6..925e88a 100644 --- a/src/handler.rs +++ b/src/handler.rs @@ -60,6 +60,11 @@ pub async fn get_action(key_event: KeyEvent, app: &mut App) -> Result