The only way I know to reserve the old style of help information which mimicked fzf is using Command::override_help with the help information written manually.
I write help for every argument and then modify the auto generated help information to get the final one.
To developers:
crate::cli::Cli could parse string to type value(s) now, so it's no need to parse string in succeeding functions.
The construction of CLI
Use clap-4.0.18 with derive feature.
The only way I know to reserve the old style of help information which mimicked fzf is using Command::override_help with the help information written manually.
I write help for every argument and then modify the auto generated help information to get the final one.
To developers:
crate::cli::Cli
could parse string to type value(s) now, so it's no need to parse string in succeeding functions.These enums of arguments implementing ValueEnum,
crate::engine::fuzzy::FuzzyAlgorithm
crate::item::RankCriteria
crate::CaseMatching
crate::Layout
Some fields of
crate::options::SkimOptions
change types,Option<&str>
=>Vec<&str>
Option<String>
=>Vec<RankCriteria>
Option<&str>
=>&str
Option<&str>
=>Vec<&str>
Option<&str>
=>Vec<&str>
Option<&str>
=>Option<usize>
&'a str
=>Layout
For the above reasons, the ways to use
SkimOptions
change,In
crate::input::Input
,parse_expect_keys(&mut self, keys: Option<&str>)
parse_expect_keys(&mut self, keys: &[&str])
In
crate::item
, removeparse_criteria
;In
crate::theme::ColorTheme
,from_options(color: &str) -> Self
from_options(color: &[&str]) -> Self
In
crate::util
,parse_margin(margins: &str) -> (Size, Size, Size, Size)
parse_margin(margins: &[&str]) -> (Size, Size, Size, Size)
See
crate::header::with_options
,crate::model
,crate::selection
;To users of library
In
skim::prelude::SkimOptionsBuilder
layout(&mut self, value: &'a str) -> &mut Self
layout(&mut self, value: skim::Layout) -> &mut Self
In
skim::prelude::SkimItemReaderOption
nth:
nth(self, nth: &str) -> Self
nth(self, nth: I) -> Self
with_nth:
with_nth(self, with_nth: &str) -> Self
with_nth(self, with_nth: I) -> Self