Struct skim::SkimOptions
source · pub struct SkimOptions<'a> {Show 31 fields
pub bind: Vec<&'a str>,
pub multi: bool,
pub prompt: Option<&'a str>,
pub cmd_prompt: Option<&'a str>,
pub expect: Option<String>,
pub tac: bool,
pub tiebreak: Option<String>,
pub ansi: bool,
pub exact: bool,
pub cmd: Option<&'a str>,
pub interactive: bool,
pub query: Option<&'a str>,
pub cmd_query: Option<&'a str>,
pub regex: bool,
pub delimiter: Option<&'a str>,
pub nth: Option<&'a str>,
pub with_nth: Option<&'a str>,
pub replstr: Option<&'a str>,
pub color: Option<&'a str>,
pub margin: Option<&'a str>,
pub min_height: Option<&'a str>,
pub height: Option<&'a str>,
pub preview: Option<&'a str>,
pub preview_window: Option<&'a str>,
pub reverse: bool,
pub read0: bool,
pub print0: bool,
pub tabstop: Option<&'a str>,
pub print_query: bool,
pub print_cmd: bool,
pub no_hscroll: bool,
}
Fields§
§bind: Vec<&'a str>
§multi: bool
§prompt: Option<&'a str>
§cmd_prompt: Option<&'a str>
§expect: Option<String>
§tac: bool
§tiebreak: Option<String>
§ansi: bool
§exact: bool
§cmd: Option<&'a str>
§interactive: bool
§query: Option<&'a str>
§cmd_query: Option<&'a str>
§regex: bool
§delimiter: Option<&'a str>
§nth: Option<&'a str>
§with_nth: Option<&'a str>
§replstr: Option<&'a str>
§color: Option<&'a str>
§margin: Option<&'a str>
§min_height: Option<&'a str>
§height: Option<&'a str>
§preview: Option<&'a str>
§preview_window: Option<&'a str>
§reverse: bool
§read0: bool
§print0: bool
§tabstop: Option<&'a str>
§print_query: bool
§print_cmd: bool
§no_hscroll: bool
Implementations§
source§impl<'a> SkimOptions<'a>
impl<'a> SkimOptions<'a>
pub fn from_options(options: &'a ArgMatches<'_>) -> SkimOptions<'a>
pub fn bind(self, bind: Vec<&'a str>) -> Self
pub fn multi(self, multi: bool) -> Self
pub fn prompt(self, prompt: &'a str) -> Self
pub fn cmd_prompt(self, cmd_prompt: &'a str) -> Self
pub fn expect(self, expect: String) -> Self
pub fn tac(self, tac: bool) -> Self
pub fn tiebreak(self, tiebreak: String) -> Self
pub fn ansi(self, ansi: bool) -> Self
pub fn exact(self, exact: bool) -> Self
pub fn cmd(self, cmd: &'a str) -> Self
pub fn interactive(self, interactive: bool) -> Self
pub fn query(self, query: &'a str) -> Self
pub fn cmd_query(self, cmd_query: &'a str) -> Self
pub fn regex(self, regex: bool) -> Self
pub fn delimiter(self, delimiter: &'a str) -> Self
pub fn nth(self, nth: &'a str) -> Self
pub fn with_nth(self, with_nth: &'a str) -> Self
pub fn replstr(self, replstr: &'a str) -> Self
pub fn color(self, color: &'a str) -> Self
pub fn margin(self, margin: &'a str) -> Self
pub fn min_height(self, min_height: &'a str) -> Self
pub fn height(self, height: &'a str) -> Self
pub fn preview(self, preview: &'a str) -> Self
pub fn preview_window(self, preview_window: &'a str) -> Self
pub fn reverse(self, reverse: bool) -> Self
pub fn read0(self, read0: bool) -> Self
pub fn print0(self, print0: bool) -> Self
pub fn tabstop(self, tabstop: &'a str) -> Self
pub fn print_query(self, print_query: bool) -> Self
pub fn print_cmd(self, print_cmd: bool) -> Self
pub fn no_hscroll(self, no_hscroll: bool) -> Self
Trait Implementations§
source§impl<'a> Debug for SkimOptions<'a>
impl<'a> Debug for SkimOptions<'a>
source§impl<'a> Default for SkimOptions<'a>
impl<'a> Default for SkimOptions<'a>
source§fn default() -> SkimOptions<'a>
fn default() -> SkimOptions<'a>
Returns the “default value” for a type. Read more