mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-29 04:00:36 +00:00
Improvements to suggestions & slash commands (#344)
Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
This commit is contained in:
parent
89aa1cad41
commit
416813452e
5 changed files with 46 additions and 25 deletions
|
|
@ -76,6 +76,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
|
|||
const newValue = base + selectedSuggestion.value;
|
||||
onChangeAndMoveCursor(newValue);
|
||||
onSubmit(newValue); // Execute the command
|
||||
onChangeAndMoveCursor(''); // Clear query after submit
|
||||
} else {
|
||||
// Handle @ command completion
|
||||
const atIndex = query.lastIndexOf('@');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue