mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
feat: add filename autocompletion to /load and /save commands
This commit is contained in:
parent
2e5fa9dea4
commit
358cbc9388
1 changed files with 6 additions and 0 deletions
|
@ -1246,6 +1246,9 @@ class Commands:
|
|||
output = f"{announcements}\n{settings}"
|
||||
self.io.tool_output(output)
|
||||
|
||||
def completions_raw_load(self, document, complete_event):
|
||||
return self.completions_raw_read_only(document, complete_event)
|
||||
|
||||
def cmd_load(self, args):
|
||||
"Load and execute commands from a file"
|
||||
if not args.strip():
|
||||
|
@ -1270,6 +1273,9 @@ class Commands:
|
|||
self.io.tool_output(f"\nExecuting command: {cmd}")
|
||||
self.run(cmd)
|
||||
|
||||
def completions_raw_save(self, document, complete_event):
|
||||
return self.completions_raw_read_only(document, complete_event)
|
||||
|
||||
def cmd_save(self, args):
|
||||
"Save commands to a file that can reconstruct the current chat session's files"
|
||||
if not args.strip():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue