Bug 489922 - File search / Baloo: Expose list of excluded file types for content indexing
Summary: File search / Baloo: Expose list of excluded file types for content indexing
Status: REPORTED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_baloo (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-08 12:09 UTC by postix
Modified: 2025-01-13 12:43 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :)