Thanks Mark - this looks really good. However, what I'm wanting to do it to truncate the !!text inside the tiddler identified by ``viewpath`` I can't seem to get this to work with that. Any suggestions?
On Sunday, 18 August 2019 22:29:13 UTC+1, Mark S. wrote: > > This variant uses the new splitregexp operator to eliminate the last > character: > > \define ViewTiddlerAppended() > <$set name=shortpath filter="[{$(viewpath)$}splitregexp[^(.*?).$]]" select > =1 > > <<shortpath>>. Nice to see you. > </$set> > \end > > <$vars viewpath="$:/plugins/felixhayashi/tiddlymap/graph/views/map" > > > <<ViewTiddlerAppended>> > > </$vars> > > > > On Sunday, August 18, 2019 at 11:49:19 AM UTC-7, MagoArcade wrote: >> >> Let's say "$:/plugins/felixhayashi/tiddlymap/graph/views/map" contains >> the text "{line 1} Hello World}" (note the curly bracket) >> >> >> \define ViewPath() >> $:/plugins/felixhayashi/tiddlymap/graph/views/map >> \end >> >> >> \define ViewTiddlerAppended() >> {{$(ViewPath)$}}. Nice to see you. >> \end >> >> How do I get <<ViewTiddlerAppended>> to read: >> >> "{line 1} Hello World. Nice to see you." >> >> (i.e. remove the last character of the text in the tiddler) >> > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/77be73d2-5ed3-4283-afb8-eae4a922a451%40googlegroups.com.