<div dir="auto"><div>Well, I can give one reason for it, a personal and very particular one, so maybe it's not worth it.</div><div dir="auto"><br></div><div dir="auto">I have a huge PDF that contains ID's for programming exercises, I would like to see every occurrence of it when I search it, since every one of them is preceded by UVa.</div><div dir="auto"><br></div><div dir="auto">I don't really like the sidebar either, but I brought it here because maybe some people like it.</div><div dir="auto"><br></div><div dir="auto">And I mean that Okular stops, does the search, then it clears for the user to use. At least it was my experience in the label search.</div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto"><br><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr">Em seg, 4 de mar de 2019 20:45, Albert Astals Cid <<a href="mailto:aacid@kde.org">aacid@kde.org</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">El divendres, 1 de març de 2019, a les 3:23:30 CET, João Netto va escriure:<br>
> Hi,<br>
<br>
Hey<br>
<br>
> Lately, I've been messing around with Okular search feature and I've been<br>
> trying to improve it according to user request, namely 399446<br>
> <<a href="https://bugs.kde.org/show_bug.cgi?id=399446" rel="noreferrer noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=399446</a>> and 377487<br>
> <<a href="https://bugs.kde.org/show_bug.cgi?id=377487" rel="noreferrer noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=377487</a>>.<br>
> One of the features that stood out and has some duplicates was the "Find<br>
> and highlight all", now, there are lots of ways that readers do that.<br>
> Evince has a side panel that is updated every time a match is found and<br>
> Adobe Reader has an advanced search that shows every match after the search<br>
> is done. I did not test other readers, but I'll include images of the<br>
> panels on both tested.<br>
> <br>
> The point that I want to bring in this discussion is, should Okular<br>
> implement this feature? I'm up to the job if it's the general consensus.<br>
> And, if yes, how should we proceed about that?<br>
> Should we add the sidebar right below Bookmarks, or we should do an<br>
> Advanced search and open in a new window?<br>
<br>
To me it being in the sidebar doesn't really make much sense, but it seems to be what evince and Adobe do so what do i know :D<br>
<br>
> As of now, there are four types of search ALLDOC, NEXTRESULT, PREVRESULT,<br>
> GOOGLESEARCH, alldoc finds and highlights all, next and prev is the most<br>
> used and googlesearch is for the thumbnail.<br>
> <br>
> If we do the evince way, we would have to redesign the next and prev<br>
> result, we would just use alldoc search, grab the metadata and implement on<br>
> the sidebar. The problem right now is that this consumes lots of time<br>
> because it stops the program to search. If we do this in a separate thread,<br>
> maybe worth the effort, but lots of change would be required to the<br>
> textpage.cpp. (Or we could add a find all button?)<br>
> <br>
> If we do the Adobe Reader way, the users who really want it still would<br>
> have it, they can endure the waiting, some small changes would be required<br>
> to textpage.cpp depending on how we choose to implement the advanced search<br>
> widget.<br>
> <br>
> I'm open to discussion to any point, and if we go through with this, I'll<br>
> make sure to take my time and do it, but I guess it will take a while.<br>
<br>
Honestly i don't see the need of doing an all document search every single time people do search one word (i.e what evince does), but well i guess that's obvious since otherwise I would have implemented it.<br>
<br>
For the people out there that for some reason need to find all the occurrences at the same time (noone seems to have explained why they need this with other reason than "evince and adobe do this", but whatever) i think a separate option makes more sense.<br>
<br>
What do you mean with "it stops the program to search" though?<br>
<br>
Cheers,<br>
  Albert<br>
<br>
> <br>
> Thanks for your attention.<br>
> <br>
<br>
<br>
<br>
<br>
</blockquote></div></div></div>