mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-10 08:38:32 +02:00
Fix markup in "Advanced Usage" doc (#1655)
* Fix YAML indentiation in a configuration example * Improve Markdown markup
This commit is contained in:
parent
2cec8bdc5b
commit
458faff8a8
1 changed files with 13 additions and 13 deletions
|
@ -20,8 +20,8 @@ for example:
|
||||||
|
|
||||||
``` yaml
|
``` yaml
|
||||||
journals:
|
journals:
|
||||||
default: ~\journal.txt
|
default: ~/journal.txt
|
||||||
work: ~\work.txt
|
work: ~/work.txt
|
||||||
```
|
```
|
||||||
|
|
||||||
The `default` journal gets created the first time you start `jrnl`
|
The `default` journal gets created the first time you start `jrnl`
|
||||||
|
@ -80,6 +80,7 @@ The `work` journal is encrypted, prints to `json` by default, and is edited usin
|
||||||
You can override a configuration field for the current instance of `jrnl` using `--config-override CONFIG_KEY CONFIG_VALUE` where `CONFIG_KEY` is a valid configuration field, specified in dot notation and `CONFIG_VALUE` is the (valid) desired override value. The dot notation can be used to change config keys within other keys, such as `colors.title` for the `title` key within the `colors` key.
|
You can override a configuration field for the current instance of `jrnl` using `--config-override CONFIG_KEY CONFIG_VALUE` where `CONFIG_KEY` is a valid configuration field, specified in dot notation and `CONFIG_VALUE` is the (valid) desired override value. The dot notation can be used to change config keys within other keys, such as `colors.title` for the `title` key within the `colors` key.
|
||||||
|
|
||||||
You can specify multiple overrides as multiple calls to `--config-override`.
|
You can specify multiple overrides as multiple calls to `--config-override`.
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
These overrides allow you to modify ***any*** field of your jrnl configuration. We trust that you know what you are doing.
|
These overrides allow you to modify ***any*** field of your jrnl configuration. We trust that you know what you are doing.
|
||||||
|
|
||||||
|
@ -95,7 +96,6 @@ jrnl --config-override journals.todo "$(git rev-parse --show-toplevel)/todo.txt"
|
||||||
# Pass multiple overrides
|
# Pass multiple overrides
|
||||||
jrnl --config-override display_format fancy --config-override linewrap 20 \
|
jrnl --config-override display_format fancy --config-override linewrap 20 \
|
||||||
--config-override colors.title green
|
--config-override colors.title green
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using an alternate config
|
### Using an alternate config
|
||||||
|
@ -105,7 +105,7 @@ You can specify an alternate configuration file for the current instance of `jrn
|
||||||
|
|
||||||
#### Examples:
|
#### Examples:
|
||||||
|
|
||||||
```
|
``` sh
|
||||||
# Use personalised configuration file for personal journal entries
|
# Use personalised configuration file for personal journal entries
|
||||||
jrnl --config-file ~/foo/jrnl/personal-config.yaml
|
jrnl --config-file ~/foo/jrnl/personal-config.yaml
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue