Skip to content

cli/edit: allow empty due dates in non-interactive mode #577

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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