Open Dieterbe opened 3 years ago
Oh, an i3 integration would be great, I could regolith OS a go again. I suppose we could use the JSON output mode mechanism that @dontlaugh implemented to transfer the data to the i3 plugin.
Consider limiting this by time, such that only the stats for the last week, month, 3 months are shown.
It could indeed by implemented by reading the standard JSON output. It would be nice to have the time-filtering capability in dstask. That would be much harder to do in the near term.
I don't understand what you mean with the time limiting, or what the goal would be. I want to know the number of tasks in each state. How would filtering even work? filter by last state change? or by when the task was added into the system?
also i can see value in having json support, but that even seems overkill for what i want. simpler format is a tad easier to parse in shell context.
finally, note that i3status-rust is a 3rd party bar provider for i3. support could be potentially be added to the official i3bar, i'm not sure, but i use i3status-rust.
I'm working on a subcommand that shows the number of tasks in each state (subject to the persisted context). so that you can do something like this:
why? well, i'm also working on a block for https://github.com/greshake/i3status-rust this would allow me to show a widget on my desktop showing these basic stats, similar to the existing TW block: https://github.com/greshake/i3status-rust/blob/master/blocks.md#taskwarrior
thoughts?