pub struct ProjectSearchOptions {
pub root: PathBuf,
pub case_sensitive: bool,
pub max_files: Option<usize>,
pub max_hits_per_file: usize,
pub regex: bool,
pub context_lines: u32,
}Expand description
User-supplied scan parameters.
Fields§
§root: PathBufProject root the scan walks. Defaults to CWD when the trigger function isn’t given an explicit one.
case_sensitive: boolWhether matches are case-sensitive.
max_files: Option<usize>Cap on the number of files scanned. None = unlimited
(defaults to large; the scan respects .gitignore).
max_hits_per_file: usizeCap on hits per file before moving on (per-file hit-limit; prevents one huge file from monopolising the batch budget).
regex: boolM.6.3 (2026-06-01): interpret query as a fancy-regex
pattern instead of a literal substring. false (default)
keeps the M.6.0 literal-match path for back-compat.
Case-sensitivity layered on via an injected (?i) flag
when case_sensitive == false.
context_lines: u32K.4.6 follow-up (2026-06-02): number of context lines to
show above and below each matched line. Resolved from
the search.context_size typed option at :search
dispatch time. 0 = no context (one excerpt per match
row); N > 0 = ±N lines around each match, with
adjacent clusters merged when ranges overlap or touch.
Trait Implementations§
Source§impl Clone for ProjectSearchOptions
impl Clone for ProjectSearchOptions
Source§fn clone(&self) -> ProjectSearchOptions
fn clone(&self) -> ProjectSearchOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProjectSearchOptions
impl Debug for ProjectSearchOptions
Auto Trait Implementations§
impl Freeze for ProjectSearchOptions
impl RefUnwindSafe for ProjectSearchOptions
impl Send for ProjectSearchOptions
impl Sync for ProjectSearchOptions
impl Unpin for ProjectSearchOptions
impl UnsafeUnpin for ProjectSearchOptions
impl UnwindSafe for ProjectSearchOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more