Bug 489922

Summary: File search / Baloo: Expose list of excluded file types for content indexing
Product: [Applications] systemsettings Reporter: postix <postix>
Component: kcm_balooAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: baloo-bugs-null, kde, tagwerk19
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=489919
https://bugs.kde.org/show_bug.cgi?id=446301
https://bugs.kde.org/show_bug.cgi?id=475439
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description postix 2024-07-08 12:09:40 UTC
Baloo does exclude many file types from being indexed, namely those, which are listed in

```
 ~/.config/baloofilerc
[General]
dbVersion=2
exclude filters=*~,*.part,*.o,*.la,*.lo,*.loT,*.moc,moc_*.cpp,qrc_*.cpp,ui_*.h,cmake_install.cmake,CMakeCache.txt,CTestTestfile.cmake,libtool,config.status,confdefs.h,autom4te,conftest,confstat,Makefile.am,*.gcode,.ninja_deps,.ninja_log,build.ninja,*.csproj,*.m4,*.rej,*.gmo,*.pc,*.omf,*.aux,*.tmp,*.po,*.vm*,*.nvram,*.rcore,*.swp,*.swap,lzo,litmain.sh,*.orig,.histfile.*,.xsession-errors*,*.map,*.so,*.a,*.db,*.qrc,*.ini,*.init,*.img,*.vdi,*.vbox*,vbox.log,*.qcow2,*.vmdk,*.vhd,*.vhdx,*.sql,*.sql.gz,*.ytdl,*.class,*.pyc,*.pyo,*.elc,*.qmlc,*.jsc,*.fastq,*.fq,*.gb,*.fasta,*.fna,*.gbff,*.faa,po,CVS,.svn,.git,_darcs,.bzr,.hg,CMakeFiles,CMakeTmp,CMakeTmpQmake,.moc,.obj,.pch,.uic,.npm,.yarn,.yarn-cache,__pycache__,node_modules,node_packages,nbproject,core-dumps,lost+found
exclude filters version=8
```

For many of those files it surely makes no sense to index them, however some could expect to find contents in *.h or *.cpp files. 

It would increase the UX imo if the list were exposed in the System Settings or at least a hint shown, so that a normal user knows about these exclusions and is no longer surprised or can extend the list on their own.
Comment 1 tagwerk19 2025-01-09 12:37:22 UTC
You can use the command line, there's:

    $ balooctl config list excludeFolders
    $ balooctl config list excludeFilters
    $ balooctl config list excludeMimetypes

That's a lot of information for System Settings to handle...
Comment 2 postix 2025-01-09 12:59:29 UTC
(In reply to tagwerk19 from comment #1)
> You can use the command line, there's:
> 
>     $ balooctl config list excludeFolders
>     $ balooctl config list excludeFilters
>     $ balooctl config list excludeMimetypes
> 
> That's a lot of information for System Settings to handle...

excludeFolders you probably don't need, because it's already shown in the list view.

How about making the static "Directory" section tabbed: "Directory", "Filters", "Mimetypes".
For each you have a list view. :)