mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 09:44:59 +00:00
quote autocompletions
This commit is contained in:
parent
cdcb8b2e73
commit
e4805490f5
1 changed files with 4 additions and 2 deletions
|
@ -68,9 +68,11 @@ class FileContentCompleter(Completer):
|
|||
rel_fnames = self.fname_to_rel_fnames.get(word, [])
|
||||
if rel_fnames:
|
||||
for rel_fname in rel_fnames:
|
||||
yield Completion(rel_fname, start_position=-len(last_word))
|
||||
yield Completion(
|
||||
f"`{rel_fname}`", start_position=-len(last_word), display=rel_fname
|
||||
)
|
||||
else:
|
||||
yield Completion(word, start_position=-len(last_word))
|
||||
yield Completion(f"`{word}`", start_position=-len(last_word), display=word)
|
||||
|
||||
|
||||
class InputOutput:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue