#[non_exhaustive]pub struct CommandSetting {
pub kind: Option<String>,
pub command: Option<String>,
pub extra: Extra,
}Expand description
fileSuggestion and subagentStatusLine: a command handler.
Run your own command to supply @ file path autocomplete instead of the built-in file
suggestion. The built-in suggestion uses fast filesystem traversal; a large monorepo may do
better with project-specific indexing such as a pre-built file index.
Docs: fileSuggestion.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.kind: Option<String>The type of file suggestion handler; must be set to “command” to execute a custom shell script that generates file suggestions for the @ file picker.
- Values: string
- Default: unset
Docs: type.
command: Option<String>§extra: ExtraKeys Claude Code accepts here that this crate doesn’t model (newer or undocumented ones), kept as written so the document round-trips.
Implementations§
Trait Implementations§
Source§impl Clone for CommandSetting
impl Clone for CommandSetting
Source§impl Debug for CommandSetting
impl Debug for CommandSetting
Source§impl Default for CommandSetting
impl Default for CommandSetting
Source§impl<'de> Deserialize<'de> for CommandSetting
impl<'de> Deserialize<'de> for CommandSetting
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
Source§impl PartialEq for CommandSetting
impl PartialEq for CommandSetting
Source§impl Serialize for CommandSetting
impl Serialize for CommandSetting
impl StructuralPartialEq for CommandSetting
Auto Trait Implementations§
impl Forget for CommandSetting
impl Freeze for CommandSetting
impl Move for CommandSetting
impl RefUnwindSafe for CommandSetting
impl Send for CommandSetting
impl Sync for CommandSetting
impl Unpin for CommandSetting
impl UnsafeUnpin for CommandSetting
impl UnwindSafe for CommandSetting
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