summaryrefslogtreecommitdiff
path: root/doc/todo/simple_text_parsing_or_regex_in_template_or_shortcut.mdwn
blob: e6f77dd5993920114a7413c583d0e6a85adc9bf8 (plain)

Either [[plugins/template]] or [[plugins/shortcut]] should support some form of very simple text parsing or regex application, to make it possible to write shortcuts like these:

[[mmlist listname@lists.example.org]] -> <listname@example.org> ([mailman page] (http://lists.example.org/mailman/listinfo/listname)
[[debchangelog packagename]] -> [packagename changelog](http://packages.debian.org/changelogs/pool/main/p/packagename/current/changelog)

For shortcut definitions, a match parameter could supply a regex, and then the url and desc parameters could make use of the named or numbered groups from the match.

--[[JoshTriplett]]