Add multiple files at once to context #670
joaomendoncaa
started this conversation in
Ideas
Replies: 2 comments 1 reply
-
This isn't true. Depending on your provider you can select multiple files: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank you. If anyone stumbles upon this whilst using |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I stumbled upon the workflow of wanting to add multiple files to context. The problem is you can only add one buffer at a time with
/file
, or read files with@files
.You hit a wall if you try to use the files tool to read a directory:
Tool files finished with error(s): { "....local/share/nvim/lazy/plenary.nvim/lua/plenary/path.lua:749: EISDIR: illegal operation on a directory" }
.This sounds like a common hurdle, so I'm RFC on whether we should:
make strategies.chat.tools.files.read() handle the edge case of a path being a directory by checking if
p
is a directory and making an iterator that recursively asks permission to read files and buffers each one into acontents
table that then gets ultimately returned as afile
(bad ux IMO, you'll can get locked into an infinite amount of permissions requests)do the same thing, but instead of asking read permission per file we do it on the directory itself and forcefully read all files (I know, dangerous for token consumption)
I know recently we had a big revamp with file watchers instead of static context content — maybe there's something already in motion to handle batch addition which I don't know of. (?)
Beta Was this translation helpful? Give feedback.
All reactions