base16-universal-manager icon indicating copy to clipboard operation
base16-universal-manager copied to clipboard

Implement mechanism to replace a block instead of rewriting the file

Open pinpox opened this issue 6 years ago • 0 comments

Some of the base16-supported applications have no mechanism to source other configuration files from the main config, e.g. applications that are configured via YAML. For the apps that don't allow for a source or include statement in their configuration it would be nice to be able to place a specially marked block in their config that is replaced with the newly generated content instead of rewriting the whole file

e.g. for a YAML file:


value1: foo
value2: bar

# BEGIN BASE16 MANAGED BLOCK
color1: 333333
color2: 444444
# END BASE16 MANAGED BLOCK

value3: baz

The mechanism should then just substitute the marked block

pinpox avatar Dec 08 '18 14:12 pinpox