mirror of
https://github.com/lotabout/skim.git
synced 2026-09-10 07:16:23 -04:00
* chore: remove workspace * chore: regen dist config * fix: readme path * chore: extra-artifacts as files * chore: generate dist CI * chore: prepare for prerelease * chore: switch to include + generate-files * chore: use run step for generate-files --------- Co-authored-by: Loric André <loric.andre@noreply.me>
20 lines
420 B
Rust
20 lines
420 B
Rust
use std::sync::Arc;
|
|
|
|
use skim::prelude::*;
|
|
|
|
fn main() {
|
|
let (sender, receiver) = unbounded::<Arc<dyn SkimItem>>();
|
|
for num in 1..=8 {
|
|
sender.send(Arc::new(format!("Option {num}"))).unwrap();
|
|
}
|
|
drop(sender); // bug replicates even without this
|
|
|
|
let _ = Skim::run_with(
|
|
SkimOptions {
|
|
multi: true,
|
|
..Default::default()
|
|
},
|
|
Some(receiver),
|
|
);
|
|
}
|