[tw] Re: [TW5] Get certain characters of a tiddler title
I build a little macro which seems to fullfill what I'm looking for: /*\ title: $:/core/modules/macros/date_title.js type: application/javascript module-type: macro Macro to get the date from a tiddler title if title is starting with an american date format (mmdd) and convert it to date format dd.mm.. \*/ (function(){ /*jslint node: true, browser: true */ /*global $tw: false */ "use strict"; /* Information about this macro */ exports.name = "date_title"; exports.params = []; /* Run the macro */ exports.run = function() { return this.getVariable("currentTiddler").substring(6,8) + "." + this. getVariable("currentTiddler").substring(4,6) + "." + this.getVariable( "currentTiddler").substring(0,4); }; })(); -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/02a59250-a4e0-4d53-a350-75d9f8588b70%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Get certain characters of a tiddler title
Thank you both! The problem is that the created stamp and the tiddler name date are different. @Mark The tiddler name date is starting in the year 1989 so it would be hard to create a filter for every year/month. -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/02c1ca1e-bc92-4a0f-a15c-7297200bbab7%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Get certain characters of a tiddler title
This thread may also contain some useful info: https://groups.google.com/forum/#!topic/tiddlywiki/MV_PqI97jPU -m -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/0b1e4591-a027-474d-a7f6-e5a2c4510705%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Get certain characters of a tiddler title
Hi Bo, If your tiddlers have the right created fields, you may use that to create your filters and lists. testTiddler: <$list filter="[!is[system]regexp:created[^201408]]"> <$link to=<>>{{!!title}} --- <$view tiddler=<> field=created format="date" template="DDD DDth MMM "/> see: http://tiddlywiki.com/#ViewWidget:ViewWidget%20%5B%5Bregexp%20Operator%20(Examples)%5D%5D%20%5B%5Bregexp%20Operator%5D%5D%20%5B%5BDate%20Fields%5D%5D have fun! mario -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/907a5993-1d0f-4e33-9f83-3f626ceca79a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Get certain characters of a tiddler title
If you don't mind having to create a filter with parts in it for every month/year, then this might work (I've done just 2 months here, 07 and 08): <$list filter="[removeprefix[201608]addsuffix[.08.2016]] [removeprefix[201607]addsuffix[.07.2016]] +[sort[]]"><$view field="title"/> If I might suggest, there might be a better way. How are you making the tiddlers now? Whatever mechanism, perhaps it could simultaneously date stamp the caption field (or some other field) with the german date format. Then your filter could be very simple, just selecting which field you wanted to sort on. Good luck! Mark On Tuesday, August 9, 2016 at 6:43:51 AM UTC-7, The Bo wrote: > > Hey Mario, > > thanks for your support! > Ok... every tiddler in my TW-project is starting with the american date > format mmdd for better sorting. > Now I would like to seperate , mm and dd to build a german date format > like dd.mm. and put it in a dynamic table via $list. > > Regards, > The Bo > > Am Dienstag, 9. August 2016 14:33:19 UTC+2 schrieb PMario: >> >> Hi Bo, >> >> I don't know an easy solution out of the box. ... If you describe, what >> you want to achieve, imo it may be possible to find an easy (and existing) >> way. >> >> -mario >> > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/af9eba4b-dde0-419b-981c-84fe96956389%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Get certain characters of a tiddler title
Hey Mario, thanks for your support! Ok... every tiddler in my TW-project is starting with the american date format mmdd for better sorting. Now I would like to seperate , mm and dd to build a german date format like dd.mm. and put it in a dynamic table via $list. Regards, The Bo Am Dienstag, 9. August 2016 14:33:19 UTC+2 schrieb PMario: > > Hi Bo, > > I don't know an easy solution out of the box. ... If you describe, what > you want to achieve, imo it may be possible to find an easy (and existing) > way. > > -mario > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/56ee6313-f83c-4f3b-b341-9cb7931984af%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[tw] Re: [TW5] Get certain characters of a tiddler title
Hi Bo, I don't know an easy solution out of the box. ... If you describe, what you want to achieve, imo it may be possible to find an easy (and existing) way. -mario -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/0ad2ee55-7eb4-4361-80ba-278028ec33fe%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.