Project Management in TW - reopening the topic

113 views
Skip to first unread message

Shay Shaked

unread,
Jul 31, 2016, 6:49:14 PM7/31/16
to TiddlyWiki

This is a "bump" to https://groups.google.com/forum/#!searchin/tiddlywiki/shay$20shaked%7Csort:relevance/tiddlywiki/9CGOHUU7Lxs/BfaRWFACAwAJ

People tried to help me out, but the solution offered are very specific with code which I don't understand how to implement. I need more if a step by step process, until I get the hang on TW syntax a bit better. if anyone can help? 

Again, what I need is a somewhat more complicated solution than the TaskManagmentExamples including in TW. specifically: 

  1. I want the option of sublist of checkboxes under a certain checkbox, to create subtasks. Very similar to a regular bullet point list with sub-bullets, just checkboxes instead. 
  2. I want to be able to include text or image under a checkbox, so the automated field of tasks doesn't work because I can't interrupt it with text
  3. I want to maintain the strikethough when checking a task. The end result doesn't have to very sophisticated... 
suggestions? help? Where do I start? 

c pa

unread,
Jul 31, 2016, 11:52:08 PM7/31/16
to TiddlyWiki
I didn't test any of this. So you'll have to write it yourself and debug my errors. But here is what you want (What you want isn't simple)

User Requirements:
1. A tiddler contains a list of todo items, the items don't need to exist as separate tiddlers
2. An item may contain another list of sub todo items
3. When checked, the item displays with strike-out
4. Each item may contain descriptive text

System requirements
1. If an item has sub-items, the item must exist as a tiddler
2. If an item has descriptive text, the item must exist as a tiddler

System components
1. A data entry box to enter the name of an item to be created in the current tiddler
    <$edit-text tag="input" tiddler="$:/temp/new_todo_item" />
2. A field to contain the list of todo items
    field="todoitems"
    todoitems is a field that contains a list of todo items
3. A button to add the item to the list
   <$button>
        Add item to list
        <$action-listops $field="todoitems" $subfilter={{$:/temp/new_todo_item}}  />
   </$button>
4. A field to hold the description
    field="description"
5. A data entry box to enter the description
    <$edit-text tag="input" field="description" />
6. A view item to display the description
    <$view field="description" />
7. A tag that identifies a todo item
    tag="todo"
8. A viewtemplate for todo items
    title:"View Template for todo Items"
    tags:"$:/tags/ViewTemplate"
    text:"""
        <!-- List identifying if the current tiddler has tag todo -->
        <$list filter="[all[current]tag[todo]]">
            <!-- Add a checkbox to decide if the current tiddler should be in edit mode -->
            <$checkbox tag="edit">Edit</$checkbox>
            <!-- List identifying if the current tiddler has tag edit -->
            <$list filter="[all[current]tag[edit]]" >
                <$edit-text tag="input" tiddler="$:/temp/new_todo_item" />
               <$button>
                  Add item to list
                 <$action-listops $field="todoitems" $subfilter={{$:/temp/new_todo_item}}  />
                 <$action-setfield $tiddler="$:/temp/new_todo_item" $field="text" $value=""/>
               </$button>
               <$edit-text tag="input" tiddler={{$:/temp/new_todo_item}} field="description" />
            </$list>
            <!-- List all the items -->
            <ul>
                <$list filter="[list[!!todoitems]]">
                    <li><<currentTiddler>></li>
                </$list>
            </ul>
        </$list>
9. A field to hold the items that are done
    filed="doneitems"
9. Some piece of code to add a done button and text formatting to the items being listed
    \define showTodoItem(item)
         <Find if the item is in doneitems -->
        <$list filter="[all[$item]] -[list[!!doneitems]]" emptyMessage="""
           <!-- This is a done item -->
           <$button>
              X
             <$action-listops $field="doneitems" $filter="[list[!!doneitems]] -[[$item$]]"  />
           </$button>
           --$item$--
        """>
           <!-- This is a todo item -->
           <$button>
              _
             <$action-listops $field="doneitems" $subfilter="[[$item$]]"  />
           </$button>
           $item$
        </$list>
     \end
10. A piece of code to display the item, check to see if it exists as a tiddler, and then display the same stuff if that tiddler has its own todos
     <li>
     <$macrocall $name="showTodoItem" item=<<currentTiddler>> />
     <!-- check to see if the current item exists as a tiddler -->
     <$list filter="[all<currentTiddler>is[tiddler]]">
         Display all this stuff. . .  I guess I should have made the whole thing a macro eh.
     </$list>
    </li>

Danielo Rodríguez

unread,
Aug 1, 2016, 3:21:58 AM8/1/16
to TiddlyWiki
Have you checked this?

https://github.com/roma0104/gsd5

Reply all
Reply to author
Forward
0 new messages