feat/improvements #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "lyz/org-rw:feat/improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
feat(Timestamp): add the from_datetime method
To update the current Timestamp instance based on a datetime or date object.
I've also included a set_datetime method to OrgTime
feat: add activate and deactivate methods to TimeRange and OrgTime
I need it in a program I'm making
refactor: Create the Time type hint
I had to move the parse_time and parse_org_time_range below OrgTime
because it used the Time type hint and the Time type hint needed the
other two
style: reformat the code following black
style: Add some type hints and docstrings
style: remove unused imports
tests: Correct some mypy errors
Looks great! I think we can merge it. I'll try to make some changes after that to the repetition code so we can specify which states are valid/understood by the usual emacs setup.
@ -0,0 +44,4 @@
hour=15,
minute=45,
dow="Saturday",
repetition="Weekly",
In practice, the repetition patterns are the ones for Org-mode, which you can see as part of
BASE_TIME_STAMP_RE
.They generally match the regexp:
(?P<repetition> (?P<rep_mark>(\+|\+\+|\.\+|-|--))(?P<rep_value>\d+)(?P<rep_unit>[hdwmy]))
For example:
+1d
,++1w
or+.1m
See: https://orgmode.org/manual/Repeated-tasks.html
Fixed at
191bb75
Looks great to me! 😄