mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-25 14:55:00 +00:00
Changed prompt message for creating a file when no files matched the search term.
This commit is contained in:
parent
296053a8d7
commit
f7b58b780b
1 changed files with 3 additions and 3 deletions
|
@ -151,10 +151,10 @@ class Commands:
|
||||||
matched_files = [file for file in files if word in file]
|
matched_files = [file for file in files if word in file]
|
||||||
if not matched_files:
|
if not matched_files:
|
||||||
if self.coder.repo is not None:
|
if self.coder.repo is not None:
|
||||||
create_file = Confirm.ask(f"No files matched '{word}'. Do you want to create the file and add it to git?")
|
create_file = Confirm.ask(f"[red]No files matched '{word}'. Do you want to create the file and add it to git?")
|
||||||
else:
|
else:
|
||||||
create_file = Confirm.ask(f"No files matched '{word}'. Do you want to create the file?")
|
create_file = Confirm.ask(f"[red]No files matched '{word}'. Do you want to create the file?")
|
||||||
|
|
||||||
if create_file:
|
if create_file:
|
||||||
with open(os.path.join(self.coder.root, word), 'w') as new_file:
|
with open(os.path.join(self.coder.root, word), 'w') as new_file:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue