Skip to content

Commit dc99852

Browse files
authored
add instruc & tip (#208)
1 parent 6b69b14 commit dc99852

File tree

1 file changed

+17
-1
lines changed
  • crates/chat-cli/src/cli/chat

1 file changed

+17
-1
lines changed

crates/chat-cli/src/cli/chat/mod.rs

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ const SMALL_SCREEN_WELCOME_TEXT: &str = color_print::cstr! {"<em>Welcome to <cya
416416
const RESUME_TEXT: &str = color_print::cstr! {"<em>Picking up where we left off...</em>"};
417417

418418
// Only show the model-related tip for now to make users aware of this feature.
419-
const ROTATING_TIPS: [&str; 2] = [
419+
const ROTATING_TIPS: [&str; 3] = [
420420
// color_print::cstr! {"You can resume the last conversation from your current directory by launching with
421421
// <green!>q chat --resume</green!>"}, color_print::cstr! {"Get notified whenever Q CLI finishes responding.
422422
// Just run <green!>q settings chat.enableNotifications true</green!>"}, color_print::cstr! {"You can use
@@ -437,6 +437,7 @@ const ROTATING_TIPS: [&str; 2] = [
437437
// warnings or errors associated with <green!>/mcp</green!>"},
438438
color_print::cstr! {"Use <green!>/model</green!> to select the model to use for this conversation"},
439439
color_print::cstr! {"Set a default model by running <green!>q settings chat.defaultModel MODEL</green!>. Run <green!>/model</green!> to learn more."},
440+
color_print::cstr! {"Run <green!>/prompts</green!> to learn how to build & run repeatable workflows"},
440441
];
441442

442443
pub struct ModelOption {
@@ -2856,6 +2857,21 @@ impl ChatContext {
28562857
optimal_case
28572858
}
28582859
};
2860+
// Add usage guidance at the top
2861+
queue!(
2862+
self.output,
2863+
style::Print("\n"),
2864+
style::SetAttribute(Attribute::Bold),
2865+
style::Print("Usage: "),
2866+
style::SetAttribute(Attribute::Reset),
2867+
style::Print("You can use a prompt by typing "),
2868+
style::SetAttribute(Attribute::Bold),
2869+
style::SetForegroundColor(Color::Green),
2870+
style::Print("'@<prompt name> [...args]'"),
2871+
style::SetForegroundColor(Color::Reset),
2872+
style::SetAttribute(Attribute::Reset),
2873+
style::Print("\n\n"),
2874+
)?;
28592875
queue!(
28602876
self.output,
28612877
style::Print("\n"),

0 commit comments

Comments
 (0)