Paul Gauthier
|
c745d0dc38
|
wip
|
2024-09-27 16:21:18 -07:00 |
|
Paul Gauthier (aider)
|
9c5ef0b41a
|
style: run linter
|
2024-09-27 16:17:41 -07:00 |
|
Paul Gauthier (aider)
|
2d3605156e
|
feat: Implement file path completion for read-only command
|
2024-09-27 16:17:37 -07:00 |
|
Paul Gauthier
|
8e276939a7
|
feat: Implement completions_raw_read_only method
diff --git a/aider/commands.py b/aider/commands.py
index 80dd81dd..d4d4d4d1 100644
--- a/aider/commands.py
+++ b/aider/commands.py
@@ -580,7 +580,31 @@ class Commands:
return fname
def completions_raw_read_only(self, document, complete_event):
- pass
+ # Extract the part of the input after the command
+ text = document.text[len("/read-only") :].lstrip()
+
+ # Create a PathCompleter
+ path_completer = PathCompleter(
+ only_directories=False,
+ expanduser=True,
+ get_paths=lambda: [self.coder.root],
+ )
+
+ # Create a new Document object with the modified text
+ new_document = Document(text, cursor_position=len(text))
+
+ # Get completions from the PathCompleter
+ completions = path_completer.get_completions(new_document, complete_event)
+
+ # Yield the completions
+ for completion in completions:
+ # Adjust the start position to account for the command
+ yield Completion(
+ completion.text,
+ start_position=completion.start_position - len(document.text) + len(text),
+ display=completion.display,
+ display_meta=completion.display_meta,
+ )
def completions_add(self):
files = set(self.coder.get_all_relative_files())
|
2024-09-27 16:17:35 -07:00 |
|
Paul Gauthier (aider)
|
c2afdcfdb9
|
fix: Create new Document object for path completion in completions_raw_read_only
|
2024-09-27 16:10:16 -07:00 |
|
Paul Gauthier
|
8e02cadfbc
|
fix: Ensure command starts with slash before retrieving raw completions
|
2024-09-27 16:10:14 -07:00 |
|
Paul Gauthier (aider)
|
0a77b6cfac
|
feat: Add Completion import to aider/commands.py
|
2024-09-27 16:07:35 -07:00 |
|
Paul Gauthier (aider)
|
f8390a889b
|
style: Ran the linter
|
2024-09-27 16:06:44 -07:00 |
|
Paul Gauthier (aider)
|
b930a1db40
|
feat: Add raw completer for cmd_read_only command
|
2024-09-27 16:06:39 -07:00 |
|
Paul Gauthier (aider)
|
ee4de6bd1c
|
feat: Add get_raw_completions method to Commands class
|
2024-09-27 16:05:40 -07:00 |
|
Paul Gauthier (aider)
|
6c2c3942bf
|
feat: Add document and complete_event parameters to get_command_completions
|
2024-09-27 16:04:17 -07:00 |
|
Paul Gauthier
|
3ec0861727
|
fix: Add support for raw completers in AutoCompleter
|
2024-09-27 16:04:16 -07:00 |
|
Paul Gauthier (aider)
|
37b512e4fc
|
feat: Update get_command_completions and get_completions methods
|
2024-09-27 15:59:56 -07:00 |
|
Paul Gauthier
|
01437fa58c
|
copy
|
2024-09-27 14:29:35 -07:00 |
|
Paul Gauthier
|
927d03cc37
|
copy
|
2024-09-27 14:28:53 -07:00 |
|
Paul Gauthier (aider)
|
114fb2a889
|
style: Improve code formatting and readability
|
2024-09-27 14:26:56 -07:00 |
|
Paul Gauthier (aider)
|
f95c4626cf
|
fix: Handle clipboard copy errors in cmd_copy
|
2024-09-27 14:26:50 -07:00 |
|
Paul Gauthier (aider)
|
11db5d95a0
|
feat: Add /copy command to copy last assistant message
|
2024-09-27 14:25:22 -07:00 |
|
Paul Gauthier (aider)
|
7d79dd00af
|
style: Improve code formatting and readability
|
2024-09-27 14:21:43 -07:00 |
|
Paul Gauthier (aider)
|
0c470662bb
|
feat: Add /copy command to copy last assistant message to clipboard
|
2024-09-27 14:21:37 -07:00 |
|
Paul Gauthier
|
7c1318274e
|
Revert "feat: include non-repo files for completing /read"
This reverts commit d2fbc92507 .
|
2024-09-27 13:17:36 -07:00 |
|
Paul Gauthier
|
a766395651
|
Merge branch 'main' of github.com:paul-gauthier/aider
|
2024-09-27 13:16:15 -07:00 |
|
paul-gauthier
|
2dfc47f5c6
|
Merge pull request #1757 from jbellis/read-nonrepo
feat: include non-repo files for completing /read
|
2024-09-27 13:15:23 -07:00 |
|
Paul Gauthier
|
48bd616092
|
copy
|
2024-09-27 13:10:41 -07:00 |
|
Paul Gauthier
|
810aeccf94
|
fix: Replace extra_headers and extra_body with extra_params in Coder, ChatSummary, and GitRepo
|
2024-09-27 13:09:43 -07:00 |
|
Paul Gauthier (aider)
|
c24e947b18
|
style: Run linter
|
2024-09-27 13:02:47 -07:00 |
|
Paul Gauthier (aider)
|
74f615bbb4
|
feat: Consolidate extra parameters in sendchat.py
|
2024-09-27 13:02:44 -07:00 |
|
Paul Gauthier (aider)
|
eb0331baed
|
feat: wrap max_tokens in extra_params for ModelSettings
|
2024-09-27 13:01:20 -07:00 |
|
Paul Gauthier (aider)
|
c3e44b498d
|
feat: update ModelSettings in aider/models.py
|
2024-09-27 12:58:45 -07:00 |
|
Paul Gauthier (aider)
|
58c856505b
|
feat: Add extra_params field to ModelSettings class and update instances
|
2024-09-27 12:58:21 -07:00 |
|
Paul Gauthier
|
932aaea845
|
copy
|
2024-09-27 12:56:47 -07:00 |
|
Paul Gauthier
|
d50d97ab26
|
Merge branch 'main' of github.com:paul-gauthier/aider
|
2024-09-27 12:32:09 -07:00 |
|
Paul Gauthier
|
3c8f15f924
|
copy
|
2024-09-27 12:32:03 -07:00 |
|
paul-gauthier
|
c2c4dbd2a8
|
Merge pull request #1595 from jbellis/paste
feat: rename /clipboard to /paste
|
2024-09-27 12:31:53 -07:00 |
|
paul-gauthier
|
04d6fc5ef4
|
Merge pull request #1742 from rti/fix-apply-tool-warning-color
fix(InputOutput): apply tool warning color
|
2024-09-27 12:29:49 -07:00 |
|
Paul Gauthier (aider)
|
b2549a78bd
|
fix: Move imports to top of file
|
2024-09-27 12:25:10 -07:00 |
|
Paul Gauthier
|
3b9f561956
|
fix: Refactor code to handle exceptions more gracefully
|
2024-09-27 12:25:02 -07:00 |
|
Paul Gauthier (aider)
|
6ab1fdfe36
|
fix: fix indentation error in get_index function in aider/help.py
|
2024-09-27 12:23:09 -07:00 |
|
Paul Gauthier (aider)
|
8b0314ae77
|
style: run linter and fix formatting issues in aider/help.py
|
2024-09-27 12:22:12 -07:00 |
|
Paul Gauthier (aider)
|
cb1f6f2e3a
|
fix: handle exceptions during index loading and recreate cache if necessary in aider/help.py
|
2024-09-27 12:22:09 -07:00 |
|
Paul Gauthier
|
a230fa10b3
|
feat: Add option to show announcements only when verbose mode is enabled
|
2024-09-27 12:12:35 -07:00 |
|
Paul Gauthier
|
1971285345
|
copy
|
2024-09-27 11:56:52 -07:00 |
|
Paul Gauthier
|
e1c2dd53cf
|
copy
|
2024-09-27 11:54:23 -07:00 |
|
Paul Gauthier
|
cfbf943eb1
|
copy
|
2024-09-27 11:48:38 -07:00 |
|
Paul Gauthier (aider)
|
57b832fed1
|
style: add minimal border to table
|
2024-09-27 11:31:26 -07:00 |
|
Paul Gauthier (aider)
|
da3e0f6ec8
|
style: Implement responsive table design
|
2024-09-27 11:28:52 -07:00 |
|
Paul Gauthier
|
9575f4e5ea
|
feat: Increase font size of chart title
|
2024-09-27 11:28:51 -07:00 |
|
Paul Gauthier (aider)
|
6e0f981689
|
fix: Update legend colors to match bar colors in chart
|
2024-09-27 11:23:41 -07:00 |
|
Paul Gauthier (aider)
|
04978a232b
|
feat: Add gpt-4o-mini to chart configuration
|
2024-09-27 11:22:16 -07:00 |
|
Paul Gauthier
|
44b61fc370
|
fix: Update label format in architect post
|
2024-09-27 11:22:15 -07:00 |
|