Bug 336255

Summary: Filename-only desktop search
Product: [Plasma] krunner Reporter: adr.fantini
Component: filesearchAssignee: Pinak Ahuja <pinak.ahuja>
Status: REPORTED ---    
Severity: wishlist CC: nortexoid, simgunz
Priority: NOR    
Version First Reported In: 4.11.10   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description adr.fantini 2014-06-15 10:08:07 UTC
When one searches for a file whose filename is known - e.g. dataset.dat - can be pretty annoyed by the amount of choices offered by KRunner when typing "dataset" (I have tens of .pdf manuals containing that word!), if one has many files containing that word it would be nice to have the possibility to limit the KRunner search to filename-only.
It would be pretty nice if this could be achieved by typing e.g. /dataset or -dataset or something like that.

Reproducible: Always

Steps to Reproduce:
1. Activate KRunner Desktop Search runner
2.  Search anything with KRunner
Actual Results:  
All entries containing the search term are shown

Expected Results:  
Sometimes, it could be nice to have filename-only search, especially when you have many files in your system.
Comment 1 Christoph Feck 2014-06-17 19:47:42 UTC
Related to bug 334274, but not a duplicate. It might sense to still index content, but only query filenames occasionally.
Comment 2 adr.fantini 2014-06-17 19:56:05 UTC
(In reply to comment #1)
> Related to bug 334274, but not a duplicate. It might sense to still index
> content, but only query filenames occasionally.

Yes, definitely related. As the submitter of that feature request, I also used fsrunner. Now that Baloo came out, I decided to give t a try and I find it very nice, but I'm still missing the simplicity of FSRunner in this regard (add to that the fact that Baloo uses a 1GB DB to index my 80GB home folder worries me a bit!).

Having BOTH an option to have a filename-only indexing and a syntax to do filename-only search would be absolutely brilliant.
Comment 3 Michael D 2017-06-26 07:43:19 UTC
It would be even nicer to have an option right in krunner that allows one to configure the "Desktop Search" plugin to return only by filename or by filename and content, just like settings dialog for "File Search" (baloo).
Comment 4 Simone Gaiarin 2017-11-18 18:19:23 UTC
A option would be to sort the search results so that those where the query matches the file name come before those where the query matches the content.