[tw5] Re: xlxs utilities not working in V22 or V23

2021-06-10 Thread Eric Shulman
On Thursday, June 10, 2021 at 5:38:56 AM UTC-7 prbru...@gmail.com wrote:

> How do i manually update an existing wiki? I have a whole bunch of 
> embedded tiddlymaps and it really annoying to have to rebuild them all from 
> an empty wiki. Thanks!


https://tiddlywiki.com/prerelease/upgrade

-e

-- 
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/8f021a92-ca42-453f-842e-1c0f4d0a4fa5n%40googlegroups.com.


[tw5] Re: Input Prompts to Provide Variables With Button?

2021-06-09 Thread Eric Shulman
On Wednesday, June 9, 2021 at 9:53:36 AM UTC-7 iamdar...@gmail.com wrote:

> I can't figure out how to:
> 1) Make the toc div text a variable, named tocscript, to call it in the 
> script like the fields, so I can add it to the new tiddler being created.
>

Move the toc div text into a macro named "tocscript".  Macros are 
essentially variables that can accept parameters.

2) Update the tag name in the toc-selective-expandable macro before it is 
> added to the new tiddler being created.
>

Within a macro, there are two forms of syntax that are automatically 
replaced when the macro is processed:
* instances of $paramname$ are replaced by corresponding values that are 
passed to the macro as parameters
* instances of $(varname)$ are replaced by corresponding values that are 
defined in variables before the macro is invoked

Thus, for your purposes:
\define temp() $:/temp/input/$(currentTiddler)$

\define tocscript()

<>

\end

|  Story Name:|<$edit-text tiddler=<> field="storyname"/>|
|   Story Abbreviation:|<$edit-text tiddler=<> field="storyabbrev"/>  
|

<$tiddler tiddler=<>>
<$button> Create Story
   <$vars storyabbrev={{!!storyabbrev}}>
   <$action-setfield $tiddler={{!!storyabbrev}} text=<> 
tags="Stories" />
   <$action-setfield $tiddler={{{ [{!!storyabbrev}addsuffix[ Chapter 001]] 
}}} tags={{!!storyabbrev}} />
   <$action-deletetiddler tiddler=<> />
   


 
Notes:
* The $vars widget fetches the !!storyabbrev input value to turn it into a 
variable named "storyabbrev", so that it can then be automatically replaced 
in the tocscript macro
* I don't see anywhere that you actually use the "!!storyname" input value

enjoy,
-e

-- 
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/5a0abe47-7b1f-47cc-ac18-83fb3b400a66n%40googlegroups.com.


[tw5] Re: Input Prompts to Provide Variables With Button?

2021-06-09 Thread Eric Shulman
On Tuesday, June 8, 2021 at 10:49:07 PM UTC-7 iamdar...@gmail.com wrote:

> If I wanted to add/append some static text to the end of the target field 
> value, how would I do so?
>

Using filtered transclusion:
<$action-setfield $tiddler={{{ [{!!target}addsuffix[ Chapter 01]] }}} etc.

if you want, you could add the suffix to the input table:
| Target suffix:|<$edit-text tiddler=<> field="suffix"/>   |

and then you would use:
<$action-setfield $tiddler={{{ [{!!target}addsuffix{!!suffix}] }}} etc.

enjoy,
-e

-- 
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/79fedf9c-0482-4502-beaf-9764334c4e91n%40googlegroups.com.


[tw5] Re: Input Prompts to Provide Variables With Button?

2021-06-08 Thread Eric Shulman
On Tuesday, June 8, 2021 at 8:21:19 PM UTC-7 cj.v...@gmail.com wrote:

> There are often many different ways of doing things, and I just went ahead 
> with the fastest solution I could think of...
>

Here's a much more compact way to write the same functionality:
\define temp() $:/temp/input/$(currentTiddler)$

|  Label:|<$edit-text tiddler=<> field="label"/>|
|   From Tag:|<$edit-text tiddler=<> field="fromtag"/>  |
| Target:|<$edit-text tiddler=<> field="target"/>   |
| Target Tag:|<$edit-text tiddler=<> field="targettag"/>|

<$tiddler tiddler=<>>
<$button> <$view field="label">join tiddlers 
   <$action-setfield $tiddler={{!!target}} text={{{ 
[tag{!!fromtag}get[text]join[]] }}} tags={{!!targettag}} />
   <$action-deletetiddler tiddler=<> />



Notes:
1) the inputs are stored in a $:/temp tiddler, so it doesn't clutter up the 
visible list of tiddlers
2) the temp tiddler's title is assembled using a simple \define, rather 
than using $vars with filtered transclusion syntax
3) the input form uses simple wikitext table syntax instead of HTML syntax 
to produce more readable code
4) the $edit-text widgets target <> rather than the more verbose, but 
equivalent, {{{ [] }}}
5) the $button is enclosed in a $tiddler widget so that references to the 
input field values can use {{!!fieldname}}
6) the $button uses <$view>... to provide a default label if none 
is input
7) instead of using $wikify, the output text is constructed using filtered 
transclusion syntax to join the source tiddler content into a single string
8) the $:/temp tiddler is deleted after processing the $button press to 
clear all the form inputs for re-use

enjoy,
-e

-- 
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/218d0f02-a4f4-4deb-b259-60e4767b1460n%40googlegroups.com.


[tw5] Re: Create Save and close in one click ?

2021-06-08 Thread Eric Shulman
On Tuesday, June 8, 2021 at 7:03:17 PM UTC-7 mohamed...@hotmail.com wrote:

> One more thing if possible , the field part somefield, i need to 
> transclude a value there with spaces
> somefield={{!!title}}
> and i cant add brackets , because this turns it into a string 
> [[{{!!title}}]]
> Is there any way to insert the value enclosed in brackets ?
>

So... let's say you have a title of "Foo Bar Baz" (i.e., text containing 
spaces).  Then, when you create a new tiddler using somefield={{!!title}}, 
the resulting value of somefield will still be "Foo Bar Baz" (i.e., a 
single text value containing spaces).  For almost all purposes, this will 
be sufficient, and subsequent references to {{!!somefield}} will still 
result as a single text value containing spaces.  Nonetheless, it still 
possible to save the field value including added brackets, so that it will 
be stored as "[[Foo Bar Baz]]".  Here's one method for adding the brackets:

<$button> click me
   <$vars lb="[[" rb="]]">
   <$action-createtiddler $basetitle="SomethingNew" text="yabba dabba doo!" 
tags="foo bar baz" caption="this is a caption" somefield={{{ 
[{!!title}addprefixaddsuffix] }}} />
   


Notes:
* The $vars defines two variables that contain the literal "[[" and "]]" 
text
* The somefield parameter value is then assembled using "filtered 
transclusion" to add the brackets before and after the {!!title} value.
* The $vars is needed because you can't use literal square brackets as text 
within the filter syntax, since they would be interpreted as part of the 
filter syntax itself (i.e., you can't write ...addprefix[[[]... or 
...addsuffix[]]]...)

Another way to achieve this is to use macros instead of $vars to define the 
lb and rb variables, like this:
\define lb() [[
\define rb() ]]

<$button> click me
   <$action-createtiddler $basetitle="SomethingNew" text="yabba dabba doo!" 
tags="foo bar baz" caption="this is a caption" somefield={{{ 
[{!!title}addprefixaddsuffix] }}} />


enjoy,
-e

-- 
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/4d444bdb-faf5-4681-98ae-2d83238d469cn%40googlegroups.com.


[tw5] Re: LaTeX environment using list widget with counter

2021-06-06 Thread Eric Shulman
On Sunday, June 6, 2021 at 9:16:05 AM UTC-7 Eric Shulman wrote:

> On Sunday, June 6, 2021 at 5:56:54 AM UTC-7 Pak wrote:
>
>> Suppose I have 3 tiddlers: tid-thm-a, tid-thm-b, tid-thm-c I would like 
>> to transclude them in a tiddler so that it displays the following:
>> Theorem 1. (optional caption) (...contents in tid-thm-a... displayed in 
>> block mode, but the first line should be on the same line as Theorem 1}
>> Theorem 2. (optional caption) (...contents in tid-thm-b... displayed in 
>> block mode, but the first line should be on the same line as Theorem 2}
>> Theorem 3. (optional caption) (...contents in tid-thm-c... displayed in 
>> block mode, but the first line should be on the same line as Theorem 3}
>>
>
Addendum: I re-read the description of your desired layout.  My previous 
solution didn't put the tiddler contents on the same line as the "Theorem 
X."  heading.

Here's an updated solution that achieves the layout you described:


.theorems
   { counter-reset: num; }
.theorem::before
   { counter-increment: num; content: "Theorem " counter(num) "."; 
float:left; }


   <$list filter="tid-thm-a tid-thm-b tid-thm-c">
  
 (<$view 
field=caption/>) <$transclude mode="block"/>
  
  
   


Notes:
* Added "float:left;" to the "theorem" class, so that it will appear before 
the caption text
* Added "float:left;padding:0 0.5em" around the caption text so that it 
will appear before the tiddler content
* Use of these two floats allows the first line of the tiddler content to 
appear on the same line as the "Theorem X." heading

-- 
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/07ba90d9-ced2-4a97-a050-88dc49c8d9e1n%40googlegroups.com.


[tw5] Re: Create Save and close in one click ?

2021-06-06 Thread Eric Shulman
addendum:

If you want to create new tiddlers with automatic numbering if the tiddler 
already exists, use $action-createtiddler, like this:

<$button> click me
   <$action-createtiddler $basetitle="SomethingNew" text="yabba dabba doo!" 
tags="foo bar baz" caption="this is a caption" somefield="argle bargle" />


-e

On Sunday, June 6, 2021 at 1:14:27 PM UTC-7 Eric Shulman wrote:

> On Sunday, June 6, 2021 at 12:43:25 PM UTC-7 mohamed...@hotmail.com wrote:
>
>> is there a way to have a button  create a new tiddler ,save it  and close 
>> it all in one click?
>>
>
> You can create a tiddler and set field values without ever opening it by 
> using $action-setfield, like this:
>
> <$button> click me
><$action-setfield $tiddler="SomethingNew" text="yabba dabba doo!" 
> tags="foo bar baz" caption="this is a caption" somefield="argle bargle" />
> 
>  
> -e
>

-- 
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/2db0e3dc-6ac9-49fb-8471-a3f6cf06adcan%40googlegroups.com.


[tw5] Re: Create Save and close in one click ?

2021-06-06 Thread Eric Shulman
On Sunday, June 6, 2021 at 12:43:25 PM UTC-7 mohamed...@hotmail.com wrote:

> is there a way to have a button  create a new tiddler ,save it  and close 
> it all in one click?
>

You can create a tiddler and set field values without ever opening it by 
using $action-setfield, like this:

<$button> click me
   <$action-setfield $tiddler="SomethingNew" text="yabba dabba doo!" 
tags="foo bar baz" caption="this is a caption" somefield="argle bargle" />

 
-e

-- 
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/313af374-c925-4081-a308-e12677296901n%40googlegroups.com.


[tw5] Re: LaTeX environment using list widget with counter

2021-06-06 Thread Eric Shulman
On Sunday, June 6, 2021 at 5:56:54 AM UTC-7 Pak wrote:

> Suppose I have 3 tiddlers: tid-thm-a, tid-thm-b, tid-thm-c I would like to 
> transclude them in a tiddler so that it displays the following:
> Theorem 1. (optional caption) (...contents in tid-thm-a... displayed in 
> block mode, but the first line should be on the same line as Theorem 1}
> Theorem 2. (optional caption) (...contents in tid-thm-b... displayed in 
> block mode, but the first line should be on the same line as Theorem 2}
> Theorem 3. (optional caption) (...contents in tid-thm-c... displayed in 
> block mode, but the first line should be on the same line as Theorem 3}
>
> 1. How do I make x run as a counter?
> 2. The contents of transcluded tiddlers appear on the next line, not after 
> the word Theorem x.
>
>
Give this a try:

.theorems
   { counter-reset: num; }
.theorem::before
   { counter-increment: num; content: "Theorem " counter(num) "."; }


   <$list filter="tid-thm-a tid-thm-b tid-thm-c">
  
 <$view field=caption/>
 <$transclude mode="block"/>
  
   


Notes:
* The "theorems" class resets the counter named "num" to 0
* The "theorem" class increments the num counter and displays the "Theorem 
X." text
* I put the transcluded content within a blockquote just to make it look 
nicer

enjoy,
-e

-- 
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/a9323570-8e3b-4c6c-a09c-d0c5f521ebf0n%40googlegroups.com.


[tw5] Re: radio fields /checkboxes slections are not saved

2021-06-03 Thread Eric Shulman
On Thursday, June 3, 2021 at 7:18:02 PM UTC-7 mohamed...@hotmail.com wrote:

> well i do find the filed changes after saving , but they dont reflect in 
> the actual check box or radio button, meaning that while  the value is in 
> the field , the selection i previously made is not showing in the check box 
> or radio button, i hope this makes sense
>

aha!  I just noticed, you've used CAPITAL letters for the field references 
in the $select, $radio and $checkbox widgets.  What is happening is that 
the fields are initially being stored in the tiddler as upper case, so 
things seem to be working at first... but then when the file is saved, the 
stored tiddler fieldnames are automatically converted to lower case.  Then, 
when you reload, those tiddler fieldnames no longer match the references in 
the $select, $radio and $checkbox widgets.

As described in the first line of https://tiddlywiki.com/#TiddlerFields:
TiddlerFields are name:value pairs that make up a tiddler 
. Field names must be *lowercase letters*, 
digits or the characters - (dash), _ (underscore) and . (period).

So... to fix your problem, just change your references to lower case.

-e

-- 
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/3be97ba4-1786-4f9e-a88e-1892bffb8c0dn%40googlegroups.com.


[tw5] Re: radio fields /checkboxes slections are not saved

2021-06-03 Thread Eric Shulman
On Thursday, June 3, 2021 at 5:41:20 PM UTC-7 mohamed...@hotmail.com wrote:

> ...they do set the field values , however when i reload the WIKI , the 
> check boxes are empty and the radio buttons selections are not there...
>

The checkboxes and radio button selections are stored as fields in the 
current tiddler, but those field changes won't be preserved unless you 
actually save your TiddlyWiki file before you reload.

-e




-- 
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/73e57848-0da7-4c88-820d-bc8f1480a0c5n%40googlegroups.com.


Re: [tw5] Navigation Pattern Tiddly Wiki Sample

2021-06-02 Thread Eric Shulman
On Wednesday, June 2, 2021 at 11:44:16 AM UTC-7 Java Development wrote:

> Does anyone have any suggestions on this?
>
> On Wed, Jun 2, 2021 at 10:00 AM Java Development  
> wrote:
>
>> Did any one know or come across any tiddly wiki template which follows 
>> the *navigation pattern*? 
>> I need your kind suggestion on it. I thought of creating a tiddly wiki 
>> with *navigation pattern* with all the articles in ONE HTML...
>> But not sure how to create one like any one of the below..it follows 
>> *navigation 
>> pattern*
>> I'm looking for a good *navigation pattern* in tiddly wiki as above.
>>
>
You've used the phrase "navigation pattern" in all four sentences of your 
message, and you linked to three apps, each of which shows screenshots for 
some kind of a catalog for accessing a collection of articles, 
but you don't actually describe the navigation pattern in any detail.  If 
you provide a more specific explanation of what you are trying to achieve, 
you might get a better response.

-e

-- 
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/a685b540-6f19-4761-a181-f9c7ce6544a0n%40googlegroups.com.


[tw5] Re: Presenting: List styles - just some ways to style list output

2021-06-02 Thread Eric Shulman
On Wednesday, June 2, 2021 at 6:20:11 AM UTC-7 Mat wrote:

> List styles  are some pure CSS styles 
> to reshape output from the ListWidget or filtered transclusions, i.e 
> {{{...}}},  which can otherwise be pretty tricky to control.
>

Don't forget this: http://listtree.tiddlyspot.com/
Changes bullet styles into a tree view!

-e

-- 
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/3414be1d-1b8f-457a-b377-5ea876981ca1n%40googlegroups.com.


[tw5] Re: Unexpected spacing in macro - bug?

2021-05-31 Thread Eric Shulman
On Monday, May 31, 2021 at 9:13:19 AM UTC-7 stefan...@gmail.com wrote:

> I've finally tracked it down to the macro having each of the <$set ...> 
> tags and their respective closing tags on separate lines (simple example 
> below). If I put everything on a single line, the rogue spaces disappear!
> This is odd behaviour to me, as I've always been taught (and found) that 
> multi-line HTML/XML is easier to read, and therefore easier to maintain. Is 
> this expected behaviour or a bug?
>

Even in HTML, whitespace matters.  If you enter text like this:
Some words on the first line
followed by some words on a second line

The line break is NOT ignored. Rather, it is treated as a single whitespace 
character and is reduced to a single space.

Thus, the HTML content is rendered as:
Some words on the first line followed by some words on a second line

In TiddlyWiki, you can eliminate this unwanted whitespace by using the 
"\whitespace trim" syntax.

If you place this syntax at the start of the tiddler, it will affect all 
content in that tiddler
If you place this syntax as the first line of a macro definition, it will 
only affect the content of that macro

Thus, for your purposes, you could write:
\define multi-line-example()
\whitespace trim 
xx<$set name="var1" value="A">
yy<$set name="var2" value="B">
zz<><>zz
yy
xx
\end

enjoy,
-e

-- 
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/7f1bbfac-4fe9-46e0-8a9e-6e91f5c57960n%40googlegroups.com.


Re: [tw5] Re: Understanding Templates, Macros, Etc.

2021-05-30 Thread Eric Shulman
On Sunday, May 30, 2021 at 12:35:52 PM UTC-7 rj...@blackperl.com wrote:

> is there a way to assign it an icon and have it be an action that I can 
> configure into my main menu-bar?
>
1) First, create a tiddler (e.g., "New Project"), containing the desired 
"skeleton content" and tags.
2) Next, create a tiddler (e.g., "NewProjectButton"), containing a $button 
definition like this:
<$button message="tm-new-tiddler" param="New Project" tooltip="Create a new 
Project tiddler" class="tc-btn-invisible">
   {{$:/core/images/spiral}}

3) Tag "NewProjectButton" with *$:/tags/PageControls*

Notes:
* You can name the tiddlers anything you like
* Use class="tc-btn-invisible" so the $button just displays the icon 
without any border or background color
* Replace $:/core/images/spiral with any tiddler containing a small 
button-sized image

enjoy,
-e

-- 
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/1aca81b0-3224-4398-9b21-18974cf7d728n%40googlegroups.com.


[tw5] Re: Understanding Templates, Macros, Etc.

2021-05-29 Thread Eric Shulman
On Saturday, May 29, 2021 at 2:36:29 PM UTC-7 rj...@blackperl.com wrote:

> Please forgive the somewhat newbie-ish post. 
>
You don't need to ask for "forgiveness"... this group welcomes "newbies" 
with open arms. 

> I want to be able to click a button and create a new "Project" tiddler, in 
> which a few basic tags are set but which also has the skeleton content of:
>
> !!Materials
>
> !!!Kits/Aftermarket
>
> !!!Accessories
>
> !!References
>
> !!Web References
>
> !!Notes
>
>
1) First, create a tiddler (e.g., "ProjectStarter"), containing the desired 
"skeleton content" and tags.
2) Next add the following $button wherever you like:
<$button message="tm-new-tiddler" param="ProjectStarter">New 
Project

That's it.  When you press the "New Project" button, it will open a new 
tiddler for editing with the indicated default starting content.

enjoy,
-e


-- 
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/dfb7829e-31c8-468b-9777-e407e9b5f588n%40googlegroups.com.


[tw5] Re: One macro reading and writing to a tiddler: how do we go about it ?

2021-05-26 Thread Eric Shulman
On Wednesday, May 26, 2021 at 6:10:16 PM UTC-7 cj.v...@gmail.com wrote:

> Is there an alternative that does not involve user interaction that can, 
> within one macro, commit writes to a tiddler such that the macro can 
> subsequently read the tiddler ?
>

There is a "trick" that will, for some use-cases, allow you to achieve the 
results you want.

Let's assume you are triggering the actions via a $button widget.  There 
are two ways to define the $button actions 
1) In the body of the $button widget
2) using the actions= parameter of the $button widget.

The trick is to use both methods.  Action in the $button body are performed 
first.  Then, *after those actions are completed*, the action=... parameter 
is processed.

Thus,
\define part1()
<$action-setfield foo="something" />
\end

\define part2()
<$list filter="[{!!foo}match[something]]">
   <$action-setfield bar="somethingelse" />

\end

<$button actions=<>> click me <> 

Unfortunately, this technique can't be generalized to more than two 
separate sets of actions, but even so, it is still quite useful for solving 
a number of sticky problems.

enjoy,
-e

-- 
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/0915ccf0-ce72-454a-8b83-df41b703b94bn%40googlegroups.com.


[tw5] Re: Resume numbering for ordered lists?

2021-05-26 Thread Eric Shulman
On Wednesday, May 26, 2021 at 6:51:40 PM UTC-7 David Gifford wrote:

> I have an ordered list in a tiddler
> Then I have an image or table or whatever which I want to display the 
> width of the tiddler.
> Then I resume my ordered list
> But the list starts at 1 again, rather than at 4.
>

Way back in the TWClassic days, I "discovered" that if you start a  at 
the *end *of a numbered bullet item you can put any content you like (e.g., 
tables, images, etc.) following it, and then end with a closing  
followed by another numbered bullet item on the next line, and it will 
continue the numbering.  This method still works in TW5, and is actually 
documented at the very end of https://tiddlywiki.com/#Lists%20in%20WikiText.

For example:
# foo
# bar
# baz

| table | cells  |
| argle | bargle |
<$image source="Motovun Jack.jpg" width="100%" />

# mumble
# frotz

enjoy,
-e

-- 
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/b4fd496c-98a5-4ff5-a8d5-6a08ef4d35e3n%40googlegroups.com.


[tw5] Re: Nested List, show Level 1 only if Level 2 exists

2021-05-26 Thread Eric Shulman
On Wednesday, May 26, 2021 at 7:15:49 AM UTC-7 JM wrote:

> I want to exclude projects with tasks tagged with 'A'. Somehow it doesn't 
> work out as expected (well it did, something changed and I'm not sure what 
> and why ... :-\ )
> I added !tag[A] in the second filter:
> <$list filter="[tag[project]sort[]]">
><$list filter="[tag{!!title}tag[CAD]limit[1]!tag[A]]" 
> variable="has_tasks_with_CAD_tag">
>   <$link>''<$view field="title"/>''
>   <$list filter="[tag{!!title}tag[CAD]sort[]]">
>  <$link />
>   
>
>  
>

You need to put the "!tag[A]" syntax *before* the limit[1], and then also 
add it to the inner filter, like this:

<$list filter="[tag[project]sort[]]">
   <$list filter="[tag{!!title}tag[CAD]!tag[A]limit[1]]" 
variable="has_tasks_with_CAD_tag_and_not_A_tag">
  <$link>''<$view field="title"/>''
  <$list filter="[tag{!!title}tag[CAD]!tag[A]sort[]]">
 <$link />
  
   
 

enjoy,
-e

-- 
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/a8ef0bfc-3c0b-4a5f-bd3b-4aa0a8f7747cn%40googlegroups.com.


Re: [tw5] Filter big image tiddlers

2021-05-26 Thread Eric Shulman
On Wednesday, May 26, 2021 at 6:00:19 AM UTC-7 Jeremy Ruston wrote:

> [all[tiddlers+shadows]is[image]] 
> :filter[get[text]length[]compare:number:gteq[1]]
>

Alternatively, the following wikitext will generate a table listing all 
image tiddlers with their size, sorted in descending order
<$vars length="[get[text]length[]]">
<$list filter="[all[tiddlers+shadows]is[image]!sortsub:number]">
   <$link /><$text text={{{ 
[get[text]length[]] }}}/>



enjoy,
-e

-- 
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/8925eb40-4f47-4e6d-9a2e-50d2d9e67f8dn%40googlegroups.com.


[tw5] Re: Specify in link if tiddler should open above or below current

2021-05-23 Thread Eric Shulman
On Sunday, May 23, 2021 at 7:53:40 AM UTC-7 Anjar wrote:

> Hi,
> I have some tiddlers in sequence with links to previous/next at the 
> bottom. To keep the order in the story, I want previous tiddlers to open 
> above the current but he next to open below. Is it possible to achieve this 
> in some way?
> I tried this, but without success:
>
> <$button class="tc-btn-invisible tc-tiddlylink">
> <$action-setfield $tiddler="$:/config/Navigation/openLinkFromInsideRiver" 
> text="above"/>
> <$action-navigate $to=<> />
> <$action-setfield $tiddler="$:/config/Navigation/openLinkFromInsideRiver" 
> text="below"/>
> << Previous
> 
>

The problem is that button actions are not guaranteed to be processed in 
the order they are listed.  This is because some actions (such as 
$action-navigate) are handled asynchronously during the TWCore refresh 
cycle.  In your example code, both setfield widgets are processed before 
the navigate widget.  Thus, by the time the navigate widget is invoked, 
"openLinkFromInsideRiver" has already been reset back to "below".

However, there *is* a way to split the actions into two parts, so that the 
first part is performed (and *completed*) before the second part is 
invoked.  To do this, you use actions that are in the body of the $button 
widget as well as the actions=... parameter of the $button widget.  The 
"body" actions will be performed first, followed by the parameter actions.

Try this:
<$button class="tc-btn-invisible tc-tiddlylink" actions="""
   <$action-navigate $to=<> />
   <$action-setfield 
$tiddler="$:/config/Navigation/openLinkFromInsideRiver" text="below"/>
""">
<$action-setfield $tiddler="$:/config/Navigation/openLinkFromInsideRiver" 
text="above"/>
<< Previous


enjoy,
-e

-- 
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/eec4080e-30fc-4894-80e1-52b346c68c0dn%40googlegroups.com.


[tw5] Re: remove tags meeting specific criteria

2021-05-22 Thread Eric Shulman
On Saturday, May 22, 2021 at 12:46:19 PM UTC-7 mohamed...@hotmail.com wrote:

> is there a command that could be used to remove certain tags that meet a 
> specific criteria , say for example all tags that have a "#"  maybe ?
> so if tiddler A  has "tag 1" "#tag 2" "tag 3"
> is there a way to remove #tag 2  for example
> i am also doing this part of creating a new  tiddler that inherits tags 
> from another tiddler , but i dont want all of the tags
>

Try this:
<$button> test this
<$vars lb="[[" rb="]]">
<$action-sendmessage $message="tm-new-tiddler"
   tags={{{ [[Tiddler 
A]get[tags]enlist-input[]!prefix[#]addprefixaddsuffixjoin[ ]] }}} />



Notes:
* [Tiddler A]get[tags] gets the tags field value as a single text string
* enlist-input[] converts this to a list of individual tags
* !prefix[#] filters out the undesired tags
* addprefixaddsuffix adds doubled brackets surrounding each tag (in 
case the tag names contain spaces
* join[ ] reassembles the individual tags back into a single text string

enjoy,
-e

-- 
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/fc0120b0-ee60-4672-8f98-1e61c6729268n%40googlegroups.com.


[tw5] Re: Select widget showing current field value

2021-05-22 Thread Eric Shulman
On Saturday, May 22, 2021 at 1:16:55 AM UTC-7 JM wrote:

> Status: <$select field='Status' default='new'>
> new
> A
> B
> C
> D
> 
>

The $select widget creates a field with the specified name (i.e. 
"Status").  If you re-display the tiddler *during the current session* , 
the selected value ("A") will be shown in the $select list, as you 
expected.  However, all field names *must* be lower case to comply with the 
HTML syntax used to store them in the file.  So, when you save and reload 
the file in your browser, the fieldname has been automatically converted to 
lower case (i.e., "status") and when you then display the tiddler, it will 
show the default value (i.e., "new"), since the stored tiddler fieldname, 
"status", no longer matches the specified tiddler fieldname, "Status".

The solution is to always use only lower case field names.

-e

-- 
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/0b9dbb21-8d6a-4695-9479-22bebe7a14c9n%40googlegroups.com.


Re: [tw5] Re: Idea: How to Find a Meeting Time That Works for Everyone [in Tiddlywiki]

2021-05-18 Thread Eric Shulman
On Monday, May 17, 2021 at 9:56:53 PM UTC-7 Mohammad wrote:

> I thought it would be very convenient if I could have a facility to save 
> online! I mean a  user had to give a name
> and email, select dates and press a submit button! This way we could use 
> it with non-TW people!
>

One more interesting twist: TiddlyTools' Calendar and Events knows about 
"iCal" data (.ics files), which are a standard format for importing and 
exporting calendar data from many scheduling systems.

For example, if people already have their schedules entered into 
GoogleCalendar, they can export those events to a single .ics file and send 
that file rather than sending a manually constructed EventList tiddler.  It 
is then trivial to import those .ics files into a single TiddlyWiki via 
drag-and-drop.  The Calendar can then extract all scheduled dates directly 
from the imported iCal data in order to proceed with finding a common 
available date as previously outlined.

Note that the TiddlyTools Calendar can also directly convert .ics data into 
EventList data by using the Calendar's Setting popup interface (the gear 
icon).  Just click the menu icon (three lines, a.k.a the "hamburger") next 
to any listed .ics file and select the middle button (TiddlyWiki's "clone 
tiddler" icon) from the three available functions ("edit", "copy", and 
"delete").  This will automatically create an EventList text tiddler with 
all the dates contained in the .ics file.

enjoy,
-e

-- 
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/455f654c-6aad-4f9d-a9a2-74d4618a803en%40googlegroups.com.


[tw5] Re: Idea: How to Find a Meeting Time That Works for Everyone [in Tiddlywiki]

2021-05-17 Thread Eric Shulman
On Sunday, May 16, 2021 at 1:24:11 AM UTC-7 Mohammad wrote:

> Can Tiddlywiki be used for *How to Find a Meeting Time That Works for 
> Everyone*?
> If you have developed such a tool in Tiddlywiki or have heard about it 
> please let me know.
>

Fundamentally, this is a problem of finding the intersection of multiple 
sets.

For a small enough set of people (say 5 or less), it is relatively easy to 
figure out which days and times are "open" for everyone. However, let's 
assume the problem is more complex, so that it isn't *obvious* on the face 
of things as to which days are available for *everyone*.  For instance, 
suppose there are 15 or 20 very busy people, each of whom have only a few 
open timeslots in any given month.  This is when a computed algorithm for 
finding the subset of open timeslots starts to really make more sense than 
just using the "fuzzy" pattern recognition skills of a human brain to find 
those open timeslots.

Although I don't have a direct, immediate, and general-purpose solution in 
hand, let's start by simplifying the problem to finding open *days* rather 
than timeslots within a day.  For this use-case, my Calendar and Events 
plugins might be helpful (see http://tiddlytools.com/timer.html).

We could start by using the "EventList" feature 
(http://tiddlytools.com/timer.html#TiddlyTools%2FTime%2FEvents) 
functionality, in which each would create and submit single a tiddler, 
tagged with "events", containing the dates for which they already have 
events scheduled.  Each tiddler is composed of multiple lines of text using 
the format "MMDD;Description text" (where the MM and DD date values are 
zero-padded as needed).

When all these tiddlers are then combined into a single TiddlyWiki, you 
would just display a monthly or yearly TiddlyTools Calendar.  All dates 
that are *not* available will appear filled with a color (default is 
LightGreen for Events).  You can then visually spot the days that lack any 
color (defaulting to White), and create a new EventList tiddler listing 
only those days, using a non-default event color (e.g., red) to mark those 
*available*).

Next, send that EventList tiddler back to each of the intended meeting 
participants, who would visualize this list by adding it to their own 
TiddlyWiki, using a TiddlyTools Calendar to view it.  They could then 
select *any* red dates they like, with the confidence that *all* the 
intended participants are available on that date.  All that remains is for 
them to send those selected dates back to you, where you could tally up 
which dates have the most "votes", and then announce that date for them to 
add to their existing EventList schedule.  Q.E.D

-e

>

-- 
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/f4864688-4e72-4398-943f-e10ce5f94dd1n%40googlegroups.com.


[tw5] Re: Formatting link alias

2021-05-15 Thread Eric Shulman
On Saturday, May 15, 2021 at 8:02:20 PM UTC-7 davou...@gmail.com wrote:

> [[Alias^^1^^|Topic]] will format the 1 to superscript... Is there a way to 
> format a link alias in TW5?
>

Use the <$link> widget, like this:
<$link to="Topic">Alias^^1^^ 

enjoy,
-e

-- 
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/f311988b-1426-44a1-8a55-eedd27fbc18an%40googlegroups.com.


[tw5] Re: Eric's Calendar : how to choose which of conflicting colors for a day to display?

2021-05-15 Thread Eric Shulman
On Saturday, May 15, 2021 at 12:31:44 PM UTC-7 jacque...@gmail.com wrote:

> I'm adopting Eric's TiddlyTools/Time/Calendar. Thanks to him.
> I have a problem when conflicting colors happen for a same day. How to 
> force priority on the color I'd want ?
>
> *An instance :*
>
>- I have a timeline for team members absences, coded "OldLace". Fred 
>is not available Monday and Tuesday next.
>- I decide to settle a meeting, even without Fred that monday. Team 
>meeting are "LightGreen" coded events.
>- When I publish the calendar, I want Monday color to be LightGreen 
>for everybody, but it remains OldLace.
>
> When there are multiple events for a given date, they are *sorted by the 
title of the EventList or Timeline* that defines them and the *date color 
is determined by the first event* in the resulting list.

Here's the code from the showDay() macro that does the work:
<$wikify name="colors"   text="<$list filter=<>>{{{ 
[split[;]nth[1]get[eventcolor]] }}} ">
<$setname="eventsbg"  
 
filter="[enlistfirst[]addprefix[background:]addsuffix[;]else]">

If you have a Timeline named "Absences" (using the OldLace color) and an 
EventList named "Meetings" (using the LightGreen color), then the OldLace 
color will be applied, since "Absences" comes before "Meetings", 
alphabetically.

The only way to influence the color that is used is to rename the Timeline 
or the EventList so that the event color that you want to have priority 
occurs first in the sorted list of events.  For example, you could rename 
"Meetings" to "1Meetings" so it comes before "Absences", or rename 
"Absences" to "ZAbsences" so it comes after "Meetings".

However, renaming a Timeline can be quite a nuisance, because the name of 
the Timeline is also used to tag each individual tiddler that belongs to 
that Timeline.  Thus, you would have to change not only the name of the 
"Absences" Timeline tiddler itself, but also update the corresponding 
"Absences" tag on every individual tiddler belonging to that Timeline.

Fortunately, renaming an EventList is much easier than renaming a Timeline, 
since there is only one tiddler involved with no extra tagging issues.  
Note that even if you rename the "Meetings" EventList tiddler to 
"1Meetings", you can also give that tiddler a caption of "Meetings", so 
that the leading "1" won't appear in the Calendar interface.

When I wrote this part of the Calendar, I had considered adding extra code 
to address this issue by allowing explicit specification of the color 
order, but all the implementations I could think of would have added 
considerable complexity and processing overhead to the Calendar rendering 
logic.

I hope this explanation isn't too confusing.  Let me know how it goes...

-e

>

-- 
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/6de7be3e-24c1-4ccf-8889-2cf063c6f099n%40googlegroups.com.


Re: [tw5] Re: Time Tracking in TiddlyWiki?

2021-05-15 Thread Eric Shulman
On Friday, May 14, 2021 at 9:53:23 AM UTC-7 mohamed...@hotmail.com wrote:

> one more question , if i may, how would this work in a list situation , so 
> if i am listing a group of tiddlers , i can assign different alarms to 
> them, but when the action triggers for one alarm it affects all tiddlers , 
> is this because how it is intended to be used , or am i using the code wrong
>

If I understand your PNG code snapshot, it appears that you want a 
triggered alarm to set the "status2" field to "boom" in each tiddler that 
has a status="In House".

* For this to happen, you first need to put the desired <$action-setfield 
status2="boom"/> widget *into a separate tiddler* (e.g., "AlarmActions").
* Next, in your $list that shows tiddlers with a "status" field containing 
"In House", transclude {{||TiddlyTools/Time/Alarms}} (as you have already 
done).  This will display a separate Alarm input form for each matching 
tiddler.
* Then, for each status tiddler, use the associated Alarm input form to 
specify a time/date and *enter the title of the alarm action tiddler as the 
message text*.
* Be sure to press the [+] button to use your inputs to actually add the 
alarm definition to the corresponding status tiddler.  The defined alarm 
will be shown below the input form.
* When an alarm is triggered, the AlarmActions tiddler will be invoked, 
performing the <$action-setfield> widget(s) that you specified.  Note that 
the <> will be set to the tiddler in which the alarm is 
defined (i.e., the corresponding "In House" tiddler), so the "status2" 
field containing "boom" will be added to *that* "In House" tiddler.

IMPORTANT: I've just updated the TiddlyTools/Time/Alarms code so that the 
<> value is correctly set for each tiddler containing alarm 
definitions.  Previously, $action widgets invoked using the default tiddler 
(i.e., the currentTiddler) would be applied directly in the AlarmActions 
tiddler, rather than the tiddler containing the alarm definition.

Be sure to get the latest update here: http://tiddlytools.com/timer.html

Let me now how it goes...

enjoy,
-e

-- 
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/1714421b-1b03-4a78-8b7b-01c0e6ae8d8en%40googlegroups.com.


Re: [tw5] Re: Time Tracking in TiddlyWiki?

2021-05-13 Thread Eric Shulman
On Thursday, May 13, 2021 at 8:34:41 PM UTC-7 mohamed...@hotmail.com wrote:

> how can i add a value in a field automatically after an alarm is 
> triggered, so asside from the popup message ,i also want a field to say 
> "done" for example?
>

I just added a new feature to the Alarms, so that you can invoke custom 
actions instead of displaying a message box.

*To define custom actions to be performed when an alarm is triggered:*

   - Create a tiddler containing one or more desired <$action-... 
   /> widgets and enter the title of this tiddler as the message text for the 
   alarm.
   - When the alarm is triggered, the <$action-... /> widgets contained in 
   the specified tiddler will be invoked.
   - To display a message in addition to performing the specified actions, 
   you can define a separate alarm with the desired message text.

Get the updated code 
here: http://tiddlytools.com/timer.html#TiddlyTools%2FTime%2FAlarms

enjoy,
-e

-- 
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/2b18692c-b1ea-48c4-9f20-368125927398n%40googlegroups.com.


[tw5] Re: user fields: accessing and extracting data

2021-05-13 Thread Eric Shulman
On Thursday, May 13, 2021 at 7:56:59 PM UTC-7 ai.gene...@gmail.com wrote:

> I'm seeing some other enhancements I can add (for example turn the field 
> name into a tiddler so the list generated would be something like: [[field 
> name]] = field value ).
>

You can use the $link widget, like this:
<$link to=<>/> = <$view field=<> />

-e

-- 
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/f57a0102-b390-4c69-81a5-d1315edb0d30n%40googlegroups.com.


[tw5] Re: user fields: accessing and extracting data

2021-05-13 Thread Eric Shulman
On Thursday, May 13, 2021 at 7:24:09 PM UTC-7 ai.gene...@gmail.com wrote:

> I am trying to understand how to use and manipulate the user fields 
> section.
> In a tiddler edit mode, at the bottom below "content type", there is a 
> "add a new field" section.
> If I add a new field, call it "catalase", and I assign a field value of 
> "xyz", how do I display the value of the field in the body of the tiddler?
>

You can use the $view widget, like this: <$view field="catalase" />  
Alternatively, you can use *transclusion* syntax, like this: {{!!catalase}}.  
The difference is that the $view widget will display the field value as 
plain text, while the transclusion syntax will parse the field value as 
wikitext, so it can contain other formatting syntax within the value of the 
field,.
 

> If I create more than one user field, can I display a list of all 
> field:value pairs in the body of the tiddler ? I am just having difficulty 
> understanding how to manipulate this.
>

To automatically generate a list of all fields in a tiddler, you can use 
the $list widget with the fields[] filter operator, like this:

<$list filter="[fields[]] -[[title]] -[[text]] -[[tags]] 
-[[created]] -[[modified]]" variable="fieldname">
   <> = <$view field=<> />


Notes:
* The fields[] operator returns ALL fields of the current tiddler, 
including the standard fields that exist in every tiddler (title, text, 
tags, created, modified).  The example filter above removes those specific 
field names so that only your "user" fields are output.
* The example uses the variable="somename" parameter to hold the matching 
field name so that the <> value remains unchanged inside 
the $list widget.  This is needed so that the $view widget will reference 
the current tiddler in which the $list widget occurs.

enjoy,
-e

-- 
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/384d296c-fe9e-4c4f-bbf4-160793b9ff26n%40googlegroups.com.


[tw5] Re: String manipulations on textarea input

2021-05-12 Thread Eric Shulman
On Wednesday, May 12, 2021 at 3:41:23 AM UTC-7 lamn...@gmail.com wrote:

> I've made some progress with this, here's where I'm currently stuck.
>
> I'm pasting the text (##header and body) in an *<$edit-text>* widget. 
> This is linked to a different, dedicated Tiddler called *NewEntryData*. 
> Then I'm bringing back only the month bit from the header by using the 
> following. The button text appears as it should (*Set to: "05"* for 
> example), so this tells me that the *testmonth *variable is properly 
> filled.
>

The testmonth variable contains $list widget source code.  When you display 
this variable in the button label by using <> you are, in 
effect, using the variable as a macro, which causes the value of the 
variable to be inserted into the output AND also evaluated, which processes 
the $list widget filter, producing the "05" that you see displayed.  
However, when you use the variable as a parameter in the $action-setfield 
widget, the value is NOT evaluated and is simply passed along to the 
$action-setfield, thus storing the unprocessed $list widget filter syntax 
into the field.

Any idea how should I reference the variable in the widget's parameters for 
> it to get the actual content instead of some literal text?
>

Instead of using $vars to set the value of "testmonth", using $wikify, like 
this:

<$wikify name=testmonth text='<$list 
filter="[{NewEntryData!!text}removeprefix[##]trim[]splitregexp[\n]trim[]first[]splitregexp[]rest[4]first[2]join[]]"/>'>
<$button>
<$action-setfield input-month=<> />
Set to: "<>"



This will cause the $list widget filter to be evaluated regardless of 
whether <> is used as an $action-setfield parameter or directly 
rendered and displayed as button text.

Note that Saq's solution, using "filtered transclusion" syntax (tripled 
curly braces) will also cause the filter to be evaluated and assigned as 
the value of <>, producing the desired result as well.

enjoy,
-e

-- 
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/a528e233-c5ae-4d38-8d75-306772530aa9n%40googlegroups.com.


[tw5] Re: Improve Search in Tiddlywiki

2021-05-12 Thread Eric Shulman
On Tuesday, May 11, 2021 at 10:14:13 PM UTC-7 barro...@gmail.com wrote:

> As for an improved main search bar, couldn't one modify a copy of the 
> original search bar (I've done it for caption search)-- or in this case 
> with a more refined search filter-- and use it instead of the original 
> search bar by simple swapping of the sidebar segment tag?
>

Yes.  You can add $:/tags/SideBarSegment to the PowerSearch tiddler to add 
it to the sidebar.

To make default PowerSearch layout better fit the sidebar, I have updated 
the options panel (the "gear" icon) and display of the generated filter 
syntax:

1) added "input width" setting - was previously hard-coded to "25em"... now 
defaults to "100%"
2) changed default "maxheight" from "auto" to "20em"
3) changed default "columns" from "3" to "1"
4) generated filter syntax uses a smaller font, aligned left, with 
"word-break: break-all"

