| Summary: | Allow Baloo to index several kinds of text files | ||
|---|---|---|---|
| Product: | [Unmaintained] Baloo | Reporter: | Lorenzo Bettini <lorebett2002> |
| Component: | Baloo File Daemon | Assignee: | Vishesh Handa <me> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 5.9.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Lorenzo Bettini
2015-05-08 16:10:18 UTC
It seems by default we do not index code files which includes java/c++/others. We're planning on bringing back the mimetype configuration options as well as others under an "Advanced" section for Plasma 5.4. Till then you can manually edit the config file - https://community.kde.org/Baloo/Configuration *** This bug has been marked as a duplicate of bug 337583 *** (In reply to Vishesh Handa from comment #1) > It seems by default we do not index code files which includes > java/c++/others. > > We're planning on bringing back the mimetype configuration options as well > as others under an "Advanced" section for Plasma 5.4. Till then you can > manually edit the config file - https://community.kde.org/Baloo/Configuration I don't see any part in the documentation to explicitly enable mime types: only to exclude mime types... am I missing something? (In reply to Lorenzo Bettini from comment #2) > (In reply to Vishesh Handa from comment #1) > > It seems by default we do not index code files which includes > > java/c++/others. > > > > We're planning on bringing back the mimetype configuration options as well > > as others under an "Advanced" section for Plasma 5.4. Till then you can > > manually edit the config file - https://community.kde.org/Baloo/Configuration > > I don't see any part in the documentation to explicitly enable mime types: > only to exclude mime types... am I missing something? If you set it to a blank field, it should include everything (not tested). PS: If the automatic updating feature of baloo doesn't work you can always recreate your db from scratch via `$ balooclt disable` and `$ balooctl enable` (In reply to Vishesh Handa from comment #3) > (In reply to Lorenzo Bettini from comment #2) > > (In reply to Vishesh Handa from comment #1) > > > It seems by default we do not index code files which includes > > > java/c++/others. > > > > > > We're planning on bringing back the mimetype configuration options as well > > > as others under an "Advanced" section for Plasma 5.4. Till then you can > > > manually edit the config file - https://community.kde.org/Baloo/Configuration > > > > I don't see any part in the documentation to explicitly enable mime types: > > only to exclude mime types... am I missing something? > > If you set it to a blank field, it should include everything (not tested). > > PS: If the automatic updating feature of baloo doesn't work you can always > recreate your db from scratch via `$ balooclt disable` and `$ balooctl > enable` I set it to a blank field (though I had no mime exclusions before, anyway); I haven't regenerated the db from scratch, but I was running baloo from the command line so I can see the output: I created a java file with some contents, but neither the name of the file, nor its contents are shown if I search for them in KRunner... so I guess this workaround does not work... you may want to try it yourself, in case I missed something. I just tried it out and it worked for me. $ balooctl stop $ balooctl disable [Basic Settings] Indexing-Enabled=true [General] exclude filters= exclude filters version=2 exclude mimetypes= first run=false folders[$e]=/run/media/vishesh/USB DISK/,$HOME/ $ balooctl enable ---- But that requires to set also exclude filters to an empty string, is that right? That is not an option for me at the moment :) |