feat(main): add multi selection to messages
This commit is contained in:
parent
a40586d51e
commit
fce08f6583
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
use std::{fs, process::exit};
|
use std::{fs, process::exit};
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
use dialoguer::MultiSelect;
|
||||||
use once_cell::sync::Lazy;
|
use once_cell::sync::Lazy;
|
||||||
use anyhow::{Error, Result};
|
use anyhow::{Error, Result};
|
||||||
use rayon::{iter::ParallelIterator, str::ParallelString};
|
use rayon::{iter::ParallelIterator, str::ParallelString};
|
||||||
|
@ -33,7 +34,9 @@ fn main() -> Result<()> {
|
||||||
|
|
||||||
let filtered_log: Vec<&str> = split_log.filter(|x| is_possible_chat_msg(x)).collect();
|
let filtered_log: Vec<&str> = split_log.filter(|x| is_possible_chat_msg(x)).collect();
|
||||||
|
|
||||||
print!("{:#?}", filtered_log);
|
let selection = MultiSelect::new().with_prompt("What messages do you want to render?").items(&filtered_log).interact()?;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue