uds
This commit is contained in:
12
src/app.rs
12
src/app.rs
@ -1,7 +1,7 @@
|
||||
use crate::ipc;
|
||||
use fuzzy_matcher::{FuzzyMatcher, skim::SkimMatcherV2};
|
||||
use ratatui::widgets::ListState;
|
||||
use ratatui_image::{picker::Picker, protocol};
|
||||
use std::path::Path;
|
||||
|
||||
#[derive(PartialEq)]
|
||||
pub enum Mode {
|
||||
@ -27,13 +27,9 @@ impl App {
|
||||
pub fn new() -> Self {
|
||||
let mut list_state = ListState::default();
|
||||
list_state.select(Some(0));
|
||||
let items = vec![
|
||||
"Ceci est un texte copié.".to_string(),
|
||||
"https://github.com/ratatui-org/ratatui".to_string(),
|
||||
"30426b4d-26e0-45af-9fa4-25f4476387a8.jpg".to_string(),
|
||||
"35789d6a-dea4-46de-90da-aee693a16031.jpg".to_string(),
|
||||
"fn main() {\n println!(\"Hello\");\n}".to_string(),
|
||||
];
|
||||
|
||||
let items = ipc::fetch_history(100)
|
||||
.unwrap_or_else(|| vec!["rklipd deamon unaccessible".to_string()]);
|
||||
|
||||
let picker = Picker::from_query_stdio().unwrap_or_else(|_| Picker::halfblocks());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user