mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-04 15:36:14 +02:00
test different editor launch commands
This commit is contained in:
parent
0f5dfade18
commit
b2a60fd297
1 changed files with 9 additions and 0 deletions
|
@ -48,3 +48,12 @@ Given we use the config "tiny.yaml"
|
||||||
When we run jrnl with -1 --config-override colors.body:green,editor:"nano"
|
When we run jrnl with -1 --config-override colors.body:green,editor:"nano"
|
||||||
Then the runtime config should have colors.body set to green
|
Then the runtime config should have colors.body set to green
|
||||||
And the runtime config should have editor set to nano
|
And the runtime config should have editor set to nano
|
||||||
|
Scenario Outline: Override configured editor
|
||||||
|
Given we use the config "tiny.yaml"
|
||||||
|
When we run jrnl with --config-override editor:"<editor>"
|
||||||
|
Then the editor <editor> should have been called
|
||||||
|
Examples: Editor Commands
|
||||||
|
| editor |
|
||||||
|
| nano |
|
||||||
|
| vi -c startinsert |
|
||||||
|
| code -w - |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue