gpt4all icon indicating copy to clipboard operation
gpt4all copied to clipboard

Improve the LocalDocs support and usefulness by making file extensions configurable.

Open ElanHasson opened this issue 2 years ago • 3 comments

Feature request

Presently LocalDocs only supports a limited number of file extensions.

It would be great if this list was configurable. I'd like to have it index my text based files that have extensions not included in that list.

Motivation

I'd like to have it index my text-based files that have extensions not included in that list.

Your contribution

I haven't done C++ in many years, but I am happy to give a PR a stab. Haven't worked with qml either, but seems straightforward enough.

Overall this seems like a relatively simple thing to add.

From UX perspective, a list of extensions with an add/remove button would be great, along with wildcard (* and ? support) would be ideal. However, for simplicity, text entry field of CSV of file extensions: go,cs,js.

And then of course, instead of using a static const use a dynamically populated QList<QString>.

ElanHasson avatar Jun 05 '23 16:06 ElanHasson

@ElanHasson, I've been doing C++ stuff lately so please feel free to reach out if you need any help.

Although I fully expect that Falcon can do a pretty good job, too. 😆

Github doesn't do a good job notifying me of messages, but I am on XMPP: [email protected]

src-r-r avatar Nov 01 '23 14:11 src-r-r

@src-r-r thanks, now to figure out xmpp lol I have matrix: https://matrix.to/#/@elanhasson:matrix.org

ElanHasson avatar Nov 01 '23 14:11 ElanHasson

this is very helpful does this issue merge to master ? maybe can add swift, image file thx

tocute avatar Jul 04 '24 14:07 tocute

Added in #2396.

cebtenzzre avatar Jul 05 '24 16:07 cebtenzzre