This branch implements the feature to include the content of all open buffers in templates using the placeholder {{multifileconent}}.
An example would be the following hook:
CompleteMultiContext = function(prt, params)
local template = [[
I have the following code from {{filename}} and other realted files:
```{{filetype}}
{{multifilecontent}}
Please look at the following section specifically:
```{{filetype}}
{{selection}}
```
Please finish the code above carefully and logically.
Respond just with the snippet of code that should be inserted."
]]
local agent = prt.get_command_agent()
prt.Prompt(params, prt.ui.Target.append, agent, nil, template)
end
A pending feature included in this branch is the option to select buffers via fzf-lua.
This branch implements the feature to include the content of all open buffers in templates using the placeholder
{{multifileconent}}
.An example would be the following hook:
end