Add README section on fallback formatter config

This commit is contained in:
Marty Oehme 2023-09-15 09:28:12 +02:00
parent c6b16e19e3
commit f2d8306f1f
Signed by: Marty
GPG Key ID: EDBF2ED917B2EF6A
1 changed files with 13 additions and 0 deletions

View File

@ -78,6 +78,19 @@ title-chars = -1
This will ensure that a maximum of 4 words will be placed in the ref, but they do not have a maximum character length,
so will always be fully written out (the default behavior if no title length options are provided).
### Fallback formatter
For anything that is not a reference, use this formatter.
Basically, put the formatter you had before switching to bbt here:
```cfg
[plugins.bbt-formatter]
fallback = jinja2
```
Can be any of the installed papis formatters, including custom ones
(though usually it will be `python`, which is also the default setting).
---
For now this plugin is a rather simple adaption from [this](https://github.com/hrdl-github/papis/commit/b9b9c6eaa3de159e1b210174ef49e90a89271eb8) commit,