enjoy,
-e

-- 
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/c0feb949-6d08-43e2-9ea9-da4817beb904n%40googlegroups.com.


[tw5] Re: Improve Search in Tiddlywiki

2021-05-12 Thread Eric Shulman
On Tuesday, May 11, 2021 at 10:14:13 PM UTC-7 barro...@gmail.com wrote:

> @Eric,
> While studying your search tools, I noticed a possible bug with your tag 
> cloud and wanted to leave a note before I forget and in case no one else 
> has caught it.  The order by count (but not title) breaks tags with 
> multiple words into separate entries.
>

Excellent catch!

FIXED.  tagcloud_sort() now encloses tag text within doubled 
squarebrackets, like this:
\define tagcloud_sort()
<$list filter="[enlist!nsort[]]">
   <$list filter="[split[;]last[]]">*<$text text="[["/>*
<>*<$text text="]]"/>*

\end

enjoy,
-e

-- 
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/a1cfcece-78b9-4734-aa40-077bedf27f39n%40googlegroups.com.


[tw5] Re: Improve Search in Tiddlywiki

2021-05-11 Thread Eric Shulman
On Tuesday, May 11, 2021 at 12:41:21 PM UTC-7 mwik...@gmail.com wrote:

> I end up using Advanced Search and using filters (especially 
> [regexp:text[]]) a lot but I always forget the filter syntax for certain 
> things
>

You might like my "PowerSearch", which generates complex search filter 
syntax using a set of drop-down lists.
Just copy these two tiddlers to your TW and it automatically adds a 
"PowerSearch" tab to the $:/AdvancedSearch

http://tiddlytools.com/filtergenerators.html#TiddlyTools%2FFilterGenerators%2FPowerSearch
http://tiddlytools.com/filtergenerators.html#TiddlyTools%2FMacros%2Fedit-list

enjoy,
-e

-- 
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/b121b0e8-3279-4ba2-8ac7-16a425fe3b8fn%40googlegroups.com.


[tw5] Re: Using formulas plugin result in <$reveal widget

2021-05-11 Thread Eric Shulman
On Tuesday, May 11, 2021 at 8:58:04 AM UTC-7 tru...@gmail.com wrote:

> I had a trial run of using TW's built-in math operators, hoping they could 
> allow the result to be evaluated in a variable, but it didn't work. It's 
> the same issue - even when it's a negative value, sign[] interprets it as a 
> positive. Probably because it's coercing the wikitext string to a number, 
> instead of using the number from the result?


Try this:
<$wikify name=number text={{budgetDelta}}>
<$set name=csscolor 
filter="[sign[]match[-1]then[color:red;font-weight:bold]else[color:black;]]">
>><>



Notes:
1) Use $wikify instead of $set.  This allows the contents of 
{{budgetDelta}} to be parsed by the formula plugin rather than just 
retrieving the formula text
2) Set "csscolor" rather than "cssclassname".  This uses literal CSS styles 
rather than references to classname declarations
3) use "style=<> to apply the computed styles

enjoy,
-e

-- 
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/4d80cb49-5f2e-41db-ae2d-8f22d377cd3dn%40googlegroups.com.


[tw5] Re: Using formulas plugin result in <$reveal widget

2021-05-11 Thread Eric Shulman
On Monday, May 10, 2021 at 11:31:07 PM UTC-7 tru...@gmail.com wrote:

> Ok, this might get me somewhere. I did some testing like so, but the 
> classname is always black:
> <$set name=number value=-5>
> <$set name=cssclassname 
> filter="[<>sign[]match[-1]then[red-bold]else[black]]">
> >><>
> 
> 
>

Use *single angle brackets for variable references in filters.*

Thus:
 <$set name=cssclassname filter="[**
sign[]match[-1]then[red-bold]else[black]]">

-e

-- 
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/e818095f-9946-4952-a87e-1a1dc5b80b1fn%40googlegroups.com.


[tw5] Re: What is #TiddlyWiki?

2021-05-07 Thread Eric Shulman
On Friday, May 7, 2021 at 3:10:49 PM UTC-7 TW Tones wrote:

> I keep saying the "TiddlyWiki platform" you could run a band., business of 
> side hustle on it, become a personal productivity wizard or build an app on 
> it. You could just use it for a shopping list or a research program.


As per Saturday Night Live on 1/10/1976:
*"TiddlyWiki is a Floor Wax No! It's a Desert Topping!"*

https://www.nbc.com/saturday-night-live/video/shimmer-floor-wax/n8625

-e

-- 
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/187c25fb-6b41-4274-88b0-8e4d53b3e5f8n%40googlegroups.com.


[tw5] Re: What is #TiddlyWiki?

2021-05-07 Thread Eric Shulman
On Friday, May 7, 2021 at 5:05:10 AM UTC-7 TiddlyTweeter wrote:

> #TiddlyWiki  is SO feature 
> rich it is almost impossible to describe it. 
>
>  "Wiki" in particular kinda obscures it is really a VERY sophisticated 
> JavaScript application to dynamically, in real time, change HTML, CSS and 
> content of the web page it IS.
>
> *How would you describe it?*
>

Technically, TiddlyWiki is a 
https://en.wikipedia.org/wiki/Single-page_application.

However, describing TiddlyWiki is really a problem of 
*https://en.wikipedia.org/wiki/Use%E2%80%93mention_distinction* 
, an example 
of which is *https://en.wikipedia.org/wiki/Haddocks%27_Eyes* 
 in Lewis Carroll's 
"Through The Looking Glass", in which Alice and The White Knight have a 
conversation about the *complicated terminology distinguishing between the 
song, what the song is called, the name of the song, and what the name of 
the song is called*.

In the past, I've described it as a *"**Personal **Portable **Programmable 
**Platform 
for People" *(I like alliteration).  I've also described it by saying *"Own 
it like a document, use it like a website"*,  and borrowing the Sirius 
Cybernetics marketing division's description of a robot from Douglas Adams' 
"Hitchhiker's Guide to the Galaxy" : *"Your Plastic Pal Who's Fun To Be 
With!"*

-e

-- 
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/2d460dec-c80a-4b58-a70b-1bee005d6b73n%40googlegroups.com.


[tw5] Re: chaining jobs

2021-05-06 Thread Eric Shulman
On Thursday, May 6, 2021 at 5:24:11 AM UTC-7 jn.pierr...@gmail.com wrote:

> In my project I need to first create a new project with an identifier (an 
> input data) then to offer a complete input of the project to the user.
> I have crafted this macro invoked when the identifier is ready to be used.
>

Assuming that your macro is triggered by a button press, you can split the 
actions into two separate parts.  The first part is specified in the body 
of the $button widget, and the second part  is specified using the 
actions=... parameter of the $button widget.  When the button is pressed, 
the "body" actions are performed (and *completed*) first, followed by the 
"parameter" actions.   For example:

\define target() TargetTiddler
\define button_actions() <$action-setfield $tiddler=<> 
timestamp2=<> />
<$button actions=<>> click me
   <$action-setfield $tiddler=<> timestamp1=<> 
/>


When the $button is clicked, the "timestamp1" field is written first and 
then the actions=... is triggered, writing the "timestamp2" field.

Also, as a side note, the $set widgets in your code could be written more 
simply using $vars and "transcluded filter" syntax, like this:
<$vars project={{##project}} autoref={{{ [{##project}addsuffix[/project]] 
}}}>

Hopefully, the above code examples should get you pointed in the right 
direction.

enjoy,
-e

-- 
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/e9c7ec3e-ce9c-490c-9460-d476e2ba3ea6n%40googlegroups.com.


[tw5] Re: Monospaced block inside a quoted text?

2021-05-03 Thread Eric Shulman
On Monday, May 3, 2021 at 3:49:31 PM UTC-7 Soren Bjornstad wrote:

> Are any of the mods able to look into why Xabriña's posts keep getting 
> deleted?
>

For some unknown reason, their posts keep getting flagged for mod approval, 
even though I keep approving them all with "allow future posts without 
moderation".
Maybe there's something odd with the attachment that causes Google to 
auto-delete them?

-e

-- 
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/993d3864-0e19-47d6-9c98-5b72e3c8ba9dn%40googlegroups.com.


[tw5] Re: [Query] The Hutterite Mile problem ...

2021-04-29 Thread Eric Shulman
On Thursday, April 29, 2021 at 7:07:44 AM UTC-7 TiddlyTweeter wrote:
<$list filter="8.4 +[multiply[0.195]]"/> =1.6381
Is there any way to "round" the OUTPUT to a more readable: *1.638*  or 
*1.64* ?? 

You can use the fixed[n] operator, where "n" is the number of desired 
decimal places.  Thus:
<$list filter="8.4 +[multiply[0.195]fixed[3]]"/>

see https://tiddlywiki.com/#fixed%20Operator

-e

On Thursday, April 29, 2021 at 7:07:44 AM UTC-7 TiddlyTweeter wrote:

> Ciao Mark S.
>
> MUCH appreciated ... 
>
> *<$list filter="8.4 0.195 +[product[]]"/>*
> *=1.6381*
>
> *<$list filter="8.4 +[multiply[0.195]]"/>*
> *=1.6381*
>
> Is there any way to "round" the OUTPUT to a more readable: *1.638*  or 
> *1.64* ?? 
>
> *(FYI, I just returned from walking the Hutterite Mile, under doctor's 
> orders.)*
>
> Best wishes
> TT
>
> On Thursday, 29 April 2021 at 15:14:39 UTC+2 Mark S. wrote:
>
>> There are actually two ways to  multiply things in TW now. The *multiply* 
>> operator, and the *product* operator. I always have to check the 
>> documentation to remember which is which. In your case, since you have only 
>> two items to multiply, you could use either approach:
>>
>> <$list filter="8.4 0.195 +[product[]]"/>
>>
>> <$list filter="8.4 +[multiply[0.195]]"/>
>>
>

-- 
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/c95067c8-45f6-4ad1-a2ce-95d5657b6d02n%40googlegroups.com.


[tw5] Re: [Query] The Hutterite Mile problem ...

2021-04-29 Thread Eric Shulman
On Thursday, April 29, 2021 at 7:07:44 AM UTC-7 TiddlyTweeter wrote:

> *<$list filter="8.4 +[multiply[0.195]]"/>*
> *=1.6381*
> Is there any way to "round" the OUTPUT to a more readable: *1.638*  or 
> *1.64* ?? 
>


You can use the fixed[n] operator, where "n" is the number of desired 
decimal places.  Thus:

<$list filter="8.4 +[multiply[0.195]]"/>


https://tiddlywiki.com/#fixed%20Operator

-- 
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/6c7f27d2-0c50-4a30-bdf6-e8f438c2b9d6n%40googlegroups.com.


[tw5] Re: Just a thought: embedding TiddlyWiki documentation in our TiddlyWikis?

2021-04-24 Thread Eric Shulman
On Saturday, April 24, 2021 at 3:16:22 AM UTC-7 ludwa6 wrote:

> PS to my last: have fixed part of the problem: by adding the suffix clause 
> back into macro (as below), it now pulls not a system-level error msg, but 
> the error msg from wikipedia.org site itself, which seems to be objecting 
> to the .html extension only... yet i can't find a way to remove that w/o 
> reverting to the lower-level error msg.  Any insight about this problem 
> would be appreciated!


Try this in a tiddler named "ShowWikipediaFrame":
\define AddTopic(topic) https://en.wikipedia.org/wiki/]] 
}}}>$topic$

<$select field="curr-topic">
<>
<>
<>
link


Notes:
* The filter  in AddTopic  needed a closing "]]".  Also, the filter uses 
"encodeuri[]" rather than "split[ ]join[%2520]".  This handles all special 
URI characters, not just space.
* The target tiddler for storing the $select widget value is the *current 
tiddler*, rather than "Wikipedia" (or {{Wikipedia!!title}}) and the 
corresponding  and  params simply fetch 
{{!!curr-topic}} (i.e., from the current tiddler).  This allows you 
transclude the above content as a template (e.g., {{||ShowWikipediaFrame}}) 
and each transcluded instance can be used to show a different selected 
topic.

enjoy,
-e 

-- 
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/5a5a7dd6-4724-4a03-ae29-09931f8d9a74n%40googlegroups.com.


[tw5] Re: feeding newline

2021-04-16 Thread Eric Shulman
On Friday, April 16, 2021 at 8:28:56 AM UTC-7 jn.pierr...@gmail.com wrote:

> But I can't add a newline character because there is no way I can code it 
> that I am aware.
> So if you know how to summon newlines, please enlight me!
>

Assign a literal newline to a variable.  Then you can add the variable to 
your text by using addsuffix within the filter syntax.
<$vars newline="
">
<$set name="output" filter="[*...some filter operators...*
addsuffix]">
...



-e

-- 
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/e5558c60-3b03-4b57-86ec-c88100a4d298n%40googlegroups.com.


[tw5] Re: Prepend string to field value in filter list - How?

2021-04-15 Thread Eric Shulman
On Thursday, April 15, 2021 at 7:07:52 AM UTC-7 blub...@gmail.com wrote:

> I have a bunch of tiddlers named like "file name with spaces.pdf", 
> matching a bunch of files in the Papers/ directory.
> I want to set the _canonical_uri field equal to "Papers/file name with 
> spaces.pdf"
> ...I can't seem to prepend the "Papers/" part of the path onto the 
> filename.
>
 
You can use an "inline filter" (aka, "filtered transclusion"), like this:
<$action-setfield _canonical_uri={{{ [addprefix[Papers/]] 
}}}/>

enjoy,
-e

-- 
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/0e7e7baa-3107-4042-8ab5-2d0e9b9cbb29n%40googlegroups.com.


Re: [tw5] Re: video embedded in modal - how to call with link instead of button?

2021-04-10 Thread Eric Shulman
On Saturday, April 10, 2021 at 5:23:35 AM UTC-7 Sapphireslinger wrote:

> I tried this. The DetailsWidget drops down, but empty again just like the 
> modal was.
>
> <$list filter="[tag[video]sort[title]]">
> <$details summary={{!!caption}}>
> {{||VideoTemplate}}
> 
> 
>

1) Except in filters, references to <> use *doubled* angle 
brackets.
2) You can't use <> within the {{...}} transclusion syntax
3) If you omit the currentTiddler syntax from the transclusion it will use 
the default (which is currentTiddler anyway), like this:

{{||VideoTemplate}}

-e

-- 
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/567b170e-4960-4dd1-89b8-d7c07294a324n%40googlegroups.com.


Re: [tw5] Re: video embedded in modal - how to call with link instead of button?

2021-04-10 Thread Eric Shulman
On Friday, April 9, 2021 at 11:25:43 PM UTC-7 Sapphireslinger wrote:

> ...the modal still comes up empty.
>

Try this:

VideoTemplate:

   


VideoButtons:
<$list filter="[tag[video]sort[title]]">
   <$button class="tc-btn-invisible tc-tiddlylink">
  <$view field="caption"><$view field="title"/>
  <$action-sendmessage $message="tm-modal" $param="VideoTemplate" 
currentTiddler=<>/>
   


TestVideo:
*url*=https://www.youtube.com/embed/v2oi5DYuzEM

Notes:
1) VideoTemplate: removed $list and added width and height params to iframe
2) VideoButtons: filter for [tag[video]]
3) VideoButtons: use $view caption with fallback handling to show title if 
no caption is set
4) VideoButtons: moved message, param and currentTiddler to 
$action-sendmessage in order to include the currentTiddler param ($button 
doesn't recognize extra params)
5) TestVideo: use YouTube *embed* URL

enjoy,
-e

-- 
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/f877abef-07eb-4489-9b40-0bb71f7d2c82n%40googlegroups.com.


[tw5] Re: inluding macros

2021-04-08 Thread Eric Shulman
On Thursday, April 8, 2021 at 4:09:59 AM UTC-7 jn.pierr...@gmail.com wrote:

> On solution to my problem is to tag my sample macro tiddler as a system 
> macro.
> But this has the problems that its macros are now public and their names 
> must now be made unique.
>

To avoid creating global macros, you can use the \import pragma at the 
start of the tiddler,
or use <$importvariables filter="...">... widget 
surrounding the desired content.

see https://tiddlywiki.com/#ImportVariablesWidget

-e

-- 
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/fadadb21-0be3-4b88-955b-79a3887e3e13n%40googlegroups.com.


Re: [tw5] Re: Time Tracking in TiddlyWiki?

2021-04-05 Thread Eric Shulman
On Monday, April 5, 2021 at 7:58:29 AM UTC-7 mohamed.e...@vodafone.com 
wrote:

> is it possible to trigger , start or stop a timer automatically if a 
> certain criteria is met?  so similar to a CRM ticketing tool, creating and 
> saving a new tiddler would automatically start a timer , or maybe creating 
> a new tiddler with a specific Tag would trigger a predefined duration ?
>

Alarms are defined by creating a field named "alarms" in *any* tiddler.  
The contents of the alarms field is a space-separated list, where each 
alarm has several parts delimited by semi-colons, like this: 
type;date;time;msg, where:

*type *is a keyword: "*once*", "*daily*", or a specific day (e.g., "*Sunday*", 
"*Monday*", etc.)
*date *is specified using -0MM-0DD format (e.g. "*2021-04-05*")
*time *is specified using 0hh:0mm:0ss format (e.g., "*09:15:30*")
*msg *is the text to display when the alarm is triggered.

Note that if the type is "*daily*" or a specific day, then the date part of 
the alarm definition is left blank but the semi-colon delimiters are still 
present, so there will be two adjacent semi-colons (see example below).  
Also, if the msg text contains any spaces, then the entire alarm definition 
must be surrounded by doubled square brackets.  For example, the following 
"alarms" field content specifies four individual alarms:

[[Monday;;07:00:00;Time for another work week :(]] [[daily;;12:00:00;Lunch 
break]] [[Friday;;17:00:00;Weekend starts...  YAY!]] 
[[once;2021-01-01;00:00:00;Happy New Year!]]

For your specific use-case (i.e. adding an alarm for a given criteria), you 
would need to have a custom button that would create the desired tiddler 
and add the appropriate alarms field definition, using one or more 
$action-setfield widgets.  It might also be possible to do this whenever a 
tiddler is created via the standard "save tiddler" button from the tiddler 
editor, but this would require adding some JS code to catch the 
"th-saving-tiddler" hook 
(see https://tiddlywiki.com/dev/#Hook%3A%20th-saving-tiddler).

enjoy,
-e

-- 
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/e2306a28-78a1-4299-8149-7408fe3095bcn%40googlegroups.com.


Re: [tw5] Re: Time Tracking in TiddlyWiki?

2021-04-05 Thread Eric Shulman
On Tuesday, March 9, 2021 at 7:03:35 AM UTC-8 Jon wrote:

> Whilst I can enter an alarm that repeats every day at 
> http://tiddlytools.com/timer.html, it doesn't work in my wiki - I can set 
> alarms once but the daily alarm doesn't retain the time for some reason. 
> Any ideas?
>

When you set an alarm, it is stored in the "alarms" field of a tiddler and 
will be triggered when the specified date/time is reached, as long as the 
file remains loaded.  However, if you want that alarm to persist across 
sessions (i.e., when you reload the file after closing it or exiting the 
browser), then you must save the file so the tiddler with the "alarms" 
field is saved.
 

> Also, are alarms which have expired whilst the computer has been turned 
> off supposed to trigger when switched back on as I can't reproduce that?
>

No.  Alarms are only triggered while the file is open in the browser.  If 
the date/time for a "once" alarm has already passed (i.e., "expired"), the 
alarm will never trigger.  If the time for an "everyday" or specific day 
alarm has already passed, it will be triggered the next day, or on the 
specified day, but only if the file is currently open in the browser.  Note 
that "once" alarms are not automatically removed, even if the date/time has 
already passed.  This allows you to easily change the existing alarm to 
some future date or time, so that it will no longer be "expired", and will 
then trigger when that date/time is reached (assuming the file is opened in 
the browser, of course).

-e

-- 
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/d325dcb6-06d6-4be4-aa94-ac2e90db98e9n%40googlegroups.com.


Re: [tw5] Re: Display tags in Tiddlers

2021-04-04 Thread Eric Shulman
On Sunday, April 4, 2021 at 9:46:38 AM UTC-7 isd196...@gmail.com wrote:

> Hey PMario, thanks for that, but I'm confused on how to use this. 
> Currently I can use 
> <$list filter="[tag[People]sort[title]]"/>
> to get a list of the People in the People Tag group, but I can't see how 
> to add the <> to it so that each item is listed as a Tag. Could you 
> clarify please?
>

By ending the $list with /> you are using the "short-form" of the widget 
which, by default, outputs the titles of the matching tiddlers, as links.  
To display other output (e.g., the title as a tag pill) you need to use the 
full <$list>... syntax, where the content is the <> macro, 
like this:

<$list filter="[tag[People]sort[title]]"> <> 

Note that inside the body of the $list widget, the value of currentTiddler 
is set to the title of each matching tiddler and the <> macro defaults 
to showing the "currentTiddler" as a tag pill.

enjoy,
-e

-- 
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/0882f2c6-49b1-49a2-87c0-e6f953e3599fn%40googlegroups.com.


[tw5] Re: List of tiddlers in field

2021-04-04 Thread Eric Shulman
On Sunday, April 4, 2021 at 9:07:38 AM UTC-7 mehequeda...@gmail.com wrote:

>   <$list filter="[all[current]get[fields]]">
>
<$macrocall $name="tag" tag=<>/>
>   
> 
>
> [image: shot.jpg]
> I know it's due to the filter I'm using but I can't manage to find the 
> right one by myself.
>

In your use-case, "fields" is the name of a single tiddler field that 
contains a space-separated *list* of fieldnames, and the get[fields] filter 
is just returning the entire value of that field as a single text string.  
To get each entry from the "fields" list as a separate item, you can use 
the enlist operator, like this:

<$list filter="[all[current]enlist{!!fields}]">

enjoy,
-e

-- 
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/66f5a59f-8131-456b-bd7d-4eee05d2917cn%40googlegroups.com.


[tw5] Re: Hide stuff added by a custom template in folded mode

2021-04-03 Thread Eric Shulman
On Saturday, April 3, 2021 at 6:36:39 AM UTC-7 jln wrote:

> I have created a custom template that adds, at the top of the tiddler, a 
> link to my Nextcloud platform if the "url-nxc" field is filled. This works 
> very well, but the only small issue I have is that this link is still 
> visible when the tiddler is folded.
> How to resolve this problem?
>

wrap your custom template content within a $reveal that checks the value of 
<>, like this:

<$reveal tag="div" type="nomatch" stateTitle=<> text="hide">
... your content here ...

 
Note: *<>* is defined in *$:/core/ui/ViewTemplate*, so it is 
automatically available to all templates tagged with *$:/tags/ViewTemplate*

enjoy,
-e

-- 
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/2116ace0-9108-4b7d-82e1-11546c25799en%40googlegroups.com.


[tw5] Re: Will the iframe sandbox code and cookies away from my tiddlywiki?

2021-03-30 Thread Eric Shulman
On Monday, March 29, 2021 at 7:13:28 PM UTC-7 Sapphireslinger wrote:

> But what would happen if I accidentally clicked the "accept cookies" 
> pop-up within the iframe? *Would it embed cookies into my Tiddlywiki? *Or 
> would it only accept the cookies into the (Firefox) browser running my 
> Tiddlywiki?
>
Any cookies would be saved in your browser and would be associated with the 
URL displayed in the iframe... NOT the URL or filepath of the TiddlyWiki 
document.

-e

-- 
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/a91059da-b2a0-4812-a816-3e5af46d49b1n%40googlegroups.com.


[tw5] Re: video embedded in modal - how to call with link instead of button?

2021-03-30 Thread Eric Shulman
On Monday, March 29, 2021 at 11:47:06 PM UTC-7 Sapphireslinger wrote:

> *Problem 1: How to get "1. Introduction" to display as a link not a 
> button?*
> *Problem 2: How to call all FooVideos with a list filter where clicking a 
> link (of the caption) opens it in the tm-modal? *
>
 
<$list filter="[tag[FooVideo]sort[title]]">
   <$button class="tc-btn-invisible tc-tiddlylink" message="tm-modal" 
param=<>>
  <$text text={{!!caption}}/>
   


Notes:
1) Removed trailing / from <$list> widget (use matching /$list widget 
instead)
2) Use class=" tc-btn-invisible tc-tiddlylink" to make the button appear as 
clickable link instead of a button
3) Variables used as parameter values need doubled angled brackets (i.e., 
<>)
4) Use $text widget to display caption (avoids unwanted links if there is 
any CamelCase in caption text)

enjoy,
-e

-- 
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/c9cda57b-1ad5-4169-8f65-a4105811a188n%40googlegroups.com.


[tw5] Re: Limit the Length of the Recent SideBar Listing

2021-03-26 Thread Eric Shulman
On Friday, March 26, 2021 at 9:58:40 AM UTC-7 Brian Radspinner wrote:

> Edit the system tiddler:
> *$:/core/macros/timeline*
>
> Change "limit" in this line:
> \define timeline(*limit:"100"*,format:"DDth MMM 
> ",subfilter:"",dateField:"modified")
> ...to the number of tiddlers you want to display
>

Rather than changing the default value for the parameter in the timeline 
macro definition,
you can add the "limit" parameter when invoking the timeline macro in 
*$:/core/ui/SideBar/Recent*.

For example, if you want to set the maximum number of tiddlers to display 
to 50, you can add "limit=50", like this:

<$macrocall $name="timeline" limit=50 
format={{$:/language/RecentChanges/DateFormat}}/>

enjoy,
-e

-- 
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/c25c64de-81eb-4ef7-bed6-eca122e41dben%40googlegroups.com.


[tw5] Re: Deletion of tiddlers based on search

2021-03-21 Thread Eric Shulman
On Sunday, March 21, 2021 at 3:04:04 PM UTC-7 dupui...@gmail.com wrote:

> searching for a way to delete tiddlers based on search/mentions in any 
> tiddler.
>

My "PowerSearch" filter generator might be what you need:

http://tiddlytools.com/filtergenerators.html#TiddlyTools%2FFilterGenerators%2FPowerSearch
http://tiddlytools.com/filtergenerators.html#TiddlyTools%2FMacros%2Fedit-list

To install into your own document:

1) go to http://tiddlytools.com/filtergenerators.html
2) drag-and-drop the "PowerSearch" and "edit-list" tiddlers into your 
TiddlyWiki (both are needed)

That's it.  As soon as they are present in your TiddlyWiki, you can use 
PowerSeach to enter a variety of criteria to locate a set of matching 
tiddlers.  You can then use the PowerSearch "delete" button (trash can) to 
remove all matching tiddlers from your document.

enjoy,
-e


-- 
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/4409e186-fece-4c74-8ce4-421d5e07e230n%40googlegroups.com.


[tw5] Re: Changing menubar font

2021-03-20 Thread Eric Shulman
On Saturday, March 20, 2021 at 9:47:33 AM UTC-7 rika.s...@gmail.com wrote:

> I'm styling the menubar and I've found plugins to change colors (helpful!) 
> but i'm also looking to change the font and font size. Does anyone know of 
> a plugin or a stylesheet to help me with that? Thanks!


Use the ".tc-menubar" class, like this:

.tc-menubar {
   font-family: monospace;
   font-size:18pt;
}

enjoy,
-e

-- 
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/d167f4b7-5047-4ccb-aeeb-4ebc46e54b3an%40googlegroups.com.


[tw5] Re: a filter question: two fields has value then NO else YES

2021-03-20 Thread Eric Shulman
On Saturday, March 20, 2021 at 9:45:23 AM UTC-7 Mohammad wrote:

> <$vars   disabled={{{[get[name]!is[blank]then[no]else[yes]] 
> :intersection[get[colorscheme]!is[blank]then[no]else[yes]] 
> ~[[yes]]}}} >
> This is an *ugly *solution! I am looking for a simpler, more semantic and 
> easy to follow!
>

You can use the "has[...]" filter which, by default, looks for *non-empty* 
field values.
You can also combine both field tests into one filter run.

