pub struct SearchQuery {
pub pattern: String,
pub case_insensitive: bool,
pub include_hidden: bool,
pub name_glob: Option<String>,
}Expand description
What to search for, and which files to look in.
Fields§
§pattern: StringA regular expression, as ripgrep reads one.
case_insensitive: boolSearch dot-prefixed files and directories too.
name_glob: Option<String>Only search files whose names match this glob (pane::matches_filter).
Implementations§
Source§impl SearchQuery
impl SearchQuery
Sourcepub fn new(pattern: &str, pane: &Pane) -> Option<Self>
pub fn new(pattern: &str, pane: &Pane) -> Option<Self>
A query for pattern, scoped the way pane is showing things: its
hidden-file setting and its name filter. None for a blank pattern.
Case follows ripgrep’s smart case: insensitive unless the pattern has
an uppercase letter of its own. An escaped letter (\S, \W) is a
character class, not a letter to match, so it does not count.
Trait Implementations§
Source§impl Clone for SearchQuery
impl Clone for SearchQuery
Source§impl Debug for SearchQuery
impl Debug for SearchQuery
impl Eq for SearchQuery
Source§impl PartialEq for SearchQuery
impl PartialEq for SearchQuery
impl StructuralPartialEq for SearchQuery
Auto Trait Implementations§
impl Forget for SearchQuery
impl Freeze for SearchQuery
impl Move for SearchQuery
impl RefUnwindSafe for SearchQuery
impl Send for SearchQuerywhere
RawVecInner: Send,
impl Sync for SearchQuerywhere
RawVecInner: Sync,
impl Unpin for SearchQuery
impl UnsafeUnpin for SearchQuery
impl UnwindSafe for SearchQuerywhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.