pub struct DirSearchConfig;Expand description
Configuration for directory and mixed search modes.
Disables path segment parsing so that trailing / is kept as fuzzy text
(e.g. fff-core/ fuzzy-matches directory paths instead of becoming a
PathSegment("fff-core") constraint with an empty query). Extension and
filename constraints are also disabled since they don’t apply to directories.
Trait Implementations§
Source§impl Clone for DirSearchConfig
impl Clone for DirSearchConfig
Source§fn clone(&self) -> DirSearchConfig
fn clone(&self) -> DirSearchConfig
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 DirSearchConfig
impl Debug for DirSearchConfig
Source§impl Default for DirSearchConfig
impl Default for DirSearchConfig
Source§fn default() -> DirSearchConfig
fn default() -> DirSearchConfig
Returns the “default value” for a type. Read more
Source§impl ParserConfig for DirSearchConfig
impl ParserConfig for DirSearchConfig
Source§fn enable_path_segments(&self) -> bool
fn enable_path_segments(&self) -> bool
Should parse path segments (e.g., /src/)
Source§fn enable_extension(&self) -> bool
fn enable_extension(&self) -> bool
Should parse extension shortcuts (e.g., *.rs)
Source§fn enable_type_filter(&self) -> bool
fn enable_type_filter(&self) -> bool
Should parse type constraints (e.g., type:rust)
Source§fn enable_git_status(&self) -> bool
fn enable_git_status(&self) -> bool
Should parse git status (e.g., status:modified)
fn enable_glob(&self) -> bool
Source§fn enable_exclude(&self) -> bool
fn enable_exclude(&self) -> bool
Should parse exclusion patterns (e.g., !test)
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, _input: &'a str) -> Option<Constraint<'a>>
fn parse_custom<'a>(&self, _input: &'a str) -> Option<Constraint<'a>>
Custom constraint parsers for picker-specific needs
impl Copy for DirSearchConfig
Auto Trait Implementations§
impl Freeze for DirSearchConfig
impl RefUnwindSafe for DirSearchConfig
impl Send for DirSearchConfig
impl Sync for DirSearchConfig
impl Unpin for DirSearchConfig
impl UnsafeUnpin for DirSearchConfig
impl UnwindSafe for DirSearchConfig
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