mirror of
https://github.com/lotabout/skim.git
synced 2026-09-15 09:46:31 -04:00
Some checks failed
Build & Test / test (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Has been cancelled
Build & Test / test (macos, macos-latest, stable, x86_64-apple-darwin) (push) Has been cancelled
Build & Test / clippy (linux, ubuntu-latest, stable, x86_64-unknown-linux-musl) (push) Has been cancelled
Build & Test / clippy (macos, macos-latest, stable, x86_64-apple-darwin) (push) Has been cancelled
Build & Test / rustfmt (push) Has been cancelled
* feat: use clap & derive for options, manpage & completions * clippy & fmt * fix: correctly handle errors * fix: disable doctest * fix: readd replstr * fix: reserve --tmux until it is implemented * explicit panic messages for history files * fix after merge --------- Co-authored-by: LoricAndre <loric.andre@pm.me>
15 lines
314 B
Rust
15 lines
314 B
Rust
extern crate skim;
|
|
use skim::prelude::*;
|
|
|
|
pub fn main() {
|
|
let options = SkimOptions::default();
|
|
|
|
let selected_items = Skim::run_with(&options, None)
|
|
.map(|out| out.selected_items)
|
|
.unwrap_or_default();
|
|
|
|
for item in selected_items.iter() {
|
|
println!("{}", item.output());
|
|
}
|
|
}
|