Thus:
<$vars disabled={{{ [has[name]has[colorscheme]then[no]else[yes]] 
}}}>

 enjoy,
-e

-- 
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/f77b6d4b-cf1c-43a7-ab89-e79a0e139731n%40googlegroups.com.


Re: [tw5] Re: How to show edit-widgets when editing tiddlers with specific tags?

2021-03-18 Thread Eric Shulman
On Thursday, March 18, 2021 at 12:29:07 PM UTC-7 bmad...@gmail.com wrote:

> How can I add that near the top, maybe above the body input?
>

You can set the order of the tiddlers with a given tag (e.g., 
$:/tags/EditTemplate) by using drag-and-drop within the tag list.

1) while viewing any tiddler with the desired tag
2) click on the tag pill to view the list of tiddlers with that tag
3) drag any tiddler title to the desired location in the list

enjoy,
-e

-- 
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/b7393c87-6fb6-4a13-bd78-cbd712b0c95dn%40googlegroups.com.


[tw5] Re: Simple, one-off number comparison

2021-03-18 Thread Eric Shulman
On Thursday, March 18, 2021 at 2:55:41 AM UTC-7 lamn...@gmail.com wrote:

> <$set name="bookCount" filter="[author{!!title}count[]]">
> <$reveal type="eq" default=<> text=0> No books 
> <$reveal type="eq" default=<> text=1> <> book 
> 
> <$reveal type="gt" default=<> text=1> <> books 
> 
> 
> The above works but only for more books than 1 (the final, `gt` clause). 
> If it's 0 or 1 books, nothing is returned.
> What am I missing?
>

Use type="match", not type="eq"

Also, here's an alternative way to get the same output, using "inline 
filters":
<$set name="bookCount" filter="[author{!!title}count[]]">
<$text text={{{ [match[0]then[No]else] }}} />
<$text text={{{ [!match[1]then[books]else[book]]  }}} />


enjoy,
-e

-- 
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/565d5fa9-e8c6-4219-b433-a038eb578887n%40googlegroups.com.


[tw5] Re: Clash between my font and my tiddlywiki

2021-03-15 Thread Eric Shulman
On Monday, March 15, 2021 at 9:31:32 AM UTC-7 florian...@gmail.com wrote:

> I want to write in sitelen pona (hieroglyph system for the Toki Pona 
> language) in my TiddlyWiki but the font that is needed for that uses __ in 
> ligatures to produce some hieroglyph compositions. And of course when I 
> write a __ then TiddlyWiki switches to underscore mode and that messes up 
> everything. How could I possibly avoid this clash ?
>

Add this to the start of each tiddler in which you want to use the "__" 
syntax:

\rules except underscore

Alternatively, to prevent the parsing of "__" syntax throughout the 
document,  you can go to the $:/ControlPanel, Advanced, Parsing tab and 
clear the checkbox next to "underscore".  Save-and-reload for the setting 
to take effect.

enjoy,
-e

-- 
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/c3785d28-47d7-4b39-a0d6-ddf5603e3efen%40googlegroups.com.


[tw5] Re: Comments Plugin

2021-03-14 Thread Eric Shulman
On Sunday, March 14, 2021 at 8:46:27 AM UTC-7 john.hu...@googlemail.com 
wrote:

> This is my first Tiddlywiki and having trouble adding a commenst box to 
> the bottom of individual Tiddlers.
> I have dragged across the following plugin on to my TiddlyWiki and clicked 
> on the input button
> http://www.TiddlyTools.com/#CommentPlugin 
> 
>

The plugins found at www.TiddlyTools.com are for *TiddlyWiki Classic (v 
2.x.x)* and cannot be used with the current version of TiddlyWiki (v 5.x.x)

Note that there ARE some TW5-compatible addons on my site, but they are 
contained in separate URLs:
Filter Generators  - A 
collection of filter-related add-ons
Timer  - A collection of 
time/date/calendar add-ons
AutoScroll  - Autoscrolling for 
tiddler content
Inside TiddlyWiki  - A heavily-customized 
"book" framework and "Introduction to TiddlyWiki" content (incomplete)

Note that Inside TiddlyWiki has a variety of individual add-ons:
   http://tiddlytools.com/InsideTW/#PartsList%2FSystem
However, only some of these are readily separable from the overall book 
framework.
If you want to use these addons in your own TiddlyWiki documents, please 
ask first, and I will provide guidance as to usage and customization.
Also, please see http://tiddlytools.com/InsideTW/#Legal%2FTermsOfUse for 
limits on re-use and/or re-distribution of Inside TiddlyWiki and 
TiddlyTools components.

enjoy,
-e

-- 
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/96a88e1d-24ce-4aa5-bc61-cf67d8ec9ff1n%40googlegroups.com.


[tw5] Re: Using the tiddler title and a prefix as icon and tag filter

2021-03-07 Thread Eric Shulman
On Sunday, March 7, 2021 at 9:22:01 AM UTC-8 staltari...@gmail.com wrote:

> <$set name="myVariable" value={{{ [{!!title}addprefix[Gifts.]] }}}>
> <$list filter="[tagtag[Gifts.Core]]">
> <$link to=<>><$view field=title/>,
> 
>

The technique you used is needed because you need to construct the tag 
value before you use it as a parameter to the tag[...] filter.

However, your code can be written more compactly, like this:
<$vars myVariable={{{ [{!!title}addprefix[Gifts.]] }}}>
<$list filter="[tagtag[Gifts.Core]]"><$link />,


* use $vars instead of $set
* use $link with the default values for to="..." and the display of the 
title text

enjoy,
-e

-- 
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/4c37cc3a-a49e-4b21-b8c8-d1ef00d27eb0n%40googlegroups.com.


[tw5] Re: GitHub Saver 404 error

2021-03-05 Thread Eric Shulman
On Friday, March 5, 2021 at 4:23:27 PM UTC-8 rika.s...@gmail.com wrote:

> Hmm, I'm also struggling with a 404 error. I thought the issue is in path 
> name, so I've tried a few options. The first was I added "/" and the second 
> is I created a wiki folder in my repo with a blank index.html file.  
>  Anyone who is following this thread figured it out? Next step for me would 
> be to reach out to Jeremy because this has been a problem for me for 
> several months. I've been manually saving, but of course that's less than 
> ideal. 


I also had a 404 problem with the GitHub Saver.   Turns out it was because 
I had not explicitly set all the default values.  Specifically, the "target 
branch for saving" should be "main" (for newer repos) or "master" (for 
older repos).  Even if the input field already shows that value by default, 
you should clear the value and type it in yourself.  The same goes for the 
"filename of target" input (usually "index.html").

hope this helps,
-e

-- 
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/67860503-cf70-4d9a-80da-dc78f8a982f6n%40googlegroups.com.


[tw5] Re: Field Search

2021-03-05 Thread Eric Shulman
On Friday, March 5, 2021 at 11:16:44 AM UTC-8 ludwa6 wrote:

> Wow, @PMario : that would make this an amazing tool!  Could it also be 
> possible to then export the result-set of tiddlers?


Here's a different "filtered search" tool that generates the necessary 
filter from a set of drop-down selections.  This includes ability to 
match/exclude by title prefix/suffix or tags, specify fields and search 
flags, and sort results by a specific field.
The search results displays the underlying constructed filter syntax (with 
a copy-to-clipboard button), as well as an "export" button (e.g., output 
all matching tiddlers to JSON), as well as a "delete" button to remove all 
matching tiddlers.

http://tiddlytools.com/filtergenerators.html#TiddlyTools%2FFilterGenerators%2FPowerSearch
http://tiddlytools.com/filtergenerators.html#TiddlyTools%2FMacros%2Fedit-list

Notes:
* PowerSearch is tagged with $:/tags/AdvancedSearch so that it is 
automatically added as a tab in the $:/AdvancedSearch tiddler.
* edit-list is used by PowerSearch to provide a compact interface so you 
can either select pre-determined search values or enter custom values by 
typing.
* These two tiddlers are NOT a plugin, and can be dropped into any 
TiddlyWiki document and used IMMEDIATELY, without saving/reloading the file.

enjoy,
-e

-- 
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/808413e3-4733-4673-a73c-91a330fa709bn%40googlegroups.com.


[tw5] Re: On Github why?

2021-03-04 Thread Eric Shulman
On Thursday, March 4, 2021 at 7:53:37 AM UTC-8 TiddlyTweeter wrote:

> Incoherent post. You explain nothing.
>

There is an image attached to the original post.  If you view that image, 
it shows a javascript error message ("red screen of death") that includes 
the error text:
 
*TypeError: undefined is not an object (evaluating 'options.event.event')*

-e

>

-- 
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/312a8193-f720-4a37-ac81-632290de1138n%40googlegroups.com.


[tw5] Re: ViewTemplate: remove an element?

2021-03-03 Thread Eric Shulman
On Wednesday, March 3, 2021 at 9:27:33 AM UTC-8 Erwan wrote:

> I'm wondering if there is a simple way *not* to display some elements 
> (such as the date and list of tags) when a particular tiddler is rendered?
>
The only way I can think of is to modify the system tiddler, but it's not 
> very convenient.
> Use case: I print my TiddlyWiki CV to a pdf file. I have a single tiddler 
> which contains the full content, but the header looks a bit odd in the pdf.
>

Rather than removing the unwanted tiddler elements, you can *hide* them 
using CSS.  To learn the class names of the elements, you can display the 
tiddler in question and then right-click on the elements in question and 
select "Inspect" (note: the exact menu item text can be somewhat different 
depending upon your browser).

For your stated use-case, the elements are ".tc-subtitle" and 
".tc-tags-wrapper".

Then, assuming the tiddler has a title of "TiddlyWiki CV", you can create a 
tiddler, e.g. "MyCustomStyles", tagged with $:/tags/Stylesheet, containing
[data-tiddler-title="TiddlyWiki CV"] .tc-subtitle,
[data-tiddler-title="TiddlyWiki CV"] .tc-tags-wrapper
   { display:none; }

That's it.

enjoy,
-e

-- 
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/a51b5ffd-d621-4caf-9be5-e39cb7a06db7n%40googlegroups.com.


[tw5] Re: How do I print the current tiddler only?

2021-03-03 Thread Eric Shulman
On Wednesday, March 3, 2021 at 9:22:47 AM UTC-8 Mat wrote:

> ...without closing all other tiddlers and using the Print river page 
> button?


>From the tiddler's "more" menu, choose "open in new window".  Then, from 
that window, right-click to display the system popup menu and select 
"print..."  Depending upon how your system and printer are configured, you 
might then see a "print preview" window.  Follow the normal steps to 
confirm and send the output to your selected printer device.

Note: the above steps are for a typical Windows system.  I assume that 
something similar can be achieved when using an Apple or Unix/Linux system.

-e

-- 
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/d5a4884e-aac1-4373-b40f-b83a765c56b8n%40googlegroups.com.


Re: [tw5] Re: Announcing Tiddlyhost.com

2021-03-02 Thread Eric Shulman
On Tuesday, March 2, 2021 at 7:58:34 AM UTC-8 Eskha wrote:

> Is there any way to use the released 5.1.23 version instead of the 
> prerelease one?
>

1) Locate and edit this shadow tiddler: *$:/config/OfficialPluginLibrary*
2) Change the value in the URL field to: 
*https://tiddlywiki.com/library/v5.1.23/index.html*

enjoy,
-e

-- 
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/2cfcef1d-146d-4918-a461-a2e8865aa228n%40googlegroups.com.


Re: [tw5] Need help getting rid of iframe

2021-02-27 Thread Eric Shulman
On Saturday, February 27, 2021 at 7:25:58 PM UTC-8 rpayn...@gmail.com wrote:

> My client wants to be able to create/edit content using only the editor 
> for text/html. He finds switching the content type to “text/vnd.tiddlywiki” 
> before saving a tiddler  too burdensome. 
>

When creating/editing a tiddler, the only difference between the default 
(text/vnd.tiddlywiki) and HTML (text/html) interface are the editor toolbar 
buttons, nearly all of which are applicable only for native TiddlyWiki 
wikitext parsing anyway.
Since your client only intends to use HTML syntax, I suggest completely 
*disabling 
the editor toolbar *(see $:/ControlPanel tiddler, Settings tab, Editor 
Toolbar section, "show editor toolbar" checkbox).
Then, if you *leave the "type" field blank*, the content rendering will 
default to using the "text/vnd.tiddlywiki" wikitext parser for which, as 
Jeremy has already noted, *most HTML elements are interpreted correctly*
Thus, your client can completely *ignore the content type field value *and 
*won't 
ever need to switch it *before saving a tiddler.

The only potential issue would be if the client inadvertently uses wikitext 
formatting syntax, such as doubled slashes for //italics// or doubled 
single-quotes for ''bold''.
On the other hand, a benefit of using the default wikitext parser is that 
links to other tiddlers can be easily entered using doubled square brackets 
[[like this]].

-e

-- 
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/2932d6a6-490e-4d45-99b9-873e6692d8b3n%40googlegroups.com.


[tw5] Re: Custom markup plugin and multiple tiddlers

2021-02-27 Thread Eric Shulman
On Saturday, February 27, 2021 at 10:40:03 AM UTC-8 Soren Bjornstad wrote:

> I'm trying out the beta of the custom markup plugin 
>  and finding it quite 
> handy. However, I'm seeing a major limitation and want to be sure I'm not 
> just missing something. I can write a pragma like this:
> \customize angle=sc _classes="someclass" _mode=block
> »sc Here is a paragraph with the someclass style.
> This is very convenient! But it appears that I have to write this pragma 
> in *every* tiddler where I want to use this class, since pragmas can't 
> transclude into another tiddler or be included in a template. This makes 
> the plugin more or less useless for my purposes (adding custom styling for 
> a particular knowledge domain that would be needed in many/most tiddlers). 
> Is there a method I'm missing for defining this markup without using a 
> pragma, or for applying a pragma to multiple tiddlers somehow?
>

see 
https://wikilabs.github.io/editions/custom-markup/#Global%20Pragma%20Definitions
 

(note: I have not use the custom markup plugin myself, so I can't help with 
any details...)

-e

-- 
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/14b64b27-6b61-43d9-9578-64affe362801n%40googlegroups.com.


[tw5] Re: Filter question: all tiddlers with that contain the current tiddler's title in their text field

2021-02-26 Thread Eric Shulman
On Friday, February 26, 2021 at 7:06:20 AM UTC-8 dieg...@gmail.com wrote:

> To help my learn, was there something wrong with mine?
>

The regexp[] filter finds *pattern* matches.  If the tiddler's title 
contains any special regular expression syntax (such as ".") then it can 
match text other than the *exact* title.

For example:
title = "Foo.Bar" would also match "FootBar" and "FoolBar"

-e

-- 
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/c326191b-0f7b-4b86-93bd-5925294c7e18n%40googlegroups.com.


[tw5] Re: List tiddlers without tag and not shadow and not starting with $

2021-02-26 Thread Eric Shulman
On Friday, February 26, 2021 at 5:59:58 AM UTC-8 szd...@gmail.com wrote:

> I would like to get a list of all tiddlers without tags so I typed :
> <>
> But it gives me a lot of tiddlers starting with $ (plugin/shadow 
> tiddlers). How could I remove them ?
>

<>

enjoy,
-e


-- 
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/035144d1-22de-4817-8ad3-ad75bf80e076n%40googlegroups.com.


[tw5] Re: Filter question: all tiddlers with that contain the current tiddler's title in their text field

2021-02-25 Thread Eric Shulman
On Thursday, February 25, 2021 at 4:11:14 PM UTC-8 David Gifford wrote:

> a list filter with all tiddlers that contain the current tiddler's title 
> in their text field
>

<$list filter="[search:text:literal]"><$link />

enjoy,
-e

-- 
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/49f620f4-2456-4fe2-8175-7b8f33a82c3en%40googlegroups.com.


[tw5] Re: Hello TW world and calculation question

2021-02-23 Thread Eric Shulman
On Tuesday, February 23, 2021 at 8:21:46 AM UTC-8 brad.d...@gmail.com wrote:

> ...how to do calculations and formulas in TW. At the moment I would like 
> to do the following:
> =INT(({{!!myfield}}-10)/2)
>

Calculations are done using the "filter" syntax.  There are several ways to 
do this.

* direct rendering using "filtered transclusion"
{{{ [{!!myfield}subtract[10]divide[2]trunc[]] }}}

* using the $set widget with "filter" parameter
<$set name="result" filter="[{!!myfield}subtract[10]divide[2]trunc[]]">

* using the $vars widget with filtered transclusion as a parameter
<$vars result={{{ [{!!myfield}subtract[10]divide[2]trunc[]] }}}>

Notes:
* within the filter syntax, field references use *single* curly braces.
* there isn't any filter syntax for using parentheses in calculations, so 
the order of operations is very important
* sometimes this means using several filters to calculate intermediate 
results and then combining them.

For example, to calculate something like this:
INT(({!!myfield} / 2) - ({!!myfield} - 5))

You could write:
<$vars part1={{{ [{!!myfield}divide[2]] }}} part2={{{ 
[{!!myfield}subtract[5]] }}}>
<$vars result={{{ [subtracttrunc[]] }}}

enjoy,
-e

-- 
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/5bcc9b37-c977-4865-b672-0e96dce2af5cn%40googlegroups.com.


[tw5] Re: Button style for sidebar / dark palette???

2021-02-23 Thread Eric Shulman
On Tuesday, February 23, 2021 at 7:13:18 AM UTC-8 David Gifford wrote:

> Correction, it works if I have the toggle tab tiddler open in the story 
> river, but not in the tab in the sidebar.
> On Tuesday, February 23, 2021 at 9:10:17 AM UTC-6 David Gifford wrote:
>
>> I just tried numerous variations on that snippet, and nothing worked. 
>> Maybe there is something missing?
>>
>
I tested the solution on your page 
(https://giffmex.org/experiments/cleantids.html) and it works.

1) copy the following into a tiddler tagged with $:/tags/Stylesheet:
.tc-sidebar-lists button {
color:<>;
fill:  <>;
}
2) open the $:/ControlPanel
3) Choose Appearance > Palette tab
4) Select a dark palette (e.g., Contrast (Dark), GruvBox Dark, Nord, 
SolarizedDark, etc.)
5) Note that the sidebar button text color changes to match the selected 
palette

-e

-- 
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/00e343c8-0c9a-48f3-8aed-bce0547d17f0n%40googlegroups.com.


[tw5] Re: Button style for sidebar / dark palette???

2021-02-23 Thread Eric Shulman
On Tuesday, February 23, 2021 at 5:40:02 AM UTC-8 David Gifford wrote:

> https://giffmex.org/experiments/cleantids.html
> The buttons in the Toggle tab.
>

Using the browser's "inspect" function, the derived CSS being applied to 
those buttons is:
.tc-sidebar-lists button {
color: #33;
fill: #33;
}

Thus, the text color is always #33 (not actually "black", but rather a 
very dark gray that is nearly black).

To change this to use the current palette's foreground color, you can add a 
custom CSS rule (in a tiddler tagged $:/tags/Stylesheet):
.tc-sidebar-lists button {
color:<>;
fill:  <>;
}

enjoy,
-e

-- 
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/c0e89f9d-4e97-4cc8-9cb9-43ab7093e31fn%40googlegroups.com.


[tw5] Re: Help with the helpbutton macro..

2021-02-23 Thread Eric Shulman
On Tuesday, February 23, 2021 at 3:39:31 AM UTC-8 Ste wrote:

> \define HelpButton(label, ButtonText:?)
> ^^(<$button popup="""$:/temp/popup/$(currentTiddler)$/$label$""" 
> class='tc-btn-invisible tc-tiddlylink'>$ButtonText$)<$reveal 
> type='popup' state="""$:/temp/popup/$(currentTiddler)$/$label$"""> class='tc-drop-down' 
> style='width:1500px;max-width:75vw;white-space:pre-wrap;padding:10px;text-align:left;font-size:1.5em;border-radus:0.5em;'><$transclude
>  
> field="""$label$"""/>^^
> \end
>
Now, I have a tabs list:
>
<>
> ...the help button shows when in the tabbed list but works perfectly in 
> the original tiddler.
>

The problem arises because popup's "state" tiddler (
$:/temp/popup/$(currentTiddler)$/$label$) depends on the value of 
$(currentTiddler)$.

In the "original" tiddler, this value is the title of that tiddler.  
However, when shown in a tab, the value is the title of the tiddler 
containing the entire tab set, rather than the title of the tab content 
tiddler itself.

As explained in https://tiddlywiki.com/#tabs%20Macro:
*The currentTiddler variable is not affected by the tabs macro. This can 
put you in trouble if the list of tabs includes tiddlers that depend on the 
value of the currentTiddler,*

One way to account for this is to wrap your macro within a $tiddler widget, 
like this:
<$tiddler tiddler=<><>

What this does:
* when the content is shown in the "original" tiddler, the value of 
<> is undefined, so the $tiddler widget has no effect
* when the content is shown in a tab, the value of <> is 
set to the same as the <>

Note that, to make this usage a bit cleaner, you could re-write your code 
as follows:
\define HelpButton(label, ButtonText:?) <$tiddler 
tiddler=<><>
\define HelpButton_inner(label, ButtonText:?)
^^(<$button popup="""$:/temp/popup/$(currentTiddler)$/$label$""" 
class='tc-btn-invisible tc-tiddlylink'>$ButtonText$)<$reveal 
type='popup' state="""$:/temp/popup/$(currentTiddler)$/$label$"""><$transclude
 
field="""$label$"""/>^^
\end

The first macro adds the $tiddler wrapper and then invokes the actual 
HelpButton code (now renamed HelpButton_inner)

enjoy,
-e

-- 
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/00331954-0dea-490d-9e4a-af90e396495dn%40googlegroups.com.


[tw5] Re: Help New User

2021-02-20 Thread Eric Shulman
On Saturday, February 20, 2021 at 1:36:13 PM UTC-8 Mark S. wrote:

> By itself, the single file version is just a very elaborate web page. It 
> can't save itself or your changes.
>

That is not exactly true.  You CAN save your changes without using any of 
the addon "saver solutions".

With no add-on installed, pressing the sidebar "save" button will use the 
browser's built-in "download" handler to save a *copy* of the currently 
loaded TiddlyWiki file with any tiddler changes you have made.  This 
usually results in a new version of the file being automatically created in 
your Downloads folder.  However, if you set your browser's download handler 
to "always ask for a location", then when you press the "save" button, you 
will be prompted with a system dialog that allows you to select a local 
target destination (folder and filename) for the download.  You can then 
select the existing file to overwrite it with the latest tiddler changes.  
When you reload the page, all your changes will be there.

Of course, if you select your local Dropbox folder location, then Dropbox 
will automatically sync the saved file with your online Dropbox storage, 
thus allowing you to access the latest changes from another PC.
Alternatively, you can save directly to Dropbox by using the "TiddlyWiki 
Cloud" service (formerly known as "TiddlyWiki in the Sky for Dropbox").  
See https://tiddlywiki.com/#TiddlyWiki%20Cloud for more info.

enjoy,
-e

-- 
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/5ee9f198-d8d1-4967-8fde-14014fc06e49n%40googlegroups.com.


[tw5] Re: Nested List, show Level 1 only if Level 2 exists

2021-02-18 Thread Eric Shulman
On Thursday, February 18, 2021 at 3:47:01 AM UTC-8 JM wrote:

> Next step would be understanding what you have archieved with "limit[1]". 
> Ist the literal content of variable relevant?
>
 
The $list widget filter, [tag{!!title}tag[CAD]], only produces output when 
there are matching tiddlers. If there are more than one match, the body of 
the widget is output multiple times.  By adding limit[1] to the filter the 
body will only be shown once.

Note: rather than referencing {!!title}, the filter could also have been 
written as [tagtag[CAD]], which perhaps more clearly shows 
how the currentTiddler's title is being used.

Adding the variable="..." parameter to the $list widget assigns the 
matching tiddler's title to the specified variable name.  For this 
particular use-case, you don't actually need to reference this variable 
inside the $list body; it is only used to prevent the $list widget from 
changing the value of .  Thus, the name of the variable 
isn't important and I have used it simply to describe the purpose of the 
"test" filter.

Hope this explains things...

-e

-- 
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/8503de14-c588-47d0-9113-7f848fe933c7n%40googlegroups.com.


[tw5] Re: Nested List, show Level 1 only if Level 2 exists

2021-02-18 Thread Eric Shulman
On Wednesday, February 17, 2021 at 10:35:15 PM UTC-8 JM wrote:

> Something changed. Using my first solution, the space between project 
> title was 'big', as If there was an empty list behind the project title of 
> projects without tasks tagged CAD. Now there is no more space between those 
> projects and the following project.
>

That's what happens when I post a "solution" without actually trying it 
with some test data!

This should work better:

<$list filter="[tag[project]sort[]]">
   <$list filter="[tag{!!title}tag[CAD]limit[1]]" 
variable="has_tasks_with_CAD_tag">
  <$link>''<$view field="title"/>''
  <$list filter="[tag{!!title}tag[CAD]sort[]]">
 <$link />
  
   
 

Notes:
* moved the "test" $list widget to surround the whole project item to 
suppress display of projects that don't have tasks tagged with CAD
* restored the explicit <$link>... for the project item to allow 
bold formatting of the title

-e

-- 
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/1f9eb480-9faa-48c4-b336-7ddfd85d5ef9n%40googlegroups.com.


[tw5] Re: Nested List, show Level 1 only if Level 2 exists

2021-02-17 Thread Eric Shulman
On Wednesday, February 17, 2021 at 7:40:09 AM UTC-8 JM wrote:

> <$list filter="[tag[project]sort[title]]">
> <$link to={{!!title}}>''<$view field="title"/>''
> <$list filter="[is[current]tagging[]tag[CAD]sort[title]]">
> <$link to={{!!title}}><$view field="title"/>
> 
> 
>
> Is it possible to show only those projects, of which tiddlers with the 
> tags project-title and CAD exist?
>

You can surround the inner $list with another $list that uses "limit[1]" to 
act as a test, like this:

<$list filter="[tag[project]sort[]]">
   <$link />
   <$list filter="[tag{!!title}tag[CAD]limit[1]]" variable="has_CAD_tag">
  <$list filter="[tag{!!title}tag[CAD]sort[]]">
 <$link />
  
   


Notes:
* *variable="has_CAD_tag"* prevents the test from changing the value of the 
currentTiddler.
* simplified the inner filter to use *tag{!!title}* instead of 
*is[current]tagging[]*
* used *<$link />* abbreviated syntax instead of verbose *<$link 
to={{!!title}}><$view field="title"/>*
* used *sort[]* (default parameter is "title")

enjoy,
-e

-- 
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/129aac8f-2659-4812-bb2a-0f847ab9ab0en%40googlegroups.com.


[tw5] Re: Is there a way to create automatic links besides Camel Case?

2021-02-15 Thread Eric Shulman
On Monday, February 15, 2021 at 7:03:47 PM UTC-8 journe...@gmail.com wrote:

> For example, I am writing a story, and whenever I type a character's name, 
> such as John, if there is already a Tiddler with his name, it links to that 
> Tiddler every time. 


See the "Freelinks" plugin in the TiddlyWiki Official Plugin Library.

(go to $:/ControlPanel, Plugins tab... then press the "Get more plugins" 
button and scroll down to find "Freelinks")

enjoy,
-e


-- 
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/2021f8cf-5cb2-4b0d-9e0a-893e48fd5b73n%40googlegroups.com.


[tw5] Re: Nested List from a customized list

2021-02-14 Thread Eric Shulman
On Sunday, February 14, 2021 at 3:01:56 PM UTC-8 Stephen Kimmel wrote:

> several tiddlers that have names in Greek letters. I want to create a list 
> rather like the sidebar type list with the heading being the first letter 
> of the tiddler name followed by a list of tiddler titles that start with 
> that Greek letter.
>

Using this list of greek letters: (48 symbols, upper and lower case for 
each)
*Α α Β β Γ γ Δ δ Ε ε Ζ ζ Η η Θ θ Ι ι Κ κ Λ λ Μ μ Ν ν Ξ ξ Ο ο Π π Ρ ρ Σ σ Τ 
τ Υ υ Φ φ Χ χ Ψ ψ Ω ω*

NOTE: A, B, E, H, K, M, N, O, P, T, Y, and X are *NOT* standard ASCII 
characters, but are actual greek characters, copied and pasted directly 
from the first paragraph of this page:
https://en.wikipedia.org/wiki/Greek_alphabet

<$list filter="[enlist[Α α Β β Γ γ Δ δ Ε ε Ζ ζ Η η Θ θ Ι ι Κ κ Λ λ Μ μ Ν ν 
Ξ ξ Ο ο Π π Ρ ρ Σ σ Τ τ Υ υ Φ φ Χ χ Ψ ψ Ω ω]]" variable="letter">
   <$list filter="[all[]prefixcount[]!match[0]]">
  <>
  <$list filter="[all[]prefix]">
 <$link />
  
   


Notes:
* the first $list sets the "letter" variable to each of the 48 symbols, one 
at a time
* the second $list checks to see if there are any tiddlers that start with 
the current letter
* the letter is displayed on a line by itself
* the third $list finds each tiddler that starts with the current letter
* a link to each matching tiddler is displayed, indented by a space, on a 
line by itself

enjoy,
-e

-- 
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/2e7a978e-d9b8-4b55-afce-ef99765b134dn%40googlegroups.com.


[tw5] Re: Error Loading Websites in Firefox

2021-02-05 Thread Eric Shulman
On Friday, February 5, 2021 at 9:22:26 PM UTC-8 manishm...@gmail.com wrote:

> Firefox is preventing certain websites from being displayed in the 
> Tiddler. 
> Are there other options to get around this?
>

It is not Firefox that is blocking the use of an IFrame... the request is 
being refused by the source URL by returning an "X-Frame-Options" response 
header value of "DENY" or "SAMEORIGIN".  This issue occurs in any browser.  
There is no general workaround.  
See 
https://stackoverflow.com/questions/6663244/cant-show-some-websites-in-iframe-tag

-e

-- 
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/0205686e-b3c9-49f6-b9cf-0eaa9a949b17n%40googlegroups.com.


[tw5] Re: adding whitespace separating results from a $list filter run

2021-02-05 Thread Eric Shulman
On Friday, February 5, 2021 at 11:29:32 PM UTC-8 gavin@gmail.com wrote:

> <$list filter="[all[current]tags[]tag[author name]]"/>
> ...the returned tags run into each other without a whitespace
>

By ending with "/>", you are using the short form of the $list widget.
Instead, you should use the full syntax which will allow you to specify the 
desired output content including whitespace, like this:

<$list filter="[all[current]tags[]tag[author name]]"><$link/>

enjoy,
-e

-- 
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/584a68fe-3b3a-49db-8db1-7cbfe992ac09n%40googlegroups.com.


[tw5] Re: Utilizing Reveal Widget in Templates

2021-02-03 Thread Eric Shulman
On Wednesday, February 3, 2021 at 10:06:05 AM UTC-8 mmiller wrote:

> I am utilizing the reveal widget through a template (see below). This 
> template is being used by many tiddlers.
>
...when I toggle the button for the reveal widget it is universally 
> toggling every tiddler utilizing the template.
> <$reveal type="nomatch" state="$:/state/SampleReveal2" text="show">
> <$button set="$:/state/SampleReveal2" setTo="show" 
> class="NestRevealButton">View Goals
> 
> 
>
> <$reveal type="match" state="$:/state/SampleReveal2" text="show">
> <$button set="$:/state/SampleReveal2" setTo="hide" 
> class="NestRevealButton">Hide Goals
> <$scrollable class='tc-scrollable-browse'>
>  <$list filter='[taglevel[GOAL]sort[title]]'> 
> <$link><$view field='title'/> <$view field='language'/> 
>   
> 
> 
>

You need to use the <> macro to generate a unique state tiddler 
title for each reveal.
*(see https://tiddlywiki.com/#qualify%20Macro)*

Thus, instead of using "$:/state/SampleReveal2", you would use <>, like this:
<$reveal type="nomatch" state=*<>* 
text="show">
<$button set=*<>* setTo="show" 
class="NestRevealButton">View Goals



<$reveal type="match" state=*<>*
 text="show">
<$button set=*<>* setTo="hide" 
class="NestRevealButton">Hide Goals
<$scrollable class='tc-scrollable-browse'>
 <$list filter='[taglevel[GOAL]sort[title]]'> <$link><$view 
field='title'/> <$view field='language'/>  



enjoy,
-e

-- 
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/393c5227-56e1-4c18-823c-bb09b0a7c457n%40googlegroups.com.


[tw5] Re: TiddlyTime - a simple event logger

2021-01-25 Thread Eric Shulman
On Monday, January 25, 2021 at 4:50:11 AM UTC-8 Anjar wrote:

> I was looking for a simple, crossplatform event logger for use in the 
> field, but had some troubles finding a good solution, so I made a quick and 
> simple implementation with tiddlywiki.
>

http://tiddlytools.com/timer.html#TiddlyTools%2FTime%2FTimers:TiddlyTools%2FTime%2FTimers%20TiddlyTools%2FTime%2FInfo

-e


-- 
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/f2ba6423-6057-46dd-9278-4d9be4493547n%40googlegroups.com.


[tw5] Re: Add or sum number from fields tiddler by filter

2021-01-24 Thread Eric Shulman
On Sunday, January 24, 2021 at 11:04:35 AM UTC-8 sil...@gmail.com wrote:

> To not have link in result I've found this but I wonder if there is a 
> simpler solution
>

You can use the "filtered transclusion" syntax directly in the $text 
widget, like this:
Total = ''<$text text={{{[tag[entretien]get[duree]sum[]]}}}/>''

-e

-- 
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/d8c1da29-0979-433a-83d3-093a9a283965n%40googlegroups.com.


[tw5] Re: Add or sum number from fields tiddler by filter

2021-01-24 Thread Eric Shulman
On Sunday, January 24, 2021 at 3:11:33 AM UTC-8 sil...@gmail.com wrote:

> My need: via a tiddler filter with tag, add the numbers of a custom field 
> contained in the tiddlers: in order to be able to count the time spent on a 
> project.
>

This will do the trick:
total = {{{ [tag[projectname]get[fieldname]sum[]] }}}

* change "projectname" and "fieldname" to match your usage

enjoy,
-e

-- 
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/fc65abc2-cf70-4f76-af87-5f97ad9fc779n%40googlegroups.com.


[tw5] Re: Transclude image if Tiddler has tag...

2021-01-19 Thread Eric Shulman
On Tuesday, January 19, 2021 at 4:50:47 AM UTC-8 vinvi...@gmail.com wrote:

> I want to transclude an image in the text field if the tiddler has tag:
> Tag "Cold" show image "Blue.png"
> Tag "Cool" show image "Aqua.png" "
> Tag "Neutral" show image "White.png"
> Tag "Warm" show image "Orange.png"
> Tag "Hot" show image "Red.png"
>

Try this:
Create a tiddler, e.g., ShowColorImage, tagged with $:/tags/ViewTemplate, 
containing:
<$list filter="[tag[Cold]]">{{Blue.png}}
<$list filter="[tag[Cool]]">{{Aqua.png}}
<$list filter="[tag[Neutral]]">{{White.png}}
<$list filter="[tag[Warm]]">{{Orange.png}}
<$list filter="[tag[Hot]]">{{Red.png}}

enjoy,
-e

-- 
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/f9e28364-115c-4edf-90ae-5a9a38522110n%40googlegroups.com.


[tw5] Re: Note to Eric on GG TiddlyWikiDev group end point ...

2021-01-17 Thread Eric Shulman
Group heading text updated to point to GitHub for TWCore dev discussions

On Sunday, January 17, 2021 at 5:28:48 AM UTC-8 TiddlyTweeter wrote:

> Ciao Eric
>
> The header line to this group "See the TiddlyWikiDev 
>  group for 
> technical questions about JavaScript, CSS etc" *no longer applies* as 
> those discussions moved to: 
> https://github.com/Jermolene/TiddlyWiki5/discussions recently.
>
> Some kind of update might be useful?
>
> Best wishes
> TT
>

-- 
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/3deb88a4-4446-438b-b520-85140a7365afn%40googlegroups.com.


[tw5] Re: Problem with "contains" filter when value has spaces

2021-01-09 Thread Eric Shulman
On Saturday, January 9, 2021 at 8:22:37 PM UTC-8 Mooglegirl wrote:

> I have a tiddler with a field called "characters" that contains a 
> comma-separated list of characters relevant to the story written in the 
> tiddler. In this case, the field value is "Nicholas Vaughn, Katherine 
> Vaughn".


TiddlyWiki lists are *space-separated*, and use doubled square brackets 
surrounding values that contain spaces.

Thus, the character field value should be something like this:
   [[Nicholas Vaughn]] [[Katherine Vaughn]]

-e

-- 
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/113686e9-2d59-431b-9735-c7c50096a4e9n%40googlegroups.com.


[tw5] Re: Special Copy of Title to Description Field

2021-01-09 Thread Eric Shulman
On Saturday, January 9, 2021 at 1:09:02 PM UTC-8 History Buff wrote:

> I saw the first operator, but thought it returned the entire title of the 
> first item in the list.


It *does* return the title of the first item in the list.  However, in this 
usage, first[] is preceded by split[] with no parameter value, which chops 
up the initial title text into single character "titles".  Note also that 
first[...] accepts a parameter for how many items to return.  Thus, 
{!!title}split[]first[] returns a one-character "title", while 
{!!title}split[]first[3]join[] returns a 3-character "title".

-e

-- 
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/de0158b5-ca0c-40da-89d6-ea80ac1a6ccbn%40googlegroups.com.


[tw5] Re: Special Copy of Title to Description Field

2021-01-08 Thread Eric Shulman
On Friday, January 8, 2021 at 4:06:27 PM UTC-8 History Buff wrote:

> The copying of the title to the description field with the extra text I 
> think is relatively easy. However, I'm having trouble figuring out how to 
> extract the first character and the first three characters from the title. 
> Any suggestions?
>

Note: the TWCore "toc" macros use the "caption" field (not "description") 
to define the text to display for each toc entry.

<$button> set captions
  <$list filter="...">
  <$action-setfield caption={{{ [[Railroad]] [{!!title}split[]first[]] 
[{!!title}split[]first[3]join[]] [{!!title}] +[join[-]] }}} />
   


Notes:
* The $list filter is whatever you want to use to select your desired "set 
of tiddlers".
* For each matching tiddler, the caption field value is constructed using 5 
filter "runs" within a "filtered transclusion" syntax: {{{ ... }}}
* *[[Railroad]]* is literal text
* *[{!!title}split[]first[]]* extracts the first character from the title
* *[{!!title}split[]first[3]join[]]* extracts the first 3 characters from 
the title
* *[{!!title}]* is the full title text
* *+[join[-]]* combines the previous 4 parts with "-" in between each part

The result is a single text value, e.g., "Railroad-A-Atc-Atchison, Topeka & 
Santa Fe Railway"
which is then stored in the "caption" field of the current tiddler.

enjoy,
-e

-- 
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/e117fb6b-159a-4dca-9f9e-a8f012b9f2f7n%40googlegroups.com.


Re: [tw5] How to change ViewTemplate/body for tiddlers with specific tag?

2021-01-06 Thread Eric Shulman
There is a syntax error in the filter:
   <$list filter="[all[current[tag[test]]">
should be:
   <$list filter="[all[current]tag[test]]">

(i.e., the third open bracket should be a CLOSE bracket)

-e

-- 
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/fb191d85-cace-4a43-a453-1dbfd14efff7n%40googlegroups.com.


[tw5] Re: How to get count widget to only look at tiddlers from month x to month y

2021-01-05 Thread Eric Shulman
On Tuesday, January 5, 2021 at 6:57:44 PM UTC-8 Sapphireslinger wrote:

> May I ask what "gteq" and "1teq" stand for?
>

gteq = "greater than or equal to"
lteq = "less than or equal to"
 

> Does TW's built-in date format have a way to tell it to display as 
> year.month.day.timesecond? Then I could have the correct display AND take 
> advantage of TW's built-in date format.
>

TiddlyWiki internal date format is 0MM0DD0hh0mm0ss0XXX

which forms a 17-digit number where:
*  = 4 digit year
* 0MM = 2 digit month (01 to 12)
* 0DD = 2 digit date (00 to 31)
* 0hh = 2 digit hour (00 to 23)
* 0mm = 2 digit minutes (00 to 59)
* 0ss = 2 digit seconds (00 to 59)
* 0XXX = 3 digit milliseconds (000 to 999)

Note that the time format does not have any punctuation, and is represented 
using UTC
(Universal Time Coordinated), which is essentially the same as Greenwich 
Mean Time (GMT)

Thus:
*January 5, 2021 at 6:57:44 PM*
the date of your posting in my local time zone (PST, Pacific Standard 
Time), is equivalent to
*January 6, 2021 at 2:57:44 AM*
in UTC (i.e., adjusted for 8 hours difference in timezone between PST and 
UTC),
and would be represented in TiddlyWiki's internal date format as:
*20210106025744000*
 

> If I use the TW's built-in date format, would the proper code for that 
> look like this:
>
> <$vars 
> myrange="[get[class-date]compare:suffix:gteq[2021.07.01]compare:suffix:lteq[2021.12.31]]"
>  
> >
> <$count filter="[tag[Class Log - Jane 
> Doe]has[class-date]filter]"/>
> 
>

The filter definition would use:
*<$vars 
myrange="[get[class-date]compare:date:gteq[20210701]compare:date:lteq[20211231]]"
 
>*

(see https://tiddlywiki.com/#compare%20Operator for more details)

enjoy,
-e

-- 
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/a077bf2d-fcc8-439d-be0b-db4e7ad49a5fn%40googlegroups.com.


[tw5] Re: Request: Reply to author should be enabled here in the group

2020-12-31 Thread Eric Shulman
Addendum:

The "reply to author" feature requires that you allow your browser to 
handle "mailto:; links.

Here's the instructions for Chrome:
https://support.google.com/a/users/answer/9308783?hl=en

Here's the instructions for FireFox:
https://support.mozilla.org/en-US/kb/change-program-used-open-email-links

-e

On Thursday, December 31, 2020 at 5:40:07 AM UTC-8 Eric Shulman wrote:

> Mario,
>
> I enabled "Reply to author" for "all group members" several weeks ago.  
> The command is located in the "three dots" dropdown menu (upper right 
> corner of each message header).  If you are not seeing this menu item (or 
> it is still disabled), then that is most likely a bug in the new 
> GoogleGroups.
>
> -e
>
>
>
> On Thursday, December 31, 2020 at 4:38:26 AM UTC-8 PMario wrote:
>
>>
>> @Jeremy or @Eric, 
>>
>> It would be nice, if "reply to author" would be enabled. 
>> Thx, 
>> -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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b9ae160a-96f6-4a2b-8329-2a8e19f63282n%40googlegroups.com.


<    1   2   3   4   5   6   7   8   9   10   >