Detailed changes
@@ -31,11 +31,11 @@ impl SlashCommand for AutoCommand {
}
fn description(&self) -> String {
- "Automatically infer what context to add, based on your prompt".into()
+ "Automatically infer what context to add".into()
}
fn menu_text(&self) -> String {
- "Automatically Infer Context".into()
+ self.description()
}
fn label(&self, cx: &AppContext) -> CodeLabel {
@@ -19,11 +19,11 @@ impl SlashCommand for DeltaSlashCommand {
}
fn description(&self) -> String {
- "re-insert changed files".into()
+ "Re-insert changed files".into()
}
fn menu_text(&self) -> String {
- "Re-insert Changed Files".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -95,7 +95,7 @@ impl SlashCommand for DiagnosticsSlashCommand {
}
fn menu_text(&self) -> String {
- "Insert Diagnostics".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -104,11 +104,11 @@ impl SlashCommand for FetchSlashCommand {
}
fn description(&self) -> String {
- "insert URL contents".into()
+ "Insert fetched URL contents".into()
}
fn menu_text(&self) -> String {
- "Insert fetched URL contents".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -110,11 +110,11 @@ impl SlashCommand for FileSlashCommand {
}
fn description(&self) -> String {
- "insert file".into()
+ "Insert file".into()
}
fn menu_text(&self) -> String {
- "Insert File".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -19,11 +19,11 @@ impl SlashCommand for NowSlashCommand {
}
fn description(&self) -> String {
- "insert the current date and time".into()
+ "Insert current date and time".into()
}
fn menu_text(&self) -> String {
- "Insert Current Date and Time".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -47,11 +47,11 @@ impl SlashCommand for ProjectSlashCommand {
}
fn description(&self) -> String {
- "Generate semantic searches based on the current context".into()
+ "Generate a semantic search based on context".into()
}
fn menu_text(&self) -> String {
- "Project Context".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -16,11 +16,11 @@ impl SlashCommand for PromptSlashCommand {
}
fn description(&self) -> String {
- "insert prompt from library".into()
+ "Insert prompt from library".into()
}
fn menu_text(&self) -> String {
- "Insert Prompt from Library".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -34,11 +34,11 @@ impl SlashCommand for SearchSlashCommand {
}
fn description(&self) -> String {
- "semantic search".into()
+ "Search your project semantically".into()
}
fn menu_text(&self) -> String {
- "Semantic Search".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -17,11 +17,11 @@ impl SlashCommand for OutlineSlashCommand {
}
fn description(&self) -> String {
- "insert symbols for active tab".into()
+ "Insert symbols for active tab".into()
}
fn menu_text(&self) -> String {
- "Insert Symbols for Active Tab".into()
+ self.description()
}
fn complete_argument(
@@ -24,11 +24,11 @@ impl SlashCommand for TabSlashCommand {
}
fn description(&self) -> String {
- "insert open tabs (active tab by default)".to_owned()
+ "Insert open tabs (active tab by default)".to_owned()
}
fn menu_text(&self) -> String {
- "Insert Open Tabs".to_owned()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -29,11 +29,11 @@ impl SlashCommand for TerminalSlashCommand {
}
fn description(&self) -> String {
- "insert terminal output".into()
+ "Insert terminal output".into()
}
fn menu_text(&self) -> String {
- "Insert Terminal Output".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -29,11 +29,11 @@ impl SlashCommand for WorkflowSlashCommand {
}
fn description(&self) -> String {
- "insert a prompt that opts into the edit workflow".into()
+ "Insert prompt to opt into the edit workflow".into()
}
fn menu_text(&self) -> String {
- "Insert Workflow Prompt".into()
+ self.description()
}
fn requires_argument(&self) -> bool {
@@ -184,7 +184,7 @@ impl PickerDelegate for SlashCommandDelegate {
h_flex()
.group(format!("command-entry-label-{ix}"))
.w_full()
- .min_w(px(220.))
+ .min_w(px(250.))
.child(
v_flex()
.child(
@@ -203,7 +203,9 @@ impl PickerDelegate for SlashCommandDelegate {
div()
.font_buffer(cx)
.child(
- Label::new(args).size(LabelSize::Small),
+ Label::new(args)
+ .size(LabelSize::Small)
+ .color(Color::Muted),
)
.visible_on_hover(format!(
"command-entry-label-{ix}"