Skip to content

Commit bed5a9b

Browse files
chore: hide /knowledge command, reduce tips width (#354)
1 parent 560c4ae commit bed5a9b

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub enum SlashCommand {
5555
Context(ContextSubcommand),
5656
/// (Beta) Manage knowledge base for persistent context storage. Requires "q settings
5757
/// chat.enableKnowledge true"
58-
#[command(subcommand)]
58+
#[command(subcommand, hide = true)]
5959
Knowledge(KnowledgeSubcommand),
6060
/// Open $EDITOR (defaults to vi) to compose a prompt
6161
#[command(name = "editor")]

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,14 @@ pub const EXTRA_HELP: &str = color_print::cstr! {"
144144
<black!>You can now configure the Amazon Q CLI to use MCP servers. \nLearn how: https://docs.aws.amazon.com/en_us/amazonq/latest/qdeveloper-ug/command-line-mcp.html</black!>
145145
146146
<cyan,em>Tips:</cyan,em>
147-
<em>!{command}</em> <black!>Quickly execute a command in your current session</black!>
148-
<em>Ctrl(^) + j</em> <black!>Insert new-line to provide multi-line prompt. Alternatively, [Alt(⌥) + Enter(⏎)]</black!>
149-
<em>Ctrl(^) + s</em> <black!>Fuzzy search commands and context files. Use Tab to select multiple items.</black!>
150-
<black!>Change the keybind to ctrl+x with: q settings chat.skimCommandKey x (where x is any key)</black!>
151-
<em>chat.editMode</em> <black!>Set editing mode (vim or emacs) using: q settings chat.editMode vi/emacs</black!>
147+
<em>!{command}</em> <black!>Quickly execute a command in your current session</black!>
148+
<em>Ctrl(^) + j</em> <black!>Insert new-line to provide multi-line prompt</black!>
149+
<black!>Alternatively, [Alt(⌥) + Enter(⏎)]</black!>
150+
<em>Ctrl(^) + s</em> <black!>Fuzzy search commands and context files</black!>
151+
<black!>Use Tab to select multiple items</black!>
152+
<black!>Change the keybind using: q settings chat.skimCommandKey x</black!>
153+
<em>chat.editMode</em> <black!>The prompt editing mode (vim or emacs)</black!>
154+
<black!>Change using: q settings chat.skimCommandKey x</black!>
152155
"};
153156

154157
#[derive(Debug, Clone, PartialEq, Eq, Default, Args)]
@@ -353,13 +356,10 @@ const ROTATING_TIPS: [&str; 16] = [
353356

354357
const GREETING_BREAK_POINT: usize = 80;
355358

356-
const POPULAR_SHORTCUTS: &str = color_print::cstr! {
357-
"<black!><green!>/help</green!> all commands <em>•</em> <green!>ctrl + j</green!> new lines
358-
<green!>ctrl + s</green!> fuzzy search <em>•</em> <green!>ctrl + f</green!> accept completion</black!>"};
359+
const POPULAR_SHORTCUTS: &str = color_print::cstr! {"<black!><green!>/help</green!> all commands <em>•</em> <green!>ctrl + j</green!> new lines <em>•</em> <green!>ctrl + s</green!> fuzzy search</black!>"};
359360
const SMALL_SCREEN_POPULAR_SHORTCUTS: &str = color_print::cstr! {"<black!><green!>/help</green!> all commands
360361
<green!>ctrl + j</green!> new lines
361362
<green!>ctrl + s</green!> fuzzy search
362-
<green!>ctrl + f</green!> accept completion
363363
</black!>"};
364364

365365
const RESPONSE_TIMEOUT_CONTENT: &str = "Response timed out - message took too long to generate";

feed.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,13 @@
1212
},
1313
{
1414
"type": "release",
15-
"date": "2025-06-27",
15+
"date": "2025-06-30",
1616
"version": "1.12.2",
1717
"title": "Version 1.12.2",
1818
"changes": [
1919
{
2020
"type": "added",
21-
"description": "(Beta) The `/knowledge` command in `q chat`, a knowledge base with semantic search capabilities. Enable it with `q settings chat.enableKnowledge true` - [#101](https://github.com/aws/amazon-q-developer-cli-autocomplete/pull/101)"
22-
},
23-
{
24-
"type": "added",
25-
"description": "Autocompletion with ghost text in `q chat` - [#288](https://github.com/aws/amazon-q-developer-cli-autocomplete/pull/288)"
21+
"description": "Autocompletion with ghost text in `q chat`. Accept completions using right arrow or `Ctrl + f` - [#288](https://github.com/aws/amazon-q-developer-cli-autocomplete/pull/288)"
2622
},
2723
{
2824
"type": "added",

0 commit comments

Comments
 (0)