KeyToMeta

A plugin for converting keys to metakeys
A alternative (and maybe better) implementation is to allow baseName matching. So just count the / in the glob expression and match with according basename. That would allow the expression "comment" to correctly match all key names ending with comment.