Skip to content

Latest commit

 

History

History

examples

Picker examples

This directory contains a variety of examples of how to use the nucleo-picker crate in practice.

In order to try out the examples, run

cargo run --release --example <name>

where <name> is the part of the path without the .rs suffix.

Some of the examples may require arguments or feature flags to run properly; see the individual files for more information.

Directory

File Description
blocking.rs A basic blocking example with a very small number of matches.
custom_io.rs Customize IO with keybindings and alternative writer.
find.rs A basic find implementation with fuzzy matching on resulting items.
fzf.rs A simple fzf clone which reads lines from STDIN and presents for matching.
fzf_err_handling.rs An improved version of the fzf example using channels to propagate read errors.
options.rs Some customization examples of the picker.
restart.rs Demonstration of interactive restarting in response to user input.
restart_ext.rs An extended version of the restart example.
serde.rs Use serde to deserialize picker items from input.