Bug 484290

Summary: Searching text within documents
Product: [Plasma] krunner Reporter: agapp11 <agapp11>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: REPORTED ---    
Severity: normal CC: alexander.lohnau, natalie_clarius, nicolas.fella
Priority: NOR    
Version: 6.0.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description agapp11@hotmail.com 2024-03-23 00:41:42 UTC
Is it possible to make krunner find specific text within pdf/writer/etc documents and then open the document to the specific location in the document of that text? or at least have krunner show a "quote" with that search term (from the document) so i could copy/paste and look for it in the document manually?

For example: if I search for the term "shrimp" with krunner, it would be nice if it finds it within my libreoffice writer document and open the document to page 4 halfway down the page, where that term is found. If there are multiple terms it would be nice if it presented multiple options from the same document (with a few words before and after for context) or from other documents.

This missing functionality will put KDE so much further ahead of both Windows and MacOS (not to mention how useful it would be to have!)
Comment 1 agapp11@hotmail.com 2024-03-23 00:53:29 UTC
(In reply to agapp11@hotmail.com from comment #0)
> Is it possible to make krunner find specific text within pdf/writer/etc
> documents and then open the document to the specific location in the
> document of that text? or at least have krunner show a "quote" with that
> search term (from the document) so i could copy/paste and look for it in the
> document manually?
> 
> For example: if I search for the term "shrimp" with krunner, it would be
> nice if it finds it within my libreoffice writer document and open the
> document to page 4 halfway down the page, where that term is found. If there
> are multiple terms it would be nice if it presented multiple options from
> the same document (with a few words before and after for context) or from
> other documents.
> 
> This missing functionality will put KDE so much further ahead of both
> Windows and MacOS (not to mention how useful it would be to have!)

In addition, I forgot to mention (and I don't know how to edit here), that it would be nice if when you search for "shrimp" using krunner it presents a brief description from the document:

"...does not eat shrimp as it he has allergies"

with the word shrimp highlighted/italicized and then clicking it will open the specific document to that page where the term is located (as mentioned previously).