Struct broot::syntactic::SyntacticView
source · [−]pub struct SyntacticView {
pub path: PathBuf,
pub pattern: InputPattern,
/* private fields */
}
Fields
path: PathBuf
pattern: InputPattern
Implementations
pub fn new(
path: &Path,
pattern: InputPattern,
dam: &mut Dam,
con: &AppContext,
no_style: bool
) -> Result<Option<Self>, ProgramError>
pub fn new(
path: &Path,
pattern: InputPattern,
dam: &mut Dam,
con: &AppContext,
no_style: bool
) -> Result<Option<Self>, ProgramError>
Return a prepared text view with syntax coloring if possible. May return Ok(None) only when a pattern is given and there was an event before the end of filtering.
Give the count of lines which can be seen when scrolling, total count including filtered ones