-not search parameter doesn't open editor (#1490)

This commit is contained in:
Kevin 2022-06-04 13:09:07 -07:00 committed by GitHub
parent 19d579fc5c
commit 36121007b1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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.delete,
args.edit, args.edit,
args.change_time, args.change_time,
args.excluded,
args.export, args.export,
args.end_date, args.end_date,
args.today_in_history, args.today_in_history,

View file

@ -183,6 +183,19 @@ Feature: Searching in a journal
| basic_folder.yaml | | basic_folder.yaml |
| basic_dayone.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. Scenario: DayOne tag searching should work with tags containing a mixture of upper and lower case.
# https://github.com/jrnl-org/jrnl/issues/354 # https://github.com/jrnl-org/jrnl/issues/354
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"