[Okular-devel] [PATCH] Support regular expressions and case sensitivity in TOC search input

Elvis Stansvik elvstone at gmail.com
Thu Aug 13 14:45:26 CEST 2009


Hi Okular devs,

First post to list; Thanks for the best PDF reader I've ever used.

At the moment I'm in my last week of GSoC, working on tables support
for KOffice, so this summer I've had to read a lot in the ODF
specification. The search line functionality in the TOC is great in
Okular, but I really missed regular expression support there, as I'm
constantly switching back and forth between two chapters of the spec,
and being able to type e.g. "chapter foo|chapter bar" would be really
nice.

Attached is a patch for review that adds a context submenu to the
search line called "Search Options" where you can enable regular
expression support and case sensitivity. Also attaching a screen shot
to show what it looks like.

If you're OK with the patch I can commit it right away. If you don't
want this feature that's OK too ;)

Take care,
Elvis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regexp-in-toc-search.diff
Type: text/x-patch
Size: 5938 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20090813/0ee60736/attachment-0001.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: regexp-in-toc-search.png
Type: image/png
Size: 411554 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/okular-devel/attachments/20090813/0ee60736/attachment-0001.png 


More information about the Okular-devel mailing list