Skip to content

Latest commit

 

History

History
151 lines (111 loc) · 17.7 KB

CHANGELOG.md

File metadata and controls

151 lines (111 loc) · 17.7 KB

Changelog

The format of this file is based on Keep a Changelog, and I do try to adhere to Semantic Versioning.

Unreleased

Added

  • add todo and add event take --set-alarm, either a duration like 10m, which puts it that long before the DUE of a task (or before its DTSTART if it has none) or before the start of an event (+10m is after, as in iCalendar), or a timestamp. A number without a unit, like 15, is minutes, as in most calendar software. The alarm displays the summary.
  • A warning when the singular --set-category, --add-category or --add-resource is given a value with a comma in it, like --set-category=boat,keyboard, and when a plural option like --set-categories is given more than once with a comma in a value. Both give one category named boat,keyboard, while a single --set-categories=boat,keyboard gives two. The behaviour itself is unchanged (it is intended), but is now documented in the user guide.
  • plann interactive check-pinned goes through the past week's events pinning tasks to the calendar (as made by the panic planning in interactive manage-tasks) and asks if each task was done. A done task is completed (with its subtasks), and its event is marked as confirmed; its other pins may be cancelled. If not done, the event is cancelled. It is also run first in interactive manage-tasks. #89
  • After the tasks in the plan of check-for-panic --interactive-fix-timeline (and interactive manage-tasks) are pinned, it offers to plan again, leaving out the tasks just pinned.

Changed

  • The plan that check-for-panic --interactive-fix-timeline (and interactive manage-tasks) opens in the editor now has a start and a duration per task, like 2026-11-24 10:00 +1h30m, instead of a start and an end, so editing the start moves the task and keeps its length. All times are in one timezone, named at the top of the file, as are the times printed by --print-timeline and the list of tasks that will need to be procrastinated; they used to be in whatever timezone each event was stored in. Existing events are # comment lines, and a # in a task summary is no longer cut off.
  • The plann interactive subcommands now have the same defaults as when interactive manage-tasks runs them, except dismiss-panic --hours-per-day, which manage-tasks runs with 24 and then 14. check-due looks 24 hours ahead (was 16) and goes through at most 16 tasks (was unlimited); split-huge-tasks and split-high-pri-tasks look 60 days and 640 tasks ahead (was 30 days and 32 tasks).
  • A bare hour (one or two digits, 0-23) in a date or time argument, like --set-dtstart=14, means 14:00 today in the implicit timezone. It was taken as the 14th of the month, giving an all-day task. --set-alarm is the exception: there a number without a unit is minutes.

Fixed

  • A timestamp with an explicit UTC offset, like plann select --event --start 2026-11-21T05:00+01:00, crashed when expanding recurring events with AttributeError: 'StaticTzInfo' object has no attribute 'normalize'. niccokunzmann/python-recurring-ical-events#311
  • A line that could not be parsed in the plan of check-for-panic --interactive-fix-timeline (and interactive manage-tasks) crashed with an AssertionError and discarded the whole edit. The editor is now reopened with the error at the top.
  • plann select --sort-key DUE (or any other date property, like DTSTART) crashed with TypeError: '<' not supported between instances of 'vDDDTypes' and 'vDDDTypes', and a plain sort key missing on some of the items crashed too. Dates and timestamps now sort together (a date as midnight, a floating time in the implicit timezone), and items without the property come last, also with a reversed - sort key. A task with DTSTART and DURATION but no DUE now sorts on the DUE they give. #65
  • plann select ... edit --set-dtend=... on an event crashed with TypeError: CalendarObjectResource.set_end() got an unexpected keyword argument 'check_dependent', so an event could not be given a new end time. It now moves the event, keeping its duration. --set-dtend on a task, --set-due on an event and either on a journal crashed too; they now give an error saying which one the item has.
  • The plann agenda --help text now lists two runnable plann select commands giving the same events and tasks as agenda. In the task one, the --sort-key '{PRIORITY:?0}' template had no effect and list --bottom-up stood where select --skip-parents belongs, and the event one lacked the sort keys. It also pointed to a nonexistent USAGE.md instead of USER_GUIDE.md.
  • plann add -l LINE event dropped the extra iCalendar lines; they are now added to the event, as they were to tasks and journals.
  • A task with DTSTART as a date and DUE as a timestamp (or the other way around) made interactive manage-tasks and other selections crash with KeyError: 'DTEND'. The date is now made a timestamp at midnight, in the timezone of the other one if it has a named one, else in the local timezone; the time of day on the other one is kept (it used to be dropped), and the result is valid iCalendar.
  • interactive check-due (also run by interactive manage-tasks) silently left out the due tasks beyond the first 16, usually the low-priority ones. It now says how many tasks are due when it cannot show them all.
  • interactive manage-tasks: a parent task postponed together with its child could be postponed once more in its own turn, and with caldav 3.6 this crashed with a "412 Precondition Failed" error. It is now skipped, with a note. A task changed on the server in the meantime is reloaded before it is postponed.
  • interactive manage-tasks no longer stops with a traceback when the server refuses to store a task it postpones, e.g. with "423 Locked" from a Xandikos server busy with another write. The task is reported and the rest are still postponed.

v1.3.0 - 2026-10-23

Added

  • list --json prints the selection as jCal (RFC 7265), the standard JSON representation of iCalendar. #82 #83
  • plann freebusy-sync: keeps a copy of the busy time from one set of calendars in another calendar, holding only the time and a fixed summary. Copies are moved and deleted as the source changes, so it can run from a timer in both directions between a work and a private calendar. See the user guide. #70

Deprecated

  • select --freebusyhack, superseded by freebusy-sync. It keeps the UID of the original, and it leaves the summary, description and attendees of recurrence exceptions in place. #70

Changed

  • Completing a task (edit --complete, complete in the interactive and multi-edit modes, completed! in set-task-attribs) now also completes its pending child tasks, recursively, and prints a warning for each. A child has to be done before the parent can be completed. #76
  • completed! in set-task-attribs moves a recurring task on to its next recurrence, like edit --complete does, instead of completing the whole series. #76
  • Shell tab completion scripts (bash, zsh, fish) now ship with the package. They work without shell configuration for system-wide installs (and for bash user/venv installs with bash-completion 2.12+); see the README for other setups. The make install-completion targets are gone. #63
  • icalendar 7.0.0 or newer is required. #83
  • caldav 3.6 or newer is required, and calendaring-config 0.5 or newer is a new dependency. The config file is now read as caldav 3.6 reads it, so it may also use kind: caldav sections with plain keys, password_command (a program printing the password) and password_keyring. A section whose inherits names a missing section, or forms a loop, is now skipped with a warning (an error with --raise-errors); before, the broken inherits was ignored and the section still used. #81
  • The config file is found on the search path shared with the caldav library and other tools: ~/.config/pycal/calendar.yaml first, then caldav's paths, ~/.config/calendar.conf and /etc, or the file CALENDARING_CONFIG_FILE / CALDAV_CONFIG_FILE names. Before, plann read ~/.config/calendar.conf only, so with several of these files a different one may be used now. plann configure creates ~/.config/pycal/calendar.yaml when there is none, or when the file it found cannot be written (one under /etc), and makes the file readable by its owner only. #81

Fixed

  • list --ics repeated the VTIMEZONE of every listed object, instead of giving each timezone once. #83
  • interactive set-task-attribs (also run by interactive manage-tasks): a task marked completed! at one prompt was asked about again at the next one, and answering completed! there crashed on the already-completed task. Regression in v1.2.0. #63
  • list-categories and timewarrior time tracking crashed on a task with more than one CATEGORIES line. #71 #72
  • {CATEGORIES} in a list --template printed the internal vCategory([...]) representation instead of a comma-separated list. #77
  • edit --set-dtstart X --set-due Y did not end up with DTSTART at X: moving DUE kept the duration and shifted the DTSTART that had just been set. #80

v1.2.0 - 2026-09-16

Added

  • edit --add-categories, --add-resource and --add-resources options (alongside the existing --add-category). A single value containing commas is split by the plural forms and kept literal by the singular forms.
  • select ... list --separator=... to join the listed items with something other than a newline.
  • The interactive edit prompt now offers the start command (starts time tracking for the task) and asks again afterwards, so a follow-up command can be given for the same task.
  • plann configure: an interactive configuration mode (EXPERIMENTAL, under-tested) that prompts for connection parameters and writes them to the config file - a new section, or an existing one with its current values offered as defaults.
  • Environment variable references - ${VAR} or ${VAR:-default} - in the connection settings of a config section (caldav_url, caldav_user, caldav_pass, caldav_proxy, ...) are now expanded, so e.g. the password can be kept out of the config file. See the configuration section of the README.
  • add ical warns when the imported data holds RECURRENCE-ID overrides with no master event for the same UID - typically left behind when the recurring event was deleted elsewhere, or exported one instance at a time. They are still imported: merged into the series when the server has the master, stored as detached occurrences otherwise.

Changed

  • select --uid now prints a warning to stderr naming uids that match nothing in any calendar, instead of ignoring them silently. --no-warn-on-missing-uid restores the silent behaviour; --abort-on-missing-uid still takes precedence. Ref #42
  • edit --set-resources now splits its value on comma, the same way --set-categories always has: --set-resources a,b sets two resources rather than one named a,b.
  • Config file parsing, connection parameter extraction and calendar lookup are now done by the caldav library instead of plann's own copy of that code, and a features key is resolved through the caldav library's server profiles.
  • Fewer server round-trips: a hierarchical list --top-down/--bottom-up fetches each related task only once, and interactive set-task-attribs fetches the task list once instead of querying per attribute.
  • Dependencies: caldav 3.3.0 or newer is now required (was 1.5.0), python-dateutil and icalendar_searcher are new dependencies, and tzlocal is no longer needed. The package metadata now declares the license as GPL-3.0-or-later.

Deprecated

  • edit --set-category: it appends rather than replaces, which the name does not convey. Use --add-category to append or --set-categories to replace.

Removed

  • interactive update-config, which was never implemented and only raised an error. Use plann configure.

Fixed

  • Time tracking through timewarrior did not work at all: the time_tracking setting in a config section was never picked up, only the value timew was accepted (not timewarrior, as the error message suggested), and select ... add-time-tracking aborted with "Invalid start character for option" before doing anything.
  • add ical with several concatenated VCALENDAR objects imported nothing when the data used CRLF line endings (the RFC 5545 canonical form).
  • Showing help for a subcommand (e.g. plann select --help) no longer connects to every configured calendar.
  • A config section with features but no caldav_url crashed with KeyError: 'url'; the URL is now taken from the server profile.
  • select ... delete now names each item as it is deleted, and says "No items selected for deletion" on an empty selection, instead of printing nothing either way. Ref #42
  • Durations were computed wrongly: 1y came out as roughly 15 days, and a compound duration such as 1h30m kept only its last component. Adding a year to a plain date, or to February 29, raised an error. A fractional number of years (1.5y) is now rejected instead of being miscalculated.
  • interactive check-due --limit N crashed instead of limiting the number of tasks shown.
  • select --no-pinned-tasks crashed when tasks were included in the selection.
  • Splitting a task interactively (the split edit command, interactive split-huge-tasks, interactive split-high-pri-tasks) never postponed the task: the postpone prompt was inverted, so a duration was ignored and only the 0h default reached the postpone code, where it did nothing.
  • postpone <duration> with parent in interactive editing silently did nothing.
  • The relationship overview showed only the first kind of relation, so e.g. children were listed but parents were not.
  • Panic planning (check-for-panic, dismiss-panic) no longer crashes on all-day events that have relations.
  • Adding a category to an object with more than one CATEGORIES line crashed.
  • Reporting an inconsistent relationship crashed instead of logging what was wrong.
  • Postponing a task with a long chain of parents could drop the user into the Python debugger.
  • An object whose summary or description contained text like BEGIN:VEVENT could be taken for the wrong kind of object - e.g. a task refused by interactive editing as if it were an event.
  • Commands that open a text editor (select --mass-interactive, edit --interactive-ical, edit --interactive-relations, ...) now say clearly that no editor could be found, instead of failing confusingly further down.
  • interactive set-task-attribs could miss tasks lacking an attribute on calendar servers that do not filter searches properly.

v1.1.1 - 2026-05-28

Added

  • Added possibility to add calendar name and calendar url to the template. Ref #14 by @rjolina at github.
  • now should be an acceptable timestamp. Ref #16
  • Natural language timestamps now supported via dateparser — "yesterday", "3 hours ago", "Friday", etc. are accepted wherever a timestamp is expected.
  • VJOURNAL support: new plann add journal command and --journal filter flag on select. Ref #29
  • Makefile with install, dev, test, lint, and clean targets, plus shell tab completion install targets.
  • features config key is now passed to the caldav library, enabling server-specific compatibility workarounds (e.g. "features": "davical").

Changed

  • Various documentation improvements, some of it by @WhyNotHugo at github in #15

Fixed

  • --help had some wrong information, ref #16 by Thomas Maeder
  • Importing a VCALENDAR file containing multiple events/tasks failed.
  • procrastinate 0s (and other zero-delay variants) was not treated as a no-op due to a typo ('9s' instead of '0s').
  • Timezone was incorrectly applied to all-day dates (datetime.date), causing off-by-one errors.
  • When selecting by UID, component type (--event/--todo) no longer needs to be specified, and completed tasks are no longer incorrectly filtered out.

v1.1.0 - 2026-05-28

Same as v1.1.1, except the publishing workflow was not working

v1.0.0 - 2024-12-01

Changelogs up until 1.0 has been dropped, as development was going rather fast-paced and erratic, with the priority of getting a tool the author can use for his daily planning. Very little development was done in 2024 and 2025, but the tool works for me.

The 1.0.0-version probably has plenty of rough edges as it hasn't been tested much and is lacking some test code, but if nothing else I will try to stick to better development practices from now on - not breaking backward compatibility unless I really have to (and then under a 2.0-release), fewer commits with sane commit messages towards the main branch, silly commits going to side branches, keep the changelog up-to-date, make sure new features are sufficiently covered by test-code, etc.