Skip to content

Commit 2ddd405

Browse files
committed
feat: Add alias for /config command as /settings, enhance slash command descriptions, and introduce quiet mode in configuration
1 parent a06bd79 commit 2ddd405

File tree

12 files changed

+14
-3
lines changed

12 files changed

+14
-3
lines changed

docs/project/TODO.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Add /settings as an alias for the /config command
33

44
--
55

6-
7-
86
Add LSP (Language Server Protocol) tool for code intelligence features like go-to-definition, find references, and hover documentation
97

108
--

src/acp/zed.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,6 +2103,7 @@ mod tests {
21032103
api_key_env: "TEST_API_KEY".to_string(),
21042104
workspace: workspace.to_path_buf(),
21052105
verbose: false,
2106+
quiet: false,
21062107
theme: "test".to_string(),
21072108
reasoning_effort: ReasoningEffortLevel::Low,
21082109
ui_surface: UiSurfacePreference::default(),

src/agent/runloop/slash_commands.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ pub async fn handle_slash_command(
209209
prompt: prompt_text.to_string(),
210210
})
211211
}
212-
"config" => Ok(SlashCommandOutcome::ShowConfig),
212+
"config" | "settings" => Ok(SlashCommandOutcome::ShowConfig),
213213
"clear" => {
214214
if !args.is_empty() {
215215
renderer.line(MessageStyle::Error, "Usage: /clear")?;

tests/cli_harness_failures.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,4 @@ fn config_override_failure_is_reported() {
4545
.and(predicate::str::contains(missing_config.to_string_lossy())),
4646
);
4747
}
48+

vtcode-core/src/llm/providers/openai.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3668,3 +3668,4 @@ mod streaming_tests {
36683668
}
36693669
}
36703670
}
3671+

vtcode-core/src/tools/file_ops.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2602,3 +2602,4 @@ mod paging_tests {
26022602
);
26032603
}
26042604
}
2605+

vtcode-core/src/tools/mcp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,3 +87,4 @@ impl Tool for McpProxyTool {
8787
ToolPolicy::Prompt
8888
}
8989
}
90+

vtcode-core/src/tools/parallel_executor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,3 +351,4 @@ mod tests {
351351
assert_ne!(read_group.unwrap().group_id, write_group.unwrap().group_id);
352352
}
353353
}
354+

vtcode-core/src/ui/slash.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ pub static SLASH_COMMANDS: Lazy<Vec<SlashCommandInfo>> = Lazy::new(|| {
3030
name: "config",
3131
description: "View the effective vtcode.toml configuration (including keyboard protocol settings)",
3232
},
33+
SlashCommandInfo {
34+
name: "settings",
35+
description: "View the effective vtcode.toml configuration (alias for /config)",
36+
},
3337
SlashCommandInfo {
3438
name: "model",
3539
description: "Launch the interactive model picker",

vtcode-core/tests/loop_detector_props.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,4 @@ proptest! {
4343
prop_assert!(warning.is_some());
4444
}
4545
}
46+

0 commit comments

Comments
 (0)