pub enum HistoryScope {
Everywhere,
Project,
Session,
}Expand description
Which sessions contribute prompt-history matches.
Variants§
Everywhere
Every session in every workspace.
Project
Sessions in the current workspace/project only.
Session
The current session/thread only.
Implementations§
Source§impl HistoryScope
impl HistoryScope
Sourcepub fn label(self) -> &'static str
pub fn label(self) -> &'static str
Short display label used in picker titles; also the wire value.
Sourcepub fn title(self) -> &'static str
pub fn title(self) -> &'static str
Title-case label for switcher buttons. English-only until native-quality translations ship (thread-menu precedent).
Sourcepub fn cycle_next(self) -> Self
pub fn cycle_next(self) -> Self
Next scope in the Ctrl+S cycle order (broad to narrow).
Trait Implementations§
Source§impl Clone for HistoryScope
impl Clone for HistoryScope
impl Copy for HistoryScope
Source§impl Debug for HistoryScope
impl Debug for HistoryScope
Source§impl Default for HistoryScope
impl Default for HistoryScope
Source§impl<'de> Deserialize<'de> for HistoryScope
impl<'de> Deserialize<'de> for HistoryScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HistoryScope
Source§impl PartialEq for HistoryScope
impl PartialEq for HistoryScope
Source§impl Serialize for HistoryScope
impl Serialize for HistoryScope
impl StructuralPartialEq for HistoryScope
Auto Trait Implementations§
impl Forget for HistoryScope
impl Freeze for HistoryScope
impl RefUnwindSafe for HistoryScope
impl Send for HistoryScope
impl Sync for HistoryScope
impl Unpin for HistoryScope
impl UnsafeUnpin for HistoryScope
impl UnwindSafe for HistoryScope
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.