How to filter on index values and a couple more questions..

144 views
Skip to first unread message

cb

unread,
Jan 23, 2017, 10:57:25 AM1/23/17
to TiddlyWiki
Hello!..

I have been using TW5 and following along the conversations on  this group in the background. Thank you everyone for the conversations. It helps me use TW5 more efficiently.


There is an issue I have not figured out a solution. I am hoping someone can help

This is the problem
I have a bunch of tasks that rotate on a daily basis - one task a weekday. once a task is done, it gets added to the back of queue and becomes due again on the weekday after the (previously) last task was done.
For e.g.

Mon Jan-23: Task 1
Tue Jan-24: Task 2
Wed Jan-25: Task 3
Thurs Jan-26: Task 4
Fri Jan-27: Task 5
Sat Jan-28 (weekend): No task
Sun Jan-29 (weekend): No task
Mon Jan-30: Task 6
Tue Jan-31: Task 7
Wed Feb-01: Task 1


Now, on the next week day (Feb-01) Task 1 will be due again. And it continues the rotation. Task is not a simple one-liner -- but a bunch of steps to be done. Each task is defined in it's own tiddler.

The number of tasks are fairly constant -- they probably change about 2-3 time a year. So, once the start day and list of tasks is known, it's pretty predictable. I've not included holidays here -- but that could be treated like a new start date at a particular point in the rotation.

I thought having a data tiddler with the first day for each task would work pretty well  -- once a rotation ends, I would manually update the data-tiddler with new dates and keep updating once per rotation.
e.g.
01-23-M: {{Task1}}
01-24-T: {{Task 2}}
...
01-27-F: {{Task 5}}
01-30-M: {{Task 6}}
01-31-T: {{Task 7}}

This works pretty well thanks to the suggestions in this thread [TW5] Easy way to display all values in a data tiddler. However, rather than display the whole table of tasks as described, I would like to just see what is the task for today.

My questions:
1. Is there a way to filter index values (like 01-23-M) based on a dynamic value (<<now mm-0DD>>)?
2. Instead of a table, how can I convert the example to a "tab" based display with today's "tab" selected?
3. How could I approach avoiding to have to manually update the data-tiddler once each rotation. i.e. limit the manual updates to only when the rotation changes (i.e. task added or deleted) or when there are holidays (perhaps vacation too)

BTW, I am using this in read-only mode.. i.e. I make my edits in emacs and then assemble them with nodejs to push a single html file to a server.

Any help is appreciated.

Thanks,
cb

Tobias Beer

unread,
Jan 23, 2017, 12:26:10 PM1/23/17
to TiddlyWiki
Hi cb,

not the answer you're looking for but anything date related isn't just a simple lookup / string pattern matching... but rather requires actual date handling filters, which may not actually exist to the extend you need them.

You can try your luck with the days or sameday filters... compared to a given temp tiddler the modified date of which is set to now / your base reference date. Do not pass the date using the now macro, since it does not consider UTC / GMT time zone differences at all... whereas the tiddler fields modified and created do ...and so should any custom date fields, which atm is a problem since, afaik, you cannot instruct TiddlyWiki to "save my local date such and such" in GMT... which is what TiddlyWiki does for created & modified.

Best wishes,

Tobias.

Mat

unread,
Jan 24, 2017, 11:20:08 AM1/24/17
to TiddlyWiki
On mobile so brief; my first thought is to use list-operations. Look into Metabeles work on cycling values in lists. The values could be tiddler titles and the full list of titles could be the argument for a tabs macro.

Cool concept.

<:-)

Thomas Elmiger

unread,
Jan 25, 2017, 2:21:00 PM1/25/17
to TiddlyWiki
Hi cb,

Maybe you have seen this and it is too much for your usecase … I am in the middle of a revision of my ToDoNow project. Of course I would use this tool to solve a task(list) like your’s.

The new feature I have prepared is sorting the task lists, you can see a draft version here: http://tid.li/tw5/hacks.html#ToDoNow (no plugins, just a bunch of tiddlers). I would try this:

1) Create tiddlers/tasks and name them
-- 01 Task1-Description
-- 02 Task2-Description
-- 03 Task3-and-so-on

sort the ToDo-List by title (AB button), so they are in the right order.

2) Take one task up every morning into the Do section, hide the lists below
- open the task with a click on […]
- work on the task
- check when done – the done date is saved (appended) in a field, so at the end of the year you could count how many times you did this task …

3) When the last task is done
- open the Done section
- recycle all tasks (yep, there’s a button for that, this is just 7 clicks of the mouse)
- proceed with 2)

What do you think about such a workflow?
- Should I ad sorting to the Done list? (At the moment it is chronological, last done task at the top I think.)
- Any other features missing?
- Or too many features you don’t need?

Best regards,
Thomas

cb

unread,
Jan 28, 2017, 9:28:16 PM1/28/17
to TiddlyWiki
Thanks Tobias,

I will try with the days or sameday filters. Thanks for pointing out the behavior with regards to timezone.

cb.

cb

unread,
Jan 28, 2017, 9:29:19 PM1/28/17
to TiddlyWiki
Thanks Mat.,

I will take a look at Metabeles's work.

-cb

cb

unread,
Jan 28, 2017, 9:44:50 PM1/28/17
to TiddlyWiki
Hi Thomas,

Thanks for your response. I took a look at ToDoNow. I like it. It does look good.

I will have to do some thinking to figure out how it will fit in my workflow.

Thanks,
cb
Reply all
Reply to author
Forward
0 new messages