feat: add torrent rename functionality

This commit is contained in:
2026-01-01 04:09:34 +02:00
parent baab8a1984
commit 33b446d440
8 changed files with 96 additions and 30 deletions

View File

@@ -1,5 +1,5 @@
use crossterm::event::{KeyCode, KeyEvent};
use traxor::{app::App, app::action::Action, config::Config, handler::get_action};
use traxor::{app::App, app::InputMode, app::action::Action, config::Config, handler::get_action};
#[tokio::test]
async fn test_get_action_quit() {
@@ -137,7 +137,7 @@ async fn test_get_action_toggle_help() {
async fn test_get_action_input_mode() {
let config = Config::load().unwrap();
let mut app = App::new(config).unwrap();
app.input_mode = true;
app.input_mode = InputMode::Move;
assert_eq!(
get_action(KeyEvent::from(KeyCode::Enter), &mut app)
.await