-not search parameter doesn't open editor

This commit is contained in:
apainintheneck 2022-05-28 14:31:10 -07:00
parent 19d579fc5c
commit 1ccf4bec38
2 changed files with 14 additions and 0 deletions

View file

@ -81,6 +81,7 @@ def _is_write_mode(args, config, **kwargs):
args.delete,
args.edit,
args.change_time,
args.excluded,
args.export,
args.end_date,
args.today_in_history,

View file

@ -183,6 +183,19 @@ Feature: Searching in a journal
| basic_folder.yaml |
| basic_dayone.yaml |
Scenario Outline: Using -not should exclude all entries with that tag
# https://github.com/jrnl-org/jrnl/issues/1472
Given we use the config "<config_file>"
When we run "jrnl -not @tagtwo"
Then the output should not contain "@tagtwo"
And the editor should not have been called
Examples: configs
| config_file |
| basic_onefile.yaml |
| basic_folder.yaml |
| basic_dayone.yaml |
Scenario: DayOne tag searching should work with tags containing a mixture of upper and lower case.
# https://github.com/jrnl-org/jrnl/issues/354
Given we use the config "dayone.yaml"