From e4805490f55984cba479fd58c93006112ebc7a0d Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 29 May 2023 11:32:50 -0700 Subject: [PATCH] quote autocompletions --- aider/io.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/aider/io.py b/aider/io.py index 014f720f7..8e1d01192 100644 --- a/aider/io.py +++ b/aider/io.py @@ -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: