-
Just ran across this. I have a docs directory I would like to add, but it is just a folder of markdown files and not marked as a source folder.
EDIT: It would be nice to view the existing file collections (all collections) in its own tool window, and perhaps have a context menu option on files from the normal project file tree view to upload into the collection.
-
Right now, there is a relatively simple way to do it. Right click on the folder in project pane and find option:
Mark Directory As >. On my installation it is down as one of the last items on the drop down menu. Then you can mark the directory asSource Rootand then it works. You can then, do the same on some subdirectories and mark them as excluded.This is what works for me, and I also have a "project" with just a bunch of markdown files. I had to organize them into directories before uploading to Grok Collection and it really works well.
| Type |
New Feature
|
| Priority |
Normal
|
| Assignees |
By default, plugin includes all files which IntelliJ considers as source code files. This works for most cases but for non-code projects this is more problematic. You can actually use IntelliJ project feature
Mark directory as...but this is not very flexible. In some cases it might be more useful if a user could specify folders and files as included and excluded for the Grok Collection.