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

Fix various typos #1718

Merged
merged 1 commit into from
Apr 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jrnl
====

_To get help, [submit an issue](https://github.com/jrnl-org/jrnl/issues/new/choose) on
Github._
GitHub._

`jrnl` is a simple journal application for the command line.

Expand Down
4 changes: 2 additions & 2 deletions jrnl/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def parse_args(args: list[str] = []) -> argparse.Namespace:
nargs="?",
metavar="DATE",
const="now",
help="Change timestamp for seleted entries (default: now)",
help="Change timestamp for selected entries (default: now)",
)
exporting.add_argument(
"--format",
Expand Down Expand Up @@ -360,7 +360,7 @@ def parse_args(args: list[str] = []) -> argparse.Namespace:
"--tags",
dest="tags",
action="store_true",
help="Alias for '--format tags'. Returns a list of all tags and number of occurences",
help="Alias for '--format tags'. Returns a list of all tags and number of occurrences",
)
exporting.add_argument(
"--short",
Expand Down
4 changes: 2 additions & 2 deletions jrnl/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def parse(
elif isinstance(date_str, datetime.datetime):
return date_str

# Don't try to parse anything with 6 or less characters and was parsed from the existing journal.
# Don't try to parse anything with 6 or fewer characters and was parsed from the existing journal.
# It's probably a markdown footnote
if len(date_str) <= 6 and bracketed:
return None
Expand Down Expand Up @@ -83,7 +83,7 @@ def parse(
date = datetime.datetime(*date[:6])

# Ugly heuristic: if the date is more than 4 weeks in the future, we got the year wrong.
# Rather then this, we would like to see parsedatetime patched so we can tell it to prefer
# Rather than this, we would like to see parsedatetime patched so we can tell it to prefer
# past dates
dt = datetime.datetime.now() - date
if dt.days < -28 and not year_present:
Expand Down