I’m not that into coding and stuff. But I managed to adjust a theme just the way I like it (give context different colors). But one thing I did not get to work and of which I’ not sure if that’s possible would be something like that:
For tasks that have the label @DUE(YYYY-MM-DD) depend the colouring on conditions like:
if those tasks are overdue make them red, bold, underlined
if the Date is just today color them red, bold
if the date is within the next 7 days, color them red
if the date is deeper in the future just grey them out
Any chance to get something like that implemented? If yes: how? I have a search for tasks in the next 7 days not @done and (@now or @today or @DUE <=[d] today +7d or @DUE <=[d] today) but this seems to not work as condition in the theme.less
I don’t think there is (see Jesse’s explanation here). I’ve gotten around it by having an additional tag whose purpose is to make red + bold anything that’s overdue. I run a script every morning that looks at the dates on due tags and then marks them as something to do today, tomorrow, or something that’s overdue. I could probably modify that for the color scheme you’ve outlined above if you’re comfortable running a script.
Search terms in this forum can be hard — the only reason I knew where that answer was is because it was my thread.
Okay, I’ve tweaked the script to create tags based on what you outlined in the main post.
@dueToday — items due today @dueThisWeek — items due within the next 7 days (excluding items due today) @dueFuture — items not due in the next 7 days @OVERDUE — items which are overdue
Thanks a lot. I have one stupid question: what kind of script is that? I tried to paste it into Keyboard Maestro as Apple Script and assigned F2 as hotkey (for testing purposes) but it is not doing anything.
I should look into that scripting language I can follow the script text!
//EDIT: when I paste it as Javascript for Automation it does not work too. I’ve extracted the .zip as well and opened that via script editor. When I press run it shows as result: undefined.