fix: inherit .otag.toml from parent folders and use the file's own folder config

This commit is contained in:
randogoth 2026-10-24 21:25:10 +03:00
parent 81d9d62db3
commit 042a60713a
4 changed files with 59 additions and 50 deletions

View file

@ -138,7 +138,7 @@ stems/ --- @archive
The file can be edited by hand. A line without ` --- ` stops otag with an error naming the file and line, so nothing gets overwritten until it is fixed. Note words starting with `+`, `@` or `#` are read as tags.
An optional `.otag.toml` in the same folder configures `scan` and `write` there:
An optional `.otag.toml` configures `scan` and `write` for its folder and all subfolders. Each file uses the nearest `.otag.toml` above it, which replaces any further up as a whole:
```toml
plugins = ["id3", "pdf"]