Skip to content

Conversation

fermino
Copy link

@fermino fermino commented Apr 27, 2025

I ran into the necessity to batch-edit a bunch of tasks to unset the due date, and in doing so found that there's no supported way to "unset" it without using the interactive mode.

This PR aims to fix that. The current fix is somewhat quick-n-dirty, and I think it would be better to dynamically detect if the field is allowed to be None by using type annotations, but I'm just starting to dig into the codebase so I want to post it here first!

Anyways, thanks for all the work in the project :)

@fermino fermino changed the title cli/edit: allow empty due dates cli/edit: allow empty due dates in non-interactive mode Apr 27, 2025
@WhyNotHugo
Copy link
Member

Does this not unconditionally unset the due property is it's not specified in the command line?

E.g.: I specify --priority 3, and now my due date is removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants