kdheepak / taskwarrior-tui

`taskwarrior-tui`: A terminal user interface for taskwarrior
https://kdheepak.com/taskwarrior-tui
MIT License
1.48k stars 68 forks source link

missing columns #550

Closed adriangalilea closed 4 months ago

adriangalilea commented 5 months ago

My setup

task config report.next.columns id,start.age,project,description,tags,depends,scheduled.countdown,due.relative,until.remaining,priority,urgency
task config report.next.labels 'ID,started,project,description,tags,dep,sch,due,unt,p,urg'

task:

image

taskwarrior-tui

image

Notice the sch column is missing.

RedEtherbloom commented 5 months ago

Does any of the tasks have a scheduled value set? If no, it may actually be a taskwarrior configuration option doing this.

https://manpages.debian.org/testing/taskwarrior/taskrc.5.en.html#print.empty.columns=1

The default value for this is 0, the manpage is written a bit weirdly.

(I'm not too familiar with how the main view is rendered, but would suspect that taskwarrior-tui is not getting the necessary information passed to it)

kdheepak commented 5 months ago

It probably is getting the information. Currently the columns parsed from the user configuration are explicitly written out, so if I haven't accounted for scheduled.countdown it won't show up.

This match block is what needs to be updated with an additional case:

https://github.com/kdheepak/taskwarrior-tui/blob/4902ecdb34c549ed917635cce13148c13ac46106/src/task_report.rs#L255-L266