Skip to content

Optional configuration override for taskwarrior filters #2174

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: master
Choose a base branch
from

Conversation

myas
Copy link

@myas myas commented Jul 11, 2025

This pr adds an optional field to taswarrior's filter configuration that allows to specify configuration overrides for taskwarrior on per-filter basis. I mostly use it to work with contexts: when i change the context in taskwarrior it affects my filters in i3status, but since it can be used in other cases too (like #2071) i decided to add a general configuration override instead of specific context setting.

@@ -166,4 +185,6 @@ async fn get_number_of_tasks(filter: &str) -> Result<u32> {
pub struct Filter {
pub name: String,
pub filter: String,
#[serde(default)]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pr looks good, one small nit is that you don't need #[serde(default)] here since the struct is already #[derive(Default)]

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