https://bugs.kde.org/show_bug.cgi?id=380893
Nate Graham <pointedst...@zoho.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |wishlist
            Summary|Git repo support            |Option to index source
                   |                            |files
             Status|UNCONFIRMED                 |CONFIRMED
     Ever confirmed|0                           |1

--- Comment #3 from Nate Graham <pointedst...@zoho.com> ---
I can see in src/file/fileexcludefilters.cpp that we do explicitly turn off
indexing inside .git folders:

const char* const s_defaultFolderExcludeFilters[] = {
    "po",

    // VCS
    "CVS",
    ".svn",
    ".git",


And baloo also doesn't index source files themselves:

const char* const s_sourceCodeMimeTypes[] = {
    "text/css",
    "text/x-c++src",
    "text/x-c++hdr",
    "text/x-csrc",
    "text/x-chdr", // c header files
    "text/x-python",

But any other files in git repos should be indexed. So it's not so much that
it's excluding git repos *per se*, but if you have a git repo that consists
entirely of source files (no images or text files or anything), none of them
are going to get indexed.

I gather from the existence of this bug report that you would like source files
to be indexed, or for there to at least be an option? Shouldn't be too tough to
add a setting to control this.

In the meantime, you can turn indexing on for source files by editing
~/.config/baloofilerc and removing whatever file types you want from the
exclude filters= list

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to