taskwarrior-tui icon indicating copy to clipboard operation
taskwarrior-tui copied to clipboard

Can't see UNTIL field

Open traycerb opened this issue 2 years ago • 5 comments

One of the date fields is UNTIL which auto-expires tasks after the UNTIL time is reached. From the docs:

...but this is the kind of task where I don't want to complete it late,
 I'd rather just forget it, and wish Alice a belated happy birthday in 
person. I could simply delete or complete the task, but there is 
another option, which is to add an until date:

$ task add Send Alice a birthday card \
           due:2016-11-08 \
           scheduled:2016-11-04 \
           wait:november \
           until:2016-11-10

This shows up in my task command line reports, but not the TUI

Commandline: taskwarrior tui until

taskwarrior-tui

taskwarrior tui until 02

I'm on tui 0.23.6 and task 2.6.1 on WSL

kdheepak I understand you are taking a break these days, so just posting this for later, when/if you resume.

Additionally (and I can make this a separate issue when you are back to working on this), is there any way to not hide empty columns fields? Somehow TaskWarrior and Taskwarrior-TUI both make decisions about which empty fields to ignore, and they aren't always the same. While hiding columns that are empty in all tasks is clever and desirous in most cases, I prefer a column showing empty fields, as it stays the same visually as I update the fields (or even better, an option to for certain columns to: 1) always show or 2) hide if empty). But this latter point might be a better discussion in the taskwarrior repo...

traycerb avatar Jan 07 '23 05:01 traycerb

Thanks for opening the issue (and for being considerate, and even not tagging me! I appreciate the gesture).

When I get back to it, I’ll look into this. The TUI is supposed to show the exact same results as taskwarrior.

Yes, please open a new issue here! It’ll be easy to add a “always slow” option here.

kdheepak avatar Jan 07 '23 19:01 kdheepak

I believe this is an addendum, though it could be a separate issue: I've also noticed that a 'scheduled' column, which shows up fine in taskwarrior, does not appear if the same report is called by taskwarrior-tui.

mediapathic avatar Apr 10 '23 23:04 mediapathic

Hi @traycerb, thanks for being patient about this.

I just looked into this and I'm seeing Until in my columns.

image

This is with an empty .taskrc file. Is there something in your .taskrc that might be preventing it from showing the until column?

kdheepak avatar May 27 '23 04:05 kdheepak

With the following report.next.labels, I'm seeing a scheduled.relative column as well but no scheduled.countdown:

report.next.labels=ID,Active,Age,Deps,P,Project,Tag,Recur,S,Scheduled,Due,Until,Description,Urg
report.next.columns=id,start.age,entry.age,depends,priority,project,tags,recur,scheduled.countdown,scheduled.relative,due.relative,until.remaining,description.truncated_count,urgency
report.next.filter=(status:pending or status:waiting)
image

schedule.countdown is not implemented yet. Only the following attributes are implemented:

https://github.com/kdheepak/taskwarrior-tui/blob/4abb3bdbc826807205f22c7c60420dc15fc90d02/src/task_report.rs#L256-L446

kdheepak avatar May 27 '23 04:05 kdheepak

If you share what your .taskrcs report.next.columns values, I'll be able to add them into this function.

kdheepak avatar May 27 '23 04:05 kdheepak