Elektra
0.9.0
|
Allows regular expressions to be applied as storage plugin. The idea is to have something like "lazy lenses" with regex only on relevant parts of a file. It is unclear if this is a good idea and we do not encourage you to use this plugin. Currently it can only read and the potential harm is limited.
In the configuration, below the key (that must also exist)
other keys define which regex are applied on a text file.
The name of these config keys (with .../regexstore/ stripped of) will be used to build up the names of the keys:
The value of the config key is as follows:
The key also might contain metadata.
The semantics of how the regex works is unsteady and the plugin should be avoided in productive use.
Currently the storage plugin does not have write support. When writing is added, overlapping regex need to be disallowed.
First mount the regexstore with some at least one config key:
(the character classes contain a space and a newline)
So lets say we have a .vimrc with the content:
then we will get two keys with:
Suppose we want to match: