[tw5] Re: <$list> output as a single string?

2018-06-20 Thread hubertgk
Thank you all for the suggestions! Much appreciated. Best, Hubert On Tuesday, 19 June 2018 16:22:12 UTC+1, Stobot wrote: > > I agree - a sum[] filter operator would be hugely valuable! I like the > plugin but it's often overkill for simple needs. sum[] should be core in my > opinion. > --

[tw5] How can I check if has an empty list field?

2018-06-20 Thread hubertgk
Hi, I'm trying to find a way to specifically check whether the current tiddler has a list field with no value. I've found this in the documentation but the below filter does not seem to return any relevant tiddlers: <$list filter="[has:list[emptyfield]]"> I'm not quite sure whether

[tw5] <$list> output as a single string?

2018-06-18 Thread hubertgk
Hi, Using Evan Balster's <> macro, I'm trying to sum the numerical output of a <$list> filter but each of the list items is processed separately. For example, if the output of my list is 2 2 1 and I try to sum that with 5 using <>, then each of the arguments is summed in isolation and I get

[tw5] Re: Make elements undraggable through CSS?

2018-06-14 Thread hubertgk
OK, I've checked in Chrome and it works as expected. Still no luck on Firefox though. From what I've gathered online, this might be a FF bug because the correct implementation for FF appears well documented otherwise. Thanks again! On Wednesday, 13 June 2018 13:57:58 UTC+1, hubertgk wrote

[tw5] Re: Make elements undraggable through CSS?

2018-06-13 Thread hubertgk
; -khtml-user-select: none; /* Konqueror */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* IE */ user-select: none; /* CSS3 */ } Thanks! On Wednesday, 13 June 2018 15:19:38 UTC+1, Eric Shulman wrote: > > On Wednesday, June 13, 2018 at 5:57:58 AM UTC-7, hubertgk

[tw5] Make elements undraggable through CSS?

2018-06-13 Thread hubertgk
Hi, Is there a way to make certain elements undraggable through CSS? I've so far tried wrapping an image element within a element with a CSS class pointing to the below code but the image was still draggable. Is there a simple way that works? .undraggable { user-drag: none;

[tw5] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-05-03 Thread hubertgk
Thanks. Unfortunately, this doesn't work. Using your code, how would I reference an image that's embedded in the TiddlyWiki itself? What's the exact path then, if we're trying to use the url definition? Also, are jpeg files treated differently in this code than svgs? Thanks -- You received

[tw] Re: Is there a way to pass <$count> (or similar) to Evan's <> for calculation?

2018-04-03 Thread hubertgk
Thank you Jed for the specific examples. I knew how to substitute but wasn't aware of the 'inverse' syntax for the <$count> operation -- when noted as the <$count> widget I could never get it to work but putting it at the end of a <$list> filter as [count] does work exactly as needed. Just for

[tw] Re: Is there a way to pass <$count> (or similar) to Evan's <> for calculation?

2018-03-30 Thread hubertgk
Thanks Matthew, could you please provide some example code? On Friday, 30 March 2018 19:34:09 UTC+1, Matthew Lauber wrote: > > Use the filter field of the <$set> wiget to to set a variable equal to the > count insidethere use the <$macrocall> widget to pass the variable to the > <> macro. > >

[tw] Is there a way to pass <$count> (or similar) to Evan's <> for calculation?

2018-03-30 Thread hubertgk
Well, I know it's not really possible because <$count> is not a function. But I was hoping that someone found a way, perhaps using javascript, to count tiddlers based on a filter and then pass that number as a parameter to a macro. I'd be very grateful for suggestions and, again, thank you for

[tw] Re: A question about the search operator

2018-03-27 Thread hubertgk
Thanks Stephan, your suggestion worked. I've just had to change to [skill_level]. Thank you! Regards, Hubert On Tuesday, 27 March 2018 06:18:43 UTC+1, Stephan Hradek wrote: > > To search in the values, i'm not sure, but I think this would do: > > <$list filter="[all[tiddlers+shadows] >

[tw] Re: A question about the search operator

2018-03-26 Thread hubertgk
Hi BurningTreeC and thanks for your input. Am I correct in saying that your code will search in indexes and not in their values? I'm specifically looking to search in values. Best regards, Hubert On Monday, 26 March 2018 18:47:12 UTC+1, BurningTreeC wrote: > > Hello @hubertgk > &g

[tw] Re: A question about the search operator

2018-03-26 Thread hubertgk
better solutions. Thanks! On Monday, 26 March 2018 17:05:44 UTC+1, hubertgk wrote: > > Hi, > > I know we're able to *search* within tiddler *fields *as explained in the > documentation > <https://tiddlywiki.com/static/search%2520Operator%2520(Examples).html> >

[tw] A question about the search operator

2018-03-26 Thread hubertgk
Hi, I know we're able to *search* within tiddler *fields *as explained in the documentation -- for example, the below syntax... [search:caption[arch]] ...will return all tiddlers containing the search term arch in their

[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread hubertgk
suggestions. On Thursday, 22 March 2018 18:21:36 UTC, Matthew Lauber wrote: > > You can get an plugin (offline) version of font awesome from here, I > believe. https://github.com/TheDiveO/TW5FontAwesome/releases/tag/1.2.1 > > > > On Thursday, March 22, 2018 at 1:35:00 PM

[tw] Re: Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread hubertgk
>> placeholder field, but as you can see, it doesn't render as html, but as >> plain text. >> >> <$wikify name="temp" text="[img width='12' [Motovun Jack.svg]] bla bla >> bla" output="html"> >> >> >> <$edit-te

[tw] Is there a way to include an SVG image together with text as the placeholder of an <$edit-text> field?

2018-03-22 Thread hubertgk
Hi, I'm trying to place a local (non-URL'ed) SVG image in a placeholder of a text input field but it doesn't get 'wikified'. One workaround I've tried was to define a background image using CSS,

[tw] Re: Removing an index and its value from a dictionary tiddler

2018-02-09 Thread hubertgk
It works! :) Thank you. On Friday, 9 February 2018 14:45:29 UTC, BurningTreeC wrote: > > hello @hubertgk, > > try <$action-setfield $tiddler="_data000" $index="film_frame_hh"/> > > hope it works > BTC > > Am Freitag, 9. Februar 2018 15:41:

[tw] Removing an index and its value from a dictionary tiddler

2018-02-09 Thread hubertgk
Hi all, So far, I've only been able to clear a value from the below index, such as below: <$action-setfield $tiddler="_data000" $index="film_frame_hh" $value=""/> What I want to achieve is remove the index "film_frame_hh" altogether (along with its value, of course). Is there a way to do

[tw] Re: Copy to clipboard button?

2018-02-05 Thread hubertgk
OK, that's great, I'll wait. Thanks for letting me know! On Monday, 5 February 2018 11:29:09 UTC, PMario wrote: > > Hi Hubert, > > It seems this function is part of the upcoming version 5.1.16 ... see: > https://tiddlywiki.com/prerelease/ > The code works there. > > It doesn't work with

[tw] Copy to clipboard button?

2018-02-05 Thread hubertgk
Hi all, The following example is available in the documentation : <$button message="tm-copy-to-clipboard" param=<>> Copy date to clipboard On button press, the copy operation should either succeed or

[tw] Copy to clipboard button?

2018-02-05 Thread hubertgk
Hi all, The following example is available in the documentation : <$button message="tm-copy-to-clipboard" param=<>> Copy date to clipboard On button press, the copy operation should either succeed or

[tw] Copy to clipboard button

2018-02-05 Thread hubertgk
Hi all, I'm trying to wrap the below macro in a button to copy some text to the clipboad on button press, but can't get it to work: <$macrocall $name="copy-to-clipboard" src={{$:/SiteTitle}}/> Would anyone have

[tw] Re: Railroad plugin?

2018-01-29 Thread hubertgk
> > See my tw5quickref wiki at > These are exactly the bits that I was missing to get started. Thank you! On Sunday, 28 January 2018 20:10:57 UTC, wjam wrote: > > For my own reference I added some more examples to the railroad syntax > tiddler > > See my tw5quickref wiki at > >

[tw] Railroad plugin?

2018-01-27 Thread hubertgk
Hi all, I'm looking for a lightweight solution to creating simple graphs/flowcharts and the railroad plugin appears to be what I'm looking for (there are fancier solutions out there, but I'd rather keep my tiddlywiki file(s) small and with no dependencies etc). However, the railroad plugin

[tw] Re: How to transclude <>'s text or <$set> its text to a variable?

2018-01-26 Thread hubertgk
Thank you! On Thursday, 25 January 2018 22:49:37 UTC, ste...@gmail.com wrote: > > Hi, > > On Monday, January 22, 2018 at 11:13:02 AM UTC+1, hubertgk wrote: >> >> >> Is there a way to transclude <>'s text or <$set> its text >> to a variable? >>

[tw] How to transclude <>'s text or <$set> its text to a variable?

2018-01-22 Thread hubertgk
Hello, Is there a way to transclude <>'s text or <$set> its text to a variable? Since <> is short-lived, in that it's created on drag and destroyed on drop, I assume that transcluding and setting its text to a variable would need to be performed using some kind of an <$action> within the

[tw] Re: Image storage suggestions

2018-01-19 Thread hubertgk
I'm using Imgur for image hosting and it works well. The URL is static and nicely shortened. The only limitation is that you have to be online for the images to load :). The service is free and I think the number of pictures you can upload is unlimited (I could be wrong on this one, though).

[tw] Re: Formula 0.2: Functional computing & spreadsheet formulas for TiddlyWiki

2018-01-18 Thread hubertgk
Hi Evan, Great work on the plugin! Just wondering, has IFERROR been implemented yet? It's listed as a function under 'Selection' but when I try to use it I get the following exception: CompileError: unknown function: IFERROR I'm on version 2.1. The online 'Try Me' field shows the same error.

[tw] Re: Formula: Spreadsheet-like mathematics for TiddlyWiki

2017-12-18 Thread hubertgk
Amazing work, Evan! Thank you! On Monday, 18 December 2017 12:57:38 UTC, Mat wrote: > > Evan, I find it confusing that > > 2+3*4 > 12 works but not "2+3*4 = 12" nor "2+3*4 == 12" . > > And why does (= pow(3, 2) =) work but not (= gr(3, 2) =) ? > > <:-) > -- You received this message because

[tw] Re: A button to clone the current tiddler?

2017-12-11 Thread hubertgk
Exactly what I needed. Thank you! On Sunday, 10 December 2017 15:42:37 UTC, Eric Shulman wrote: > > On Sunday, December 10, 2017 at 6:52:18 AM UTC-8, hubertgk wrote: >> >> Is it possible to clone the current tiddler (including all its contents >> and, if possible, tags)

[tw] A button to clone the current tiddler?

2017-12-10 Thread hubertgk
Hi All, Is it possible to clone the current tiddler (including all its contents and, if possible, tags) upon a press of a button? I couldn't find anything relevant in the documentation. What I'm trying to achieve: I have a list of tiddlers tagged 'template' and would like to embed this button

Re: [tw] How to use fields from other (dynamically listed) tiddlers as parameters in a macro calculation?

2017-11-03 Thread hubertgk
voking it via text substitution: > > <$action-setfield $tiddler="_data000" $index=$(CurrentTiddler)$ $value=$( > Updated_status)$/>⥁Status > > Because there’s no wikification done during text substitution, that is > equivalent to: > > <$action-set

[tw] Re: How to use fields from other (dynamically listed) tiddlers as parameters in a macro calculation?

2017-11-03 Thread hubertgk
, hubertgk wrote: > > Thanks for your input Jed. > > If I understand what is going on correctly the problem is that macros >> don't necessarily trigger their own updates. So even if the value in a >> field field that is passed to the macro changes it won't necessarily make &g

[tw] Re: How to use fields from other (dynamically listed) tiddlers as parameters in a macro calculation?

2017-11-02 Thread hubertgk
Thanks for your input Jed. If I understand what is going on correctly the problem is that macros don't > necessarily trigger their own updates. So even if the value in a field > field that is passed to the macro changes it won't necessarily make the > output of the macro to change. > I'm

[tw] How to use fields from other (dynamically listed) tiddlers as parameters in a macro calculation?

2017-11-02 Thread hubertgk
Hi, I have some tiddlers tagged 'tracker' and each of those tiddlers has the following 4 fields: tracker_current_value tracker_target_value tracker_start_date tracker_end_date In a separate 'dashboard' tiddler, I'm listing these tracker tiddlers based on their tag, so: <$list

[tw] Re: Passing the result of a defined macro to a HTML element

2017-10-26 Thread hubertgk
Sure; I've attached the exported tiddler with the macro (previously I've pasted the full code in here but it appears to have been truncated, so I deleted my post). Please let me know if the macro doesn't work for you. Any improvement suggestions welcome! :) Thanks, Hubert On Thursday, 26

[tw] Re: Passing the result of a defined macro to a HTML element

2017-10-26 Thread hubertgk
: application/javascript module-type: macro author: hubertgk Macro to return an optionally fractional number of days between now and a specified date and, optionally, time. Required input: <> HH and MM are optional, when skipped then start of day (midnight) is assumed. \*/ (fu

[tw] Re: Passing the result of a defined macro to a HTML element

2017-10-26 Thread hubertgk
;>>> > <> > > \end > > \define mymacro() > > y=16 > fill="red">▼ > \end > > > $set name=currentVal value={{!!tracker_current_value}}> > <$set name=targetVal value={{!!tracker_target_value}}> > > <> >

[tw] Re: Passing the result of a defined macro to a HTML element

2017-10-26 Thread hubertgk
You can see what is going on by using the text widget: > > > <$text text=<>/> > > gives > > <$macrocall $name="rpn" a=<> b=520 operation="*"> > > - macro are not 'wikified' when used in params > > I would use a macro around t

[tw] Passing the result of a defined macro to a HTML element

2017-10-26 Thread hubertgk
Hi All, I'm building a goal tracker using two html elements: and , the brilliant "rpn" macro by Thomas Elmiger and a simple "DaysDiff" macro that I created myself (it returns the number of days elapsed from a given date). The HTML element moves along the x axis and shows the completion rate

[tw] Re: A question about transclusion of dictionary values with an undefined index as input

2017-10-19 Thread hubertgk
Thank you! This works perfectly and solves my problem. Best, Hubert On Thursday, 19 October 2017 16:04:51 UTC+1, Jed Carty wrote: > > A lot of problems like this can be solved by using the list widget. > > <$list filter='[[FoodPrefs]getindex{$:/index}]' emptyMessage="No name or > name not

[tw] A question about transclusion of dictionary values with an undefined index as input

2017-10-19 Thread hubertgk
Hi all, I've a dictionary tiddler named FoodPrefs listing names of people and their food preferences: John:omnivore Jane:vegetarian Mike:pescetarian In another tiddler, I've the following search box: <$edit-text tiddler="$:/index" tag="input"/> and just below, the following output area with

[tw] N00b question re: saving

2017-10-18 Thread hubertgk
Hi all, Please excuse my ignorance, this is a noob question and I could not find a satisfactory answer elsewhere. There's been lot of discussion going on recently about the way that future updates to FF and Chrome may break saving in TiddlyWiki. At the same time, workarounds and solutions are