pub struct GrepOptions {Show 22 fields
pub pattern: String,
pub case_insensitive: bool,
pub search_inputs: bool,
pub search_outputs: bool,
pub context_lines: Option<usize>,
pub context_before: Option<usize>,
pub context_after: Option<usize>,
pub word_regexp: bool,
pub fixed_strings: bool,
pub only_matching: bool,
pub invert_match: bool,
pub max_count: Option<usize>,
pub code_cells_only: bool,
pub markdown_cells_only: bool,
pub raw_cells_only: bool,
pub executed_only: bool,
pub not_executed_only: bool,
pub stream_output_only: bool,
pub error_output_only: bool,
pub result_output_only: bool,
pub glob_pattern: Option<String>,
pub exclude_pattern: Option<String>,
}Expand description
Options for grep search
Fields§
§pattern: StringThe pattern to search for
case_insensitive: boolCase insensitive search
search_inputs: boolSearch in cell inputs
search_outputs: boolSearch in cell outputs
context_lines: Option<usize>Number of context lines (for -C flag)
context_before: Option<usize>Number of lines before match (for -B flag)
context_after: Option<usize>Number of lines after match (for -A flag)
word_regexp: boolMatch only whole words
fixed_strings: boolTreat pattern as fixed string (not regex)
only_matching: boolShow only the matching part of lines
invert_match: boolInvert match (show non-matching lines)
max_count: Option<usize>Maximum number of matches per notebook
code_cells_only: boolFilter: only search code cells
markdown_cells_only: boolFilter: only search markdown cells
raw_cells_only: boolFilter: only search raw cells
executed_only: boolFilter: only search executed cells (have execution_count)
not_executed_only: boolFilter: only search non-executed cells
stream_output_only: boolFilter: only search stream outputs
error_output_only: boolFilter: only search error outputs
result_output_only: boolFilter: only search result outputs
glob_pattern: Option<String>Only search notebooks matching glob pattern
exclude_pattern: Option<String>Exclude notebooks matching pattern
Trait Implementations§
Source§impl Clone for GrepOptions
impl Clone for GrepOptions
Source§fn clone(&self) -> GrepOptions
fn clone(&self) -> GrepOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more