[tw] Re: List filter question

2015-12-19 Thread Eric Shulman
On Saturday, December 19, 2015 at 8:46:20 AM UTC-8, David Gifford wrote: > > Well, I cheated and went with this: > 1. <$list filter="[tag[bi]sort[title]]"><$view field="title"/> > <$transclude field="relativepath" mode="inline"/> > 2. relativepath is set up like this:

[tw] Re: [TW5] Can a Widget Set Variable be incremented?

2015-12-19 Thread Tobias Beer
Hi guys, I implemented all of the suggested improvements as announced here: https://groups.google.com/forum/#!topic/tiddlywiki/ebha1ktI22U Best wishes, Tobias. On Saturday, 19 December 2015 12:59:47 UTC+1, Tobias Beer wrote: > > Hi leeand00 & matabele, > > >> I created a new filter plugin

[tw] List filter question

2015-12-19 Thread David Gifford
Hi all I would like to create a list filter where for each tiddler: 1. you would see the tiddler's title. 2. But the tiddler title would be an external link to a relative filepath contained in a special field in that tiddler ("relativepath"). So the list results would turn up the equivalent of

Re: [tw] Re: List filter question

2015-12-19 Thread David Gifford
Thanks Eric! On Sat, Dec 19, 2015 at 11:41 AM, Eric Shulman wrote: > On Saturday, December 19, 2015 at 8:46:20 AM UTC-8, David Gifford wrote: >> >> Well, I cheated and went with this: >> 1. <$list filter="[tag[bi]sort[title]]"><$view field="title"/> >> <$transclude

[tw] Re: List filter question

2015-12-19 Thread David Gifford
Well, I cheated and went with this: 1. <$list filter="[tag[bi]sort[title]]"><$view field="title"/> <$transclude field="relativepath" mode="inline"/> 2. relativepath is set up like this: (go) But if someone has a better way to do this, where the title contains the external, relative link,

[tw] [TW5] New plugin / update: tobibeer/make

2015-12-19 Thread Tobias Beer
Hi folks, As created, discussed and announced in the context of this thread , I made a new *filter* plugin called tobibeer/make to be found at:

Re: [tw] Re: [TW5] New plugin / update: tobibeer/make

2015-12-19 Thread Alex Hough
Very thought provoking Tobias I also like the way the view template displays the title of tiddlers with the prefix "make-" ... very easy to navigate Alex On 19 December 2015 at 21:03, Felix Küppers wrote: > Hi Tobias, > > Very(!!) nice filter you created! Quite

[tw] Re: List filter question

2015-12-19 Thread Tobias Beer
Hi Dave, > Then, use the $macrocall widget to invoke your macro using the values > stored in the two separate fields, like this: > <$macrocall $name="extlink" text={{!!title}} path={{!!relativepath}} /> > Alternatively, put it in a template, e.g.: title: $://extlink \define

Re: [tw] Re: List filter question

2015-12-19 Thread David Gifford
Thanks Tobias! On Sat, Dec 19, 2015 at 12:55 PM, Tobias Beer wrote: > Hi Dave, > > >> Then, use the $macrocall widget to invoke your macro using the values >> stored in the two separate fields, like this: >> <$macrocall $name="extlink" text={{!!title}}

[tw] Re: [TW5] New plugin / update: tobibeer/make

2015-12-19 Thread Felix Küppers
Hi Tobias, Very(!!) nice filter you created! Quite revolutionary, I have to say. It is more than just a very handy swiss army knife (uuid creation, concatinations, placeholders, *for loops* with the use of count, step and max directives, how cool!) – it opens the gate for a whole lot of

[tw] Re: Can I sum two fields?

2015-12-19 Thread magasine
The number of arguments is limited? I can not calculate the expression: << calc !!field_a + by:tiddler_b!! field_b + by:tiddler_c!!field_c >> TIA, Manoel Campinas, SP - Brasil Em terça-feira, 27 de outubro de 2015 06:30:08 UTC-2, Tobias Beer escreveu: > > Hi James, > > I have updated *calc*

[tw] Re: [TW5] plugin update: tobibeer/setvars => NEW: conditionals

2015-12-19 Thread Tobias Beer
Hi everyone, I just published version 0.5.6 of tobibeer/setvars : - simplified conditionals: - if(condition?then) || else - much simpler code than for ternary operator as

[tw] Re: [TW5] New plugin / update: tobibeer/make

2015-12-19 Thread Tobias Beer
Hi Felix, Glad you like this little swiss-knife. :) Before we further discuss your proposals, I believe you can already do these things somewhat differently, but quite easily, I think. Now, it wouldn't work like your splitAndSelect macro, but what you could do instead is use... -

[tw] Re: [TW5] Can a Widget Set Variable be incremented?

2015-12-19 Thread Matabele
Hi Tobias Neat -- to replace most of the functionality of the $x-maketid widget, use: <$button> <$list filter="[make[MyNewTitle \max:3]]"> <$action-setfield text="My New Tiddlers" tags="one [[and two]] three" field-one="myvalue"/> <$action-navigate/> Make New Tiddlers -- can create one or

[tw] Re: [TW5] Can a Widget Set Variable be incremented?

2015-12-19 Thread Tobias Beer
Hi leeand00 & matabele, > I created a new filter plugin that allows to generate new titles for use > with things like the *set* or *list* widget: > > http://tobibeer.github.io/tw5-plugins/#make > FYI, I have decided to change some fundamentals of make again. For the time being, to generate

Re: [tw] [TW5] plugin update: tobibeer/setvars => NEW: conditionals

2015-12-19 Thread Tobias Beer
Hi Alex, > What kind of uses could this development be put to? > I am sure those will emerge with people starting to use setvars. For example, I often find myself having to create two reveals, one for each condition, just because some string may have two states, e.g. "emtpy" or "non-empty".

[tw] Re: [TW5] Can a Widget Set Variable be incremented?

2015-12-19 Thread Matabele
Hi Tobias Good idea -- a number of tiddlers can be created from a list like so: <$button> <$list filter="[[]append:3{Days of the Week!!short}]"> <$action-setfield text="My New Tiddlers" tags="one [[and two]]" field-one="myvalue"/> <$action-navigate/> Make New Tiddlers It would be great if

Re: [tw] [TW5] plugin update: tobibeer/setvars => NEW: conditionals

2015-12-19 Thread Tobias Beer
Hi again, Alex, As for replacing reveals, there is something about *setvars* I have not yet communicated: Other than most widgets in the core, the *setvars* only computes its variables once, and that is *by design*! Try this in a new tiddler on: http://tobibeer.github.io/tw5-plugins ''

[tw] Re: [TW5] Can a Widget Set Variable be incremented?

2015-12-19 Thread Tobias Beer
Hi matabele, > It would be great if the make[] operator could prepend/append terms to the > listed titles. > Exactly what I'm saying. I simply need to use the input titles, if any are given, and then simply do: {{{ a b c +[make[before %title% after]] }}} - before a after - before b

Re: [tw] [TW5] plugin update: tobibeer/setvars => NEW: conditionals

2015-12-19 Thread Alex Hough
Hi Tobias, What kind of uses could this development be put to? Alex On Saturday, 19 December 2015, Tobias Beer wrote: > Hi everyone, > > I took a few hours to create a new version 0.5.5 > of > tobibeer/setvars

[tw] Re: [TW5] Can a Widget Set Variable be incremented?

2015-12-19 Thread Tobias Beer
Hi Matabele, Just know that you possibly don't even need to use any *%count% *for the new titles. So, instead of... <$list filter="[make[<> %count% \ max:3]]"> This will equally work... <$list filter="[make[max:3]]"> Best wishes, Tobias. -- You received this message because you are

Re: [tw] Re: Can I sum two fields?

2015-12-19 Thread Alex Hough
You could try http://tobibeer.github.io/tw5-plugins/#eval Alex On 20 December 2015 at 00:15, magasine wrote: > The number of arguments is limited? I can not calculate the expression: << > calc !!field_a + by:tiddler_b!! field_b + by:tiddler_c!!field_c >> > > TIA, > >

[tw] Re: [TW5] plugin update: tobibeer/setvars => NEW: conditionals

2015-12-19 Thread AlexHough
Tobias, I was thinking about a use case, it follows on a was of thinking using the conceptual metaphor "TW as a synthesiser" and influenced by a few things I've come across recently First the "inputs" ... Treat the recording studio as a laboratory for conceptual thinking — rather than as a

[tw] Re: [TW5] plugin update: tobibeer/setvars => NEW: conditionals

2015-12-19 Thread Tobias Beer
Hi Alex, Curious to see what you will come up with. Allow me to focus on the plugins... Setvars and eval > > The idea could involve setvars and eval... what follows is largely > dependant on my understanding of what setvars and eval could do. > > 10) compare two "created fields" - set a