mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
Merge branch 'main' into shell-commands-new
This commit is contained in:
commit
b4cbd9e4bd
3 changed files with 7 additions and 4 deletions
|
@ -1058,7 +1058,7 @@ class Commands:
|
||||||
self.io.tool_output("No repository map available.")
|
self.io.tool_output("No repository map available.")
|
||||||
|
|
||||||
def cmd_map_refresh(self, args):
|
def cmd_map_refresh(self, args):
|
||||||
"Force a refresh of the repository map and print it out"
|
"Force a refresh of the repository map"
|
||||||
repo_map = self.coder.get_repo_map(force_refresh=True)
|
repo_map = self.coder.get_repo_map(force_refresh=True)
|
||||||
if repo_map:
|
if repo_map:
|
||||||
self.io.tool_output("The repo map has been refreshed, use /map to view it.")
|
self.io.tool_output("The repo map has been refreshed, use /map to view it.")
|
||||||
|
|
|
@ -115,7 +115,10 @@ class AutoCompleter(Completer):
|
||||||
|
|
||||||
candidates = self.words
|
candidates = self.words
|
||||||
candidates.update(set(self.fname_to_rel_fnames))
|
candidates.update(set(self.fname_to_rel_fnames))
|
||||||
candidates = [(word, f"`{word}`") for word in candidates]
|
candidates = [
|
||||||
|
(word, f"`{word}`" if word not in self.fname_to_rel_fnames else word)
|
||||||
|
for word in candidates
|
||||||
|
]
|
||||||
|
|
||||||
last_word = words[-1]
|
last_word = words[-1]
|
||||||
for word_match, word_insert in candidates:
|
for word_match, word_insert in candidates:
|
||||||
|
@ -124,7 +127,7 @@ class AutoCompleter(Completer):
|
||||||
if rel_fnames:
|
if rel_fnames:
|
||||||
for rel_fname in rel_fnames:
|
for rel_fname in rel_fnames:
|
||||||
yield Completion(
|
yield Completion(
|
||||||
f"`{rel_fname}`", start_position=-len(last_word), display=rel_fname
|
rel_fname, start_position=-len(last_word), display=rel_fname
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
yield Completion(
|
yield Completion(
|
||||||
|
|
|
@ -29,7 +29,7 @@ cog.out(get_help_md())
|
||||||
| **/lint** | Lint and fix provided files or in-chat files if none provided |
|
| **/lint** | Lint and fix provided files or in-chat files if none provided |
|
||||||
| **/ls** | List all known files and indicate which are included in the chat session |
|
| **/ls** | List all known files and indicate which are included in the chat session |
|
||||||
| **/map** | Print out the current repository map |
|
| **/map** | Print out the current repository map |
|
||||||
| **/map-refresh** | Force a refresh of the repository map and print it out |
|
| **/map-refresh** | Force a refresh of the repository map |
|
||||||
| **/model** | Switch to a new LLM |
|
| **/model** | Switch to a new LLM |
|
||||||
| **/models** | Search the list of available models |
|
| **/models** | Search the list of available models |
|
||||||
| **/quit** | Exit the application |
|
| **/quit** | Exit the application |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue