Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using -not argument by itself leads to new entry creation #1472

Closed
2 tasks
micahellison opened this issue May 7, 2022 · 0 comments · Fixed by #1490
Closed
2 tasks

Using -not argument by itself leads to new entry creation #1472

micahellison opened this issue May 7, 2022 · 0 comments · Fixed by #1490
Labels
bug Something isn't working 📌 This can't go stale ready for pr Okay to start work. Feel free to ask questions.
Milestone

Comments

@micahellison
Copy link
Member

Bug Report

Environment

  • jrnl --diagnostic output:
jrnl: v2.8.4
Python: 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:19:38) [MSC v.1929 64 bit (AMD64)]
OS: Windows 10
  • Install method: pipx

Current Behavior

When using the -not argument without other search terms, I'm sent into my editor to create a new entry.

Expected Behavior

The -not argument is supposed to search entries for all entries that don't have the tag specified.

Repro Steps

This should show all entries that don't have @tag in them. However, instead it leads me to create a new entry:

jrnl -not @tag

However, -not is still working fine with other arguments, such as:

jrnl -from yesterday -not @tag

Other Information

A resolution to this issue should have:

  • A fix to the bug
  • A new BDD test to test for this behavior
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 📌 This can't go stale ready for pr Okay to start work. Feel free to ask questions.
Projects
None yet
1 participant