Skip to content

Open source AI coding agent. Designed for large projects and real world tasks.

in the REPL, select the first auto-complete suggestion on 'enter' if any suggestions are listed

Dane Schneider2620114aca94
diff --git a/app/cli/cmd/repl.go b/app/cli/cmd/repl.go
index 908bfa85..6f00ab91 100644
--- a/app/cli/cmd/repl.go
+++ b/app/cli/cmd/repl.go
@@ -509,7 +509,12 @@ func executor(in string, p *prompt.Prompt) {
}
}
+ if matchedCmd == "" && len(suggestions) > 0 {
+ matchedCmd = strings.Replace(suggestions[0].Text, "\\", "", 1)
+ }
+
if matchedCmd == "" {
+
cancelOpt := "Cancel"
asPrompt := cmd
if len(asPrompt) > 20 {
diff --git a/releases/cli/versions/2.0.7+1.md b/releases/cli/versions/2.0.7+1.md
new file mode 100644
index 00000000..cc7d12c5
--- /dev/null
+++ b/releases/cli/versions/2.0.7+1.md
@@ -0,0 +1 @@
+- Small adjustment to previous release: in the REPL, select the first auto-complete suggestion on 'enter' if any suggestions are listed.
\ No newline at end of file