Advanced Search

João Netto joaonetto901 at gmail.com
Fri Mar 1 02:23:30 GMT 2019


Hi,

Lately, I've been messing around with Okular search feature and I've been
trying to improve it according to user request, namely 399446
<https://bugs.kde.org/show_bug.cgi?id=399446> and 377487
<https://bugs.kde.org/show_bug.cgi?id=377487>.
One of the features that stood out and has some duplicates was the "Find
and highlight all", now, there are lots of ways that readers do that.
Evince has a side panel that is updated every time a match is found and
Adobe Reader has an advanced search that shows every match after the search
is done. I did not test other readers, but I'll include images of the
panels on both tested.

The point that I want to bring in this discussion is, should Okular
implement this feature? I'm up to the job if it's the general consensus.
And, if yes, how should we proceed about that?
Should we add the sidebar right below Bookmarks, or we should do an
Advanced search and open in a new window?

As of now, there are four types of search ALLDOC, NEXTRESULT, PREVRESULT,
GOOGLESEARCH, alldoc finds and highlights all, next and prev is the most
used and googlesearch is for the thumbnail.

If we do the evince way, we would have to redesign the next and prev
result, we would just use alldoc search, grab the metadata and implement on
the sidebar. The problem right now is that this consumes lots of time
because it stops the program to search. If we do this in a separate thread,
maybe worth the effort, but lots of change would be required to the
textpage.cpp. (Or we could add a find all button?)

If we do the Adobe Reader way, the users who really want it still would
have it, they can endure the waiting, some small changes would be required
to textpage.cpp depending on how we choose to implement the advanced search
widget.

I'm open to discussion to any point, and if we go through with this, I'll
make sure to take my time and do it, but I guess it will take a while.

Thanks for your attention.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190228/fe16938a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adobe.png
Type: image/png
Size: 72084 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190228/fe16938a/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: evince.png
Type: image/png
Size: 245155 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20190228/fe16938a/attachment-0003.png>


More information about the Okular-devel mailing list