No description
- Zig 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| .gitignore | ||
| build.zig | ||
| build.zig.zon | ||
| README.md | ||
| root.zig | ||
kosm_yaml
YAML for kosm: the yaml adapter, claiming .yaml and .yml files and enabling edit.
var file = try output.edit(.{ .files = "~/.config/wlr-which-key/config.yaml" });
try file.set("background", self.background);
try file.set("corner_r", self.corner_r);
- A file holds one document. Block mappings (
key: valueon lines of their own) nest, somenu.0.submenu.0.cmdreaches into a list of mappings. - Block and flow sequences (
- item,[a, b]) are lists, reached with*and indices. - A flow mapping (
{a: 1}) is one value: paths do not see into it. - Quoted keys match without their quotes:
"\"a.b\""is the keya.b. - A tag or anchor before a value (
!!str,&size) is kept when the value is set. - Strings and colors are written double-quoted, since a bare
#starts a comment; lists and tables are written in flow style. Booleans aretrueandfalse. - Only edits: the adapter does not generate files or insert missing keys.