Cleaning up and re-ordering config file reference

This commit is contained in:
Micah Jerome Ellison 2022-01-08 12:56:20 -08:00
parent ff64121f5e
commit e856cc74b9

View file

@ -1,12 +1,15 @@
# Configuration File Reference # Configuration File Reference
You can configure `jrnl` with a configuration file. `jrnl` stores its information in a YAML configuration file.
!!! note !!! note
Backup your journal and config file before editing. Changes to the config file Backup your journal and config file before editing. Changes to the config file
can have destructive effects on your journal! can have destructive effects on your journal!
## Config location ## Config location
You can find your configuration file location by running:
`jrnl --list`
By default, the configuration file is `~/.config/jrnl/jrnl.yaml`. By default, the configuration file is `~/.config/jrnl/jrnl.yaml`.
If you have the `XDG_CONFIG_HOME` variable set, the configuration If you have the `XDG_CONFIG_HOME` variable set, the configuration
file will be saved as `$XDG_CONFIG_HOME/jrnl/jrnl.yaml`. file will be saved as `$XDG_CONFIG_HOME/jrnl/jrnl.yaml`.
@ -15,8 +18,6 @@ file will be saved as `$XDG_CONFIG_HOME/jrnl/jrnl.yaml`.
On Windows, the configuration file is typically found at On Windows, the configuration file is typically found at
`%USERPROFILE%\.config\jrnl\jrnl.yaml`. `%USERPROFILE%\.config\jrnl\jrnl.yaml`.
You can also find your configuration file location by running:
`jrnl --list`
## Config format ## Config format
The configuration file is a [YAML](https://yaml.org/) file and can be edited with The configuration file is a [YAML](https://yaml.org/) file and can be edited with
@ -51,7 +52,7 @@ If `true`, encrypts your journal using AES. Do not change this
value for journals that already have data in them. value for journals that already have data in them.
### template ### template
The path to a file to use as a template for new entries. Only works when you The path to a text file to use as a template for new entries. Only works when you
have the `editor` field configured. have the `editor` field configured.
### tagsymbols ### tagsymbols