You are not logged in.
Hi,
i did several tests. If i search with dolphin a file dart1.cpp, it can't find it, but with find utility used on Dolphin it works.
balooctl status dart1.cpp
Fichier : /home/archqt/_Prog_Cours/dart1.cpp
Indexation simple : ProgramméeSo this file can't be found. I created a new file and force it to be indexed
balooctl index toto.cpp
Indexing /home/archqt/_Prog_Cours/toto.cpp
File(s) indexedSo now this file can be found. Is there a way to fix it ? And here is what i have 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,*.csproj,*.m4,*.rej,*.gmo,*.pc,*.omf,*.aux,*.tmp,*.po,*.vm*,*.nvram,*.rcore,*.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,*.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=5
only basic indexing=trueIf i read well cpp file should be indexed
Thanks
PS and another thing strange to find cpp *.cpp doesn't work with dolphin/baloo search *.*cpp works
Last edited by archqt (2020-05-26 13:18:58)
Offline
Source code files aren't indexed by default, aside from that exclude filters list there should also be a mimetype exclude list, see:
balooctl config ls excludeMimeTypeswere you probably have to remove the relevant mimetypes as well. E.g.
balooctl config rm excludeMimeTypes text/x-c++srcOffline
Source code files aren't indexed by default, aside from that exclude filters list there should also be a mimetype exclude list, see:
balooctl config ls excludeMimeTypeswere you probably have to remove the relevant mimetypes as well. E.g.
balooctl config rm excludeMimeTypes text/x-c++src
Thanks.
i did it but even with a balooctl check after it doesn't work. Do i have to purge everything ?
Last edited by archqt (2020-05-25 20:59:29)
Offline
There are multiple mime types that match for c++ files take a closer look at the list to identify all that could be relevant.
Offline
There are multiple mime types that match for c++ files take a closer look at the list to identify all that could be relevant.
Thanks it works BUT for me it is a bug. Someone that searchs a thing expect to find real files...
Offline
Not really, it's a very intentional omission of source code files, probably because the index could artificially blow up with thousands of code files depending on codebase sizes, and most often there being better tools for handling codebases (git index searchers, IDEs...) You might be able to add folders you are particularly interested in to the whitelist, but I'm not sure whether that will ignore the blacklist for that particular folder.
What I do think might even be worth a feature request or so is having some toggle in dolphin on whether it should do a "primitive" file search when it isn't feasible to have them in the baloo index. (It technically has such a fallback already but that only triggers on explicitly blacklisted folders/mount points)
Last edited by V1del (2020-05-26 09:29:06)
Offline