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

Refactoring, bugfixes, and unit test for sync-todos #2

Open
wants to merge 22 commits into
base: sync-todos
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
7e6eeac
Revert whitespace changes vs master
jackkamm Aug 2, 2022
1594d9f
Revert "Replace org-maybe-keyword-time-regexp (fix for Org 9.4)"
jackkamm Aug 21, 2022
6b16e29
Adapt to recent changes in org-id.el
jackkamm Aug 21, 2022
f80ea66
Fixes #251
jackkamm Aug 21, 2022
6a865f5
Add a hint for an easy way to create a test server
jackkamm Aug 28, 2022
d511065
Refactoring, & VTODO now respects org-caldav-sync-changes-to-org
jackkamm Aug 28, 2022
49a7389
Merge branch 'fix-tests' into sync-todos-refactored
jackkamm Aug 28, 2022
48e3f22
Fix unit test 01 and underlying bug
jackkamm Aug 28, 2022
7a7b3da
Fix unit test 05 and related bugs
jackkamm Aug 28, 2022
3d492e9
Prevent fix-todo-priority from matching the wrong entry
jackkamm Aug 28, 2022
90b80e1
Add org-caldav-09-sync-test-todo
jackkamm Aug 28, 2022
1affe6a
Add back updating of tags in TODOs
jackkamm Aug 28, 2022
36fa6c5
Add customization to explicitly control save-buffer behavior
jackkamm Sep 3, 2022
15a49f9
Rename ID to OLDID in backup entries
jackkamm Sep 3, 2022
2e7a6e2
Merge branch 'fix-tests' into sync-todos-refactored
jackkamm Sep 3, 2022
afb5d1e
Merge pull request #252 from jackkamm/fix-tests
jackkamm Dec 16, 2022
707d32b
Merge remote-tracking branch 'upstream/master' into sync-todos-refact…
jackkamm Dec 17, 2022
22499d7
Update Readme about VTODO sync
jackkamm Dec 19, 2022
4dec349
Bugfix, test for todo syncing all changes to org
jackkamm Oct 22, 2022
adee448
Change default value of org-caldav-todo-percent-states
jackkamm Dec 20, 2022
4f47c33
Clean up org-caldav-todo defcustom docstrings
jackkamm Dec 20, 2022
34c2e7c
Minor change to wording in docs
jackkamm Dec 20, 2022
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
45 changes: 23 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,37 +403,38 @@ the events into the debug buffer. If you send such a buffer in a bug
report, please make very sure you have removed personal information
from those events.

#### Syncing TODO
#### Syncing TODOs between Org and CalDav

This section is experimental. So please make sure you have backups before you
use this. Create issues if it doesn't work for you. This was developed with a
nextcloud 12 server, and it is not sure if it works somewhere else. Please
report if you have another setup, so we can fix that.
This feature is relatively new and less well tested, so it is
recommended to have backups before using it. It has been tested on
nextcloud and radicale.

To enable this, just use
To sync TODO's between Org and the CalDav server, do:

(setq org-icalendar-include-todo 'all
org-caldav-sync-todo t)

The first will include your todos to the exporter (org->cal) the second controls
the use of downloaded vtodo events to import it to the `inbox`.
The first instructs the Org exporter to include TODOs; the second
tells org-caldav to import icalendar VTODOs as Org TODOs.

It is also a good idea to set
Other customizations to consider (see their documentation for more
details):

(setq org-icalendar-categories '(local-tags))

so the tags on the nextcloud will not include the local category. If you need
that, leave a message. On cal->org this would add it to the tags.

See the variables `org-caldav-todo-priority` and
`org-caldav-todo-percent-states` for some customization.
* `org-caldav-todo-priority` to control how priority levels map
between iCalendar and Org.
* `org-caldav-todo-percent-states` to convert between
`org-todo-keywords` and iCalendar's percent-complete property.
* `org-caldav-todo-deadline-schedule-warning-days` to auto-create
SCHEDULED timestamps when a DEADLINE is present (this might be
useful for users of the OpenTasks app).

If you find that some Org entries get an extra tag which equals their
CATEGORY, this might be caused by the CATEGORY being exported to
iCalendar, and then re-imported to Org as a tag. In that case, do

There is also `org-caldav-todo-deadline-schedule-warning-days` which can be set
to `t` if you want to include a scheduled date. Some apps like OpenTasks will
move tasks out of the widget if there is a scheduled, until it actually starts.

I would recommend you to test this and report issues, because I also want to
have a stable todo handling.
(setq org-icalendar-categories '(local-tags))

to prevent the CATEGORY from being exported to iCalendar.

#### Known Bugs

Expand Down
Loading