Allow add file (read-only) outside of workspace
Useful for add file from git submodule, or other library source file.
Interesting, makes sense, I wonder how we should present those files in context completion, any suggestions?
I'm finding hard how the UX would be for this one, we can't just return all system files for completion and there is no option for manual add contexts not in completion.
It seems Cursor has the same problem, so the workaround for now is to add the folder as a workspace to ECA be aware of it.
Maybe just return child items in the folder if prefix is /, ./ , ../, ~/ ...
hum, maybe, will take a look if with that would work
Some ideas for a Emacs user interface:
- Use find-file/project-find-file or a custom function
- Add files from dired
For other editors
- Use some file picker where you can select 1 or many files
I think the problem here is that:
- clients request server for what available contexts exists and they should be able to complete/choose via
chat/queryContext - server return the contexts checking for workspace root.
otherwise we may have too much login on clients and not centralized, so would be nice to fix that somehow in the query, like user type ~/ or ../ and server realizes that and return that folder in completion
Ok, I think I have something work for this in server with minor changes in client and seems to fix the problem
Done! LMK if that is enough for you @jilen