From 9e6f8e8d037a477c55939ece36ab7b000f876e85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20K=C3=B6lker?= Date: Wed, 24 Jan 2024 02:00:07 +0000 Subject: feat(chat): add `include` role to include files Files may be included in the chat by a special `include` role. Each file's contents will be added to an additional `user` role message with the files separated by `==> {path} <==` where `{path}` is the path to the file. Globbing is expanded out via `glob.glob` and relative apths to the current working directory (as determined by `getcwd()`) will be resolved to absolute paths. Example: ``` >>> user Generate documentation for the following files >>> include /home/user/myproject/src/../requirements.txt /home/user/myproject/**/*.py ``` Fixes: #69 --- syntax/aichat.vim | 1 + 1 file changed, 1 insertion(+) (limited to 'syntax') diff --git a/syntax/aichat.vim b/syntax/aichat.vim index ecd8459..1f32efb 100644 --- a/syntax/aichat.vim +++ b/syntax/aichat.vim @@ -1,5 +1,6 @@ syntax match aichatRole ">>> system" syntax match aichatRole ">>> user" +syntax match aichatRole ">>> include" syntax match aichatRole "<<< assistant" highlight default link aichatRole Comment -- cgit v1.2.3