Added improved editing support for command-r-plus

This commit is contained in:
Paul Gauthier 2024-04-20 09:59:56 -07:00
parent b882d5db4c
commit cd838901d1
4 changed files with 34 additions and 5 deletions

View file

@ -65,6 +65,8 @@ class WholeFileCoder(Coder):
fname_source = "block"
fname = lines[i - 1].strip()
fname = fname.strip("*") # handle **filename.py**
fname = fname.rstrip(":")
fname = fname.strip("`")
# Did gpt prepend a bogus dir? It especially likes to
# include the path/to prefix from the one-shot example in