pub struct AiGrepConfig;Expand description
Configuration for AI-mode grep — extends GrepConfig behavior with
automatic file-path constraint detection.
Bare filenames with valid extensions (schema.rs) and path-prefixed
filenames (libswscale/input.c) are detected as FilePath constraints
so the search is scoped to matching files. The caller validates the
constraint against the index and drops it if no files match (fallback).
Trait Implementations§
Source§impl Clone for AiGrepConfig
impl Clone for AiGrepConfig
Source§fn clone(&self) -> AiGrepConfig
fn clone(&self) -> AiGrepConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AiGrepConfig
impl Debug for AiGrepConfig
Source§impl Default for AiGrepConfig
impl Default for AiGrepConfig
Source§fn default() -> AiGrepConfig
fn default() -> AiGrepConfig
Returns the “default value” for a type. Read more
Source§impl ParserConfig for AiGrepConfig
impl ParserConfig for AiGrepConfig
Source§fn enable_path_segments(&self) -> bool
fn enable_path_segments(&self) -> bool
Should parse path segments (e.g., /src/)
Source§fn enable_git_status(&self) -> bool
fn enable_git_status(&self) -> bool
Should parse git status (e.g., status:modified)
Source§fn enable_location(&self) -> bool
fn enable_location(&self) -> bool
Should parse location suffixes (e.g., file:12, file:12:4)
Disabled for grep modes where colon-number patterns like localhost:8080
are search text, not file locations.
Source§fn is_glob_pattern(&self, token: &str) -> bool
fn is_glob_pattern(&self, token: &str) -> bool
Determine whether a token should be treated as a glob constraint. Read more
Source§fn parse_custom<'a>(&self, token: &'a str) -> Option<Constraint<'a>>
fn parse_custom<'a>(&self, token: &'a str) -> Option<Constraint<'a>>
Custom constraint parsers for picker-specific needs
fn enable_glob(&self) -> bool
Source§fn enable_extension(&self) -> bool
fn enable_extension(&self) -> bool
Should parse extension shortcuts (e.g., *.rs)
Source§fn enable_exclude(&self) -> bool
fn enable_exclude(&self) -> bool
Should parse exclusion patterns (e.g., !test)
Source§fn enable_type_filter(&self) -> bool
fn enable_type_filter(&self) -> bool
Should parse type constraints (e.g., type:rust)
impl Copy for AiGrepConfig
Auto Trait Implementations§
impl Freeze for AiGrepConfig
impl RefUnwindSafe for AiGrepConfig
impl Send for AiGrepConfig
impl Sync for AiGrepConfig
impl Unpin for AiGrepConfig
impl UnsafeUnpin for AiGrepConfig
impl UnwindSafe for AiGrepConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more