zioth / dokuwiki-autotooltip

DokuWiki plugin to add styled tooltip functionality, and to automatically generate link tooltips based on page abstracts.
MIT License
5 stars 4 forks source link

Regex for INCLUDE, in addition to EXCLUDE pages #6

Closed vaniwiki closed 5 years ago

vaniwiki commented 5 years ago

I only want pages from certain namespaces, usually 2-5 levels deep. This will make the regex's easier, rather than negative excluding...? Or if you know how, please let me also! :)

vaniwiki commented 5 years ago

I'll add to this point: I want to show tooltips only from certain namespace(s), and I want them to show only when certain conditions are met. But maybe now I'm being too picky. :)

zioth commented 5 years ago

It should be easy enough to add an include option. With both options available, you'll be able to say "include all pages that match regex1 except those that match regex2."

zioth commented 5 years ago

Done. Enjoy!

You could have used a negated regex, like this: (?!whatever), but I prefer having two settings, so that you can more easily say "include these pages, but not those pages."