I realistically have a thousand tiddlers with titles like:

   - Foo Bar meeting 2016-9-12
   - Quarterly staff meeting 2017-04-22
   - 2017-07-21 Department Huddle

Of note: all dates start with the character string "201"

I am interested in renaming them with the date in the front of the title, 
so that I can "!sort[]" them in filters, easily giving me the most recent 
ones at the top of the list.
*How do I accomplish this?* My guess is:
   
   1. Filter for all tiddlers whose title ends in a date (must allow for 
   optional 1 character months and days) (changing dates to add zeros was done 
   by Stephan Hradek in this thread: 
   https://groups.google.com/forum/#!topic/tiddlywiki/eTbODCaTuYk)
   2. Use the fieldmangler widget to modify the field named "title"
   3. First I need to capture the date as a variable
   4. Change the value of the field(title) by removing the date from the 
   end (somehow using "suffix")
   5. Change the value of the field(title) by adding the same date to its 
   beginning followed by a single space (somehow using "prefix" - maybe both 
   functions can be done in one step?)
   6. Move onto the next tiddler in the filtered output of step #1

Is this line of thinking the easiest way to accomplish this (based on my 
early understanding of TW5)?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7f83a31f-14f0-47c4-a231-10dc48e12607%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to