Moins
🥖 "moins" is french for "less" 🥖 ! .
What is moins ?
Moins is a Keep It Simple Stupid less like pager that you can use as a crate.
It aims to be used in other cli app project, you probably don't want to use it as a replacement for less, cause it does less than less.
How to
Add moins to your Cargo.toml
dependencies.
[]
= "0.1.0"
Moins expose a single run
function and a PagerOption
struct to define your pager behavior.
Here is the simplest pager you can run :
extern crate moins;
use Moins;
If you want to add some colors to the pager you can add pagers options :
let mut content = "A noir, E blanc, I rouge, U vert, O bleu, voyelles,
Je dirai quelque jour vos naissances latentes.
A, noir corset velu des mouches éclatantes
Qui bombillent autour des puanteurs cruelles"
.to_owned;
let mut colors = new;
colors.insert;
colors.insert;
colors.insert;
colors.insert;
colors.insert;
let options = PagerOptions ;
run;
you can run the examples with the command cargo run --example my_example
Search
WIP
Line number
WIP
Key binding
Key | Action |
---|---|
Arrow up |
scroll up |
k |
scroll up |
Arrow down |
scroll down |
j |
scroll down |
q |
quit |
Contributing
Contribution are welcome, don't hesitate to submit a PR or fill an issue but keep in mind that moins is a stupid pager. We don't want syntax hilighting, or any fancy feature. If you are looking for something like that bat is probably what you need.