[tw5] Re: Is there a way to generate a set of dynamical variables?

2019-11-07 Thread Stephan Hradek


Am Donnerstag, 7. November 2019 02:34:22 UTC+1 schrieb TonyM:
>
> Stephan,
>
> I believe attachments are handled as mime types inside the body text.
>

Of course. Looking at the pure ASCII file of a mail it's trivial. The 
content type is multipart mixed. A boundary string is defined and then the 
whole body looks something like this:

Mail text here
--BOUNDARY
HTML text here
--BOUNDARY
attachment 1 here
--BOUNDARY
attachment 2 here
--BOUNDARY--

But you cannot pass that using a mailto-link.

You might also like to check 
https://stackoverflow.com/questions/5233556/using-mailto-to-send-email-with-an-attachment



-- 
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/1e21e389-94f6-43e2-b5da-6b8c6f6c502d%40googlegroups.com.


[tw5] Re: Is there a way to generate a set of dynamical variables?

2019-11-06 Thread Stephan Hradek


Am Dienstag, 5. November 2019 17:16:48 UTC+1 schrieb Mark S.:
>
> You're doing some amazing stuff there, BTW.
>

Thanks.

I may not understand, but perhaps for #1 you should create a template 
> editor for the user. 
>

That's a great idea!

 

> For #2, since you are doing your own parsing, perhaps you could substitute 
> {{!! for << and }} for >> before processing the text.
>

I do not like that idea too much. It will introduce ambiguities because 
{{!!…}} still would have the special meaning while the user would only know 
about <<…>>

-- 
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/70aefe36-4135-4bd1-8846-8c81bb167488%40googlegroups.com.


[tw5] Re: Is there a way to generate a set of dynamical variables?

2019-11-05 Thread Stephan Hradek


Am Mittwoch, 6. November 2019 06:21:04 UTC+1 schrieb TonyM:
>
> My dream is to be able to attach a json file of tiddlers to an email as 
> well, any idea if this may be possible?
>
 
As far as I know it's not possible to add attachments with a mailto-link. 
You could "paste" the JSON content into the mail body. 

-- 
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/e53d932e-0db7-4a3d-bbab-c21054c735b1%40googlegroups.com.


[tw5] Re: Is there a way to generate a set of dynamical variables?

2019-11-04 Thread Stephan Hradek


Am Montag, 4. November 2019 21:21:57 UTC+1 schrieb Mark S.:

>
> What browser? You have to save from Chrome the first time. 
>
Firefox… So thanks for the hint. 

-- 
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/175d5417-22c9-4631-816c-875af937e733%40googlegroups.com.


[tw5] Re: How do I use GitHub Saver?

2019-11-04 Thread Stephan Hradek


Am Mittwoch, 16. Oktober 2019 23:44:44 UTC+2 schrieb leeand00:
>
> Also, does it save the password in plain text?  That would be bad.  Or do 
> I have to type it back in again everytime?
>

https://tiddlywiki.com/#Saving%20to%20a%20Git%20service says

Notes
>
>- The Git service *password is stored persistently in browser local 
>storage*. Be sure to clear the password if using a shared machine. 
>Using a personal access token 
> for authentication 
>offers an extra layer of security: if the access token is accidentally 
>exposed it can be revoked without needing to reset the account password
>
> Additionally:

I don't want to use any of that 2 factor auth stuff, that's overkill.
>

That's stupid - sorry ;) You should at least generate a "Personal access 
token" and use it instead of your valuable password. 

In github click:


   - Your avatar in the upper right corner
   - Settings
   - Developer Settings
   - Personal access token
   - Generate new token
   - Give it a name
   - Choose "Repo"
   - Save it
   - Copy the generated token as your password into TiddlyWiki

Should it ever get lost you can easily revoke it.

-- 
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/cf6c3f6b-8fa8-4a03-bbd3-3bc486da7877%40googlegroups.com.


[tw5] Re: How do I use GitHub Saver?

2019-11-04 Thread Stephan Hradek


Am Freitag, 18. Oktober 2019 08:38:57 UTC+2 schrieb HC Haase:
>
> thanks Mark
>
> I had the same problem.
>
> Do anyone know if it is possible to save to local file AND to github (as 
> backup) instead of choosing between them??
>

Maybe you can create a tiddler with some action widgets to do that. Simply 
by remiving all the stuff for github save, saving and then restoring the 
stuff and saving again. 

-- 
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/3705a0d0-5e66-4503-8e11-89994cd9a732%40googlegroups.com.


[tw5] Re: How do I use GitHub Saver?

2019-11-04 Thread Stephan Hradek


Am Sonntag, 3. November 2019 20:39:25 UTC+1 schrieb leeand00:
>
> Is it possible to add a commit message?
>

$:/language/ControlPanel/Saving/GitService/CommitMessage 

-- 
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/f6272b88-7c15-476b-a08c-8d9e3aac059d%40googlegroups.com.


[tw5] Re: Is there a way to generate a set of dynamical variables?

2019-11-04 Thread Stephan Hradek
@all who answered - Thanks for your time.

What I did now is to provide a working example at 
https://github.com/Skeeve/mailtemplates-made-easy/tree/master/wiki 

If you're interested you can download from there.

The only questions I have are:


   1. How can I make sure, the default values are set. In this case not 
   touching the checkbox will set no value for the placeholder *known_cb* 
   and will thus give wrong results.
   2. Is there a way I could use Tiddlywiki's variable-notation 
   <> instead of the transclude-a-field notation {{!!fieldname}}

The Question at 1. is the more important one. The Question at 2. is just 
that I personally find it more understandable for non-TiddlyWiki-users (and 
that's what the system should be for) to use <> than 
{{!!something}}. It's just that the 2 exclamation marks do not make sense 
to people not knowning about TiddlyWiki.

-- 
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/7de144dd-c414-4b83-a4cf-f2d3ee9b1b55%40googlegroups.com.


[tw5] Is there a way to generate a set of dynamical variables?

2019-10-30 Thread Stephan Hradek
Background of my question: For a colleague who often needs to write 
standard mails I've created a TiddlyWiki where one can create 2 tiddlers. 
One with the standard mailtext using place holders. The placeholders are 
also defined in the template. Example below. The other tiddler is simply 
one piping the mailtemplate-tiddler through a tiddler which will generate 
the form to fill in the placeholders.

Example for the mailtemplate:

[[subject:Request for offer {{!!company}}]]
[[recipients:offerman@my.company]]
[[company:Company Name]]
[[due_date:Due date]]
[[revenue:Annual revenue]]
[[known_cb,not,already:Company known]]

Dear Mr. Offerman

The company {{!!company}} asked for an offer.

Their annual revenue is {{!!revenue}}.

The due date is {{!!due_date]].

{{!!company}} is {{known_cb}} known to us.

Best regards…

The tiddler showing the form is then just something like this:

{{
   Mailtemplate:Request for offer -- Generate Mail
||
   Create Mail
}}

and the resulting form will look something like this:

++-+
| Recipients | offerman@my.company |
++-+
| Subject| Request for offer {{!!company}} |
++-+
| Company| [_] |
++-+
| Due date   | [_] [cal]   |
++-+
| Annual revenue | [_] |
++-+
|Company known   | [_] already |
++-+


This already works quite well, but I do not really like the notation of the 
placeholders {{!!placeholder}}. This is due to the fact that the generated 
form simply stores the values in fields in the mailtemplate.

Since I had difficulties with the recipients and the subject, they are not 
editable and are not in fields. I first wanted to make them editable but 
this did not work as the defaults won't appear unless the tiddler, where 
the fields are located, does not exist. Moreover the defaults are not 
stored unless you explicitly go into the fields. As a result these 2 values 
are stored in variables.

So my next idea was: Wouldn't it be nice, placeholders could be written in 
the form <>?

Unfortunately I am not able to generate a set of variables dynamically. You 
see: I do not know beforehand which placeholders will be used in a 
mailtemplate. So I go through the mailtemplate with the ListWidget, finding 
the placeholders from the top part, generating the input elements. Creating 
variables by this is of course not possible.

But maybe someone here has an idea how to do this?




-- 
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/f472935c-703f-40ff-b8fc-dbfffd3148a6%40googlegroups.com.


Re: [tw5] http://kixam.github.io/TW5-datePicker/ How to set the locale

2019-10-11 Thread Stephan Hradek
Nope…

They do not give me german month names.

-- 
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/270b7ba7-0c93-487b-a749-fb30b5144285%40googlegroups.com.


[tw5] Re: Today TiddlyWiki is 15 years old

2019-09-23 Thread Stephan Hradek
Congratulations to all involved…

-- 
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/7e92ccfb-248f-41f2-81a8-d10019eff3ec%40googlegroups.com.


Re: [tw5] ActionSetFieldWidget more capable than ActionDeleteFieldWidget

2019-09-10 Thread Stephan Hradek
Thanks Mohammad.

This is one of the many illogical annoyances in TiddlyWiki ;)

Am Dienstag, 10. September 2019 14:59:03 UTC+2 schrieb Mohammad:
>
> Use actionsetfield with no value!
> Look at https://tiddlywiki.com/#ActionSetFieldWidget the $value row in 
> content and attributes table
>
> Semantically like you I prefer to use ActionDeleteFieldWidget NOT 
> ActionSetFieldWidget
>
>
> Best wishes
> Mohammad
>
>
> On Tue, Sep 10, 2019 at 5:13 PM Stephan Hradek  > wrote:
>
>> Is there any reason why the ActionSetFieldWidget can set an index, but 
>> ActionDeleteFieldWidget cannot delete an index?
>>
>> How can I delete an Index?
>>
>> -- 
>> 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 tiddl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/b3553734-a797-4a64-b0f1-ee2b845c7442%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/b3553734-a797-4a64-b0f1-ee2b845c7442%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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/2a6a745d-fb12-40c4-931d-1aa79a5fa11b%40googlegroups.com.


[tw5] Re: Using variables and regex in a macro with a list filter.

2019-09-10 Thread Stephan Hradek
Not sure whether I completely understand, but try:

  <$list filter="[tag[person]team[$team$]regexp:role[$role$]sort[role]]" 
template="$:/core/ui/ListItemTemplateContacts"/>


-- 
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/98d5d6e1-b51c-4abb-99ab-c3df520769ed%40googlegroups.com.


[tw5] ActionSetFieldWidget more capable than ActionDeleteFieldWidget

2019-09-10 Thread Stephan Hradek
Is there any reason why the ActionSetFieldWidget can set an index, but 
ActionDeleteFieldWidget cannot delete an index?

How can I delete an Index?

-- 
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/b3553734-a797-4a64-b0f1-ee2b845c7442%40googlegroups.com.


[tw5] Re: an issue pop(s)up

2019-07-10 Thread Stephan Hradek


Am Mittwoch, 10. Juli 2019 10:32:18 UTC+2 schrieb Jeremy Ruston:
>
> You can work around it by using a text reference for the reveal widget 
> instead of separate title and field attributes.
>

Not quite, as the popup does not go away when clicking outside. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d00faced-f7f7-412e-a1ef-a733d59d19c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: toc enhancement help needed

2019-07-10 Thread Stephan Hradek
Hi Laurent.

I do not completely understand your issue and I also haven't looked into 
your macro.

Is the issue the linebreak before the numbers?

In that case I'd suggest you try to get rid of all linebreaks in your macro 
and the call of your macro. My experience with TW is that this whitespace 
is important. Just give it a try. maybe it works.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2a6211de-3d3f-48a7-bbd2-497ae1a4f2da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] an issue pop(s)up

2019-07-10 Thread Stephan Hradek
I'm wondering: what am I doing wrong?

Paste this into a new tiddler:

<$button popup="$:/SamplePopupState!!editmode">Pop me up!

<$reveal type="popup" stateTitle="$:/SamplePopupState" 
stateField="editmode">


! This is the popup
And this is some text




and you'll get

Internal JavaScript Error
> Well, this is embarrassing. It is recommended that you restart TiddlyWiki 
> by refreshing your browser
>
 

> TypeError: undefined is not an object (evaluating 
> 'this.wiki.getTiddler(this.stateTitle).getFieldString')
>
>  
 I simply wanted the popup to have its state stored in a field of an 
existing tiddler.

In the popup I want to enter some data.



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/45e38d8d-707a-49ef-ae11-fed088bfbe59%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclusion into variable or something similar?

2019-07-03 Thread Stephan Hradek
Attachments won‘t work. You could only provide a link to a web location where 
you keep the file for the user see 
https://stackoverflow.com/questions/5233556/using-mailto-to-send-email-with-an-attachment

HTML mails also don‘t work 
https://stackoverflow.com/questions/5620324/mailto-link-with-html-body

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9a7ffa16-1d56-4791-ba89-d7fcad524049%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclusion into variable or something similar?

2019-07-03 Thread Stephan Hradek
Hi Tony

Am Dienstag, 2. Juli 2019 01:16:52 UTC+2 schrieb TonyM:
>
> Stephen,
>
> Welcome back, if you can share your ultimate result that would be great.
>

I will. I already have something working and wil describe it, as soon as I 
have time :/ extensively. But here is what I do just roughly sketched out.

1. Create one or more Mailtemplate Tiddlers. Each tiddler has to have:
   1. The Mail text in the text-field
   2. a subject-field
   3. a recipients-field
   Each field may contain <>s to fill in. So you can, if you 
want, provide recipients or (part of) the subject and text by setting a 
variable.
2. have the mailto-tiddler (see below)
3, use the mailto tiddler like this
<$set … define your variables>
{{Mailtemplate Tiddler -- Linktext||mailto}}

and you will get a link called "Linktext" which should open a pre-filled 
Mail ready to be sent.

Full example

Tiddler "Mailtemplate Customer ready"
Hi Team.
 
Please be informed that I've created.  Customer <>.
 
Best Regards,

field "subject": "Cusomer <> created
field "recipients": "t...@compa.ny"
I prefer to set the tiddler's type to text/plain to be able to see all 
variables


Tiddler using it
Customername: <$edit tiddler="Customerdata" index="name"/>
<$set name="Customername" tiddler="Customerdata" index="name">
{{Mailtemplate Customer ready -- Inform the team||mailto}}

Note: The example will create a dictionary tiddler "Customerdata".


Tiddler: "mailto"
\define mailto()
$(linktext)$
\end


<$set value=" -- "
  name="sep">


<$set select="0" filter="[all[current]splitbeforeremovesuffix]"
 name="tiddler">


<$set select="0" 
 filter="[all[current]removeprefixremoveprefix]"
  name="linktext">


<$set tiddler=<> field="text"
  name="body">


<$set tiddler=<> field="subject"
  name="subject">


<$set tiddler=<> field="recipients"
  name="recipients">


<$wikify text=<>
  name="body_text">


<$wikify text=<>
  name="subject_text">


<$wikify text=<>
  name="recipients_text">


<$set select="0" filter="[encodeuri[]]"
  name="body_encoded">


<$set select="0" filter="[encodeuri[]]"
  name="subject_encoded">


<$set select="0" filter="[encodeuri[]]"
  name="recipients_encoded">


<>


























I'm still working on it, but maybe this is already useful to you.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e4741d79-d4e1-4465-9c3a-0388764c5051%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Did I find a bug? Or am I using it wrong?

2019-07-02 Thread Stephan Hradek
Am Dienstag, 2. Juli 2019 09:46:31 UTC+2 schrieb Xavier:
>
> Hi Stephan,
>
> In order to "flatten" the titles retrieved from the filter, you need to 
> use the *select* attribute of your <$set> widget like so: <$set 
> name="left" filter="[splitbefore[ -- ]removesuffix[ -- ]]" 
> select=0>
>
>>
>>
Thanks a lot @Xavier. Works perfectly
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/aa592a9f-2ec6-40d1-ba62-e2eb8aa7c4ee%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Did I find a bug? Or am I using it wrong?

2019-07-02 Thread Stephan Hradek
For my mailto-link I want to supply a tiddlername and a linktext to a macro.

For this I thought it would be a good ideat to do it in the form of

{{the tiddler with the mail template -- the linktext||mailto}}

So the idea is to have a mailtext in the tiddler (the tiddler with the mail 
template) and to create a mailto-link of the form

mailto:…;>the linktext

So for this I need to split the text at " -- ", but this only worked, when 
my tiddler's title does not contain a blank. Otherwise it fails.

Here is a simple tiddler for you to test:

<$set name="testtext" value="the tiddler with the mail template -- the 
linktext">

<$set name="left" filter="[splitbefore[ -- ]removesuffix[ -- ]]">

<$set name="right" filter="[removeprefixremoveprefix[ -- 
]]">

Original: <$text text=<>/>

Left of ' -- ': <$text text=<>/>

Right of ' -- ': <$text text=<>/>





The output is

Original: the tiddler with the mail template -- the linktext


Left of ' – ': [[the tiddler with the mail template]]


Right of ' – ': 

Without spaces the output is

Original: the_tiddler_with_the_mail_template -- the linktext

Left of ' – ': the_tiddler_with_the_mail_template


Right of ' – ': [[the linktext]]

So for some reason there are square brackets added to the variable's value 
which will make my nice logic fail.

Is there a way around this?










-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1fe8473f-9fb3-482c-b4a9-975eedc4b093%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Transclusion into variable or something similar?

2019-07-01 Thread Stephan Hradek


Am Montag, 1. Juli 2019 14:06:36 UTC+2 schrieb Mat:
>
> Hey there's a familiar name! Welcome back Stephan.
>
> Thanks! Also to @PMario and @Mohannad
 

> I think you need to wikify the MailText (wikifywidget) before sending to 
> encodeuri
>
> That seems like the solution. Thanks a lot! 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b55a2ce8-4d33-47ee-99b1-cba379febcfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Transclusion into variable or something similar?

2019-07-01 Thread Stephan Hradek
Hi!

After quite some time I'm back to using TiddlyWiki (hopefully) a bit more 
regularly.

Seems my kowledge has rusted over the last 2 years. I cannot figure out how 
to get solved what I want to achieve.

The idea is the following: I have to create some customer information and 
in that process I have to send mails.

So while I document what I do I also want to enter the customer's data into 
my TW. The idea I have is that TW will already prepare the mail for me.

This works but I have to copy & paste the mail. Much easier would be to 
click on a prepared mailt-link which will invoke my mail program, prefilled 
with all the data.


Here is an example as to how far I came:

Tiddler "data"

name:recipient
text:the text to send

Tddler "MailText"

Hi<>!

Thisisyour text:<>.

Regards

Tiddler PreparedMail

<$set name="the_recipient" tiddler="data" index="name">
<$set name="the_text" tiddler="data" index="text">


{{MailText}}






In order to be able to create a mailto-link, I will have to apply encodeuri 
to the mailtext:

<$set name="the_recipient" tiddler="data" index="name">
<$set name="the_text" tiddler="data" index="text">

<$list filter="[[MailText]get[text]encodeuri[]]">

<>







Unfortunately encodeuri does not receive the "Transclusionresult" but the 
plain MailText and so the output of the las example will be:

Hi%20%3C%3Cthe_recipient%3E%3E!%0A%0AThis%20is%20your%20text:%20%3C%3Cthe_text%3E%3E.%0A%0ARegards

And not the required

Hi%20recipien!%0A%0AThis%20is%20your%20text:%20the%20text%20to%20send.%0A%0ARegards

Is there any way I can solve this? Can I, for exampl, get the fully 
transcluded text into a variable so that I can create a mailto-link?

Many tia…

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e4b83b19-ffc4-4f00-9968-9ae7b218253f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to do I make some specific changes in the UI?

2018-09-15 Thread Stephan Hradek
This is ugly but to give you a starting point:

You can use CSS. Create a new tiddler tagged with $:/tags/Stylesheet

Then insert

div.tc-search {
position: fixed;
top: 0px;
left: 0px;
}
div.tc-page-controls {
position: fixed;
top: 0px;
right: 0px;
}
div.tc-sidebar-header h1.tc-site-title,
div.tc-sidebar-header div.tc-site-subtitle {
display:none;
}



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/35fa497a-926b-42d7-8da3-ae3987af385a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [TW5] [ger] TiddlyWiki in der c't

2018-09-15 Thread Stephan Hradek


Am Samstag, 15. September 2018 11:28:17 UTC+2 schrieb @TiddlyTweeter:
>
> Its unfortunate you have to pay to read the whole article.
>

That's normal for a computer magazin. You should buy it to read it…

Or go to the nearest book store and read the article there ;)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c8423ee9-f83e-4e1c-9bc0-fe2b478b63f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] [TW5] [ger] TiddlyWiki in der c't

2018-09-15 Thread Stephan Hradek
https://www.heise.de/ct/ausgabe/2018-20-Notizverwaltung-mit-TiddlyWiki-4157973.html

TiddlyWiki was showcased in the current edition (20/2018) of the german 
computer magazin c't.

Nice article with the small downside that the author didn't know about 
@pmario's TiddlyBackup.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f39ec0bb-8e23-46f0-bfaa-742a4279c185%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Create new tiddler from template fill title an jump to text field

2018-04-14 Thread Stephan Hradek
I do not fully understand your exampl.

Can you give full tiddlers so that we can recreate and test it on 
tiddlywiki.com?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7da18d7c-4d74-4295-a7a5-a480058815b6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Question about organization

2018-04-11 Thread Stephan Hradek
Did you have the preview on?

I usually switch it off when creating longer tiddlers.

OTOH: I just created on http://lipsum.com 50 paragrahs, 4797 words, 32624 
bytes of Lorem Ipsum  text, changed every "lorem" 
to [[lorem]] and every "ipsum" to ''ipsum'' and couldn't notice any 
slowdowns when pasting that text into a new tiddlert on tiddlywiki.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9291ea7b-4795-4cca-ae59-22132cd09fe6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: [OT] Card Design

2018-04-10 Thread Stephan Hradek
Twitter… Invariable length… Correct me if I'm wrong but the "invariable 
length" used to be 140 and now is 280 characters? ;)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3cddaa35-f207-4318-8808-b1f5442d12a2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to tag separate paragraphs in different tiddlers and then transclude them?

2018-04-09 Thread Stephan Hradek


Am Dienstag, 10. April 2018 02:17:59 UTC+2 schrieb TonyM:
>
> JD,
>
> Should we be using a new thread to collaborate otherwise we are somewhat 
> hijacking the thread?
>
Isn't this something for the TiddlyWikiDev group? 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c9650e52-0a47-47a2-bc2b-f38e12f0a7c7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Display contents of tiddler as list

2018-04-09 Thread Stephan Hradek
You could also use my pick plugin  
and use this in your select:

<$select field="Topic:">
<$list filter="[[Topic List]pick:text[(?gm)^(.+)$]]">
<$view field='title'/>




-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/74fa4f07-139f-4ce2-81da-810fe43a0377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Display contents of tiddler as list

2018-04-09 Thread Stephan Hradek
Yes if this is your Topic List:

[[Topic 1]]
[[Topic 2]]
[[Topic 3]]


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7430ccf1-8a5b-474e-9688-428c1bfa2710%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to tag separate paragraphs in different tiddlers and then transclude them?

2018-04-07 Thread Stephan Hradek


Am Sonntag, 8. April 2018 03:57:11 UTC+2 schrieb Mat:
>
> Then, to almost automatically create articles, put this in a conditional 
> viewtemplate 
> . This 
> means that all (and only) tiddlers tagged e.g "article" will show the 
> sub-section aggregation.
>
… With the downside that you are not able to define their sequence.

You would need to have a field in each tiddler which would define the order 
in which to transclude them and put a sort into your filter.

But I think you're making it too complicated.

Remember what I wrote? The "3 tiddler" are just one string which is used as 
a filter. So why not use your filter instead of using the filter to create 
a string and then using that string again as a filter? Want to try? Put 
trans-edit again into tiddlywiki.com and create atiddler with this contents:

{{
[tag[TableOfContents]]
||
trans-edit
}}

Still: There is no order. You would need an order field in each tiddler and 
then you could use something like:

{{
[tag[TableOfContents]sort[orderfield]]
||
trans-edit
}}




 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/90c39bdb-eb08-4487-9080-e4cc7f5c570c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to tag separate paragraphs in different tiddlers and then transclude them?

2018-04-07 Thread Stephan Hradek


Am Samstag, 7. April 2018 19:27:14 UTC+2 schrieb Mark S.:
>
> I had no idea that you could apply a template to more than one tiddler at 
> a time. Is this in the documentation some place?
>
See my reply above: I simply provide just one tiddler title, which happens 
to look like 3, to trans-edit. The usage of this title as a filter results 
in the interpretation of this title as neing 3 tiddlers.

So no: It's not in the documentation because it need not be ;) 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2acca2ac-d045-4980-ba92-b926c0b73e8d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to tag separate paragraphs in different tiddlers and then transclude them?

2018-04-07 Thread Stephan Hradek


Am Samstag, 7. April 2018 17:06:12 UTC+2 schrieb JD:
>
> This is really cool! 
>
> I'd go with the reveal-widget (instead of a modal) to edit the paragraphs 
> in place, unless there's a con to that method?
>
I didn't use reveal because I got the feeling that it'll be too much code. 
But I might be wrong. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd043703-93dc-44ac-aeb0-b54d0e79cdf1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: How to tag separate paragraphs in different tiddlers and then transclude them?

2018-04-07 Thread Stephan Hradek


Am Samstag, 7. April 2018 14:56:19 UTC+2 schrieb Vytas:
>
>
> {{[[A]][[B]][[C]]||trans-edit}}
> it brings the titles A, B and C as values to the "trans-edit" piece of 
> code,
>

Nope. It brings "[[A]][[B]][[C]]" as one tiddler title (in 
<>) to trans-edit.
 

> which then provides the listing of the edit-buttons together with the 
> content of the A, B and C tiddlers.
>

The <$list> in trans-edit uses the currentTiddler title as a filter, thus 
interpreting our string "[[A]][[B]][[C]]"  as being the 3 tiddler titles A, 
B and C.
 

>
> However, what is happening when the the code of "trans-edit" is being run 
> independently, that is, when there are no tiddler titles provided for the 
> filter operator in the "trans-edit" tiddler? Do I understand it correctly, 
> that, in this case, the value of <> is "trans-edit" and 
> that is why the "trans-edit" tiddler tries to include itself into itself 
> and the result is: "Recursive transclusion error in transclude widget", 
> which I see in the view-window of "trans-edit"?
>

That's correct.

 

>  Is it alright to see this error or could it be somehow avoided?
>

If I'm not mistaken ths is okay and can be seen with some standard 
templates in TW5 itself.
 

>
> By the way, is it correct, that the fact that "the code of tiddlers is 
> being run continuously", is responsible for the thing, that it will never 
> be possible to edit tiddlers from the EDIT-window of some other tiddler, 
> that is, you have to have a button to run the editting only once (and not 
> continuously)?
>

No. This is because the edit tiddler simply is not prepared for this. You 
could create your own edit window, maybe, which could doe stuff like this.

 

>   
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eb3f3361-cb57-48a4-a34c-1aabe01b0640%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: bug when calling a csv tiddler in a javascript

2018-04-06 Thread Stephan Hradek
What's the "type" of your tiddler?

As you seem to understand JavaScript, have a look at the getTiddler 
definition:

exports.getTiddlerData = function(titleOrTiddler,defaultData) {
var tiddler = titleOrTiddler,
data;
if(!(tiddler instanceof $tw.Tiddler)) {
tiddler = this.getTiddler(tiddler); 
}
if(tiddler && tiddler.fields.text) {
switch(tiddler.fields.type) {
case "application/json":
// JSON tiddler
try {
data = JSON.parse(tiddler.fields.text);
} catch(ex) {
return defaultData;
}
return data;
case "application/x-tiddler-dictionary":
return 
$tw.utils.parseFields(tiddler.fields.text);
}
}
return defaultData;
};


Maybe this clarifies why you cannot access CSV data?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/636c25a5-9f19-4727-8e80-e832bb885bb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to tag separate paragraphs in different tiddlers and then transclude them?

2018-04-06 Thread Stephan Hradek
I've created a small example for you to reproduce on tiddlywiki.com

Create some paragraph tiddlers. I've called them A, B and C containing some 
Lorem 
Ipsum text .

Example

AA 
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aliquam eget ex 
nunc. Maecenas blandit efficitur erat a malesuada. Vivamus sit.
AA

Then I creted 2 tiddlers which are the "workhorses":

trans-editor:
<$edit-text tiddler=<>/>

and trans-edit
<$list filter=<> variable="theTiddler">

<$button class="tc-btn-invisible tc-tiddlylink">
<$action-sendmessage $message="tm-modal" $param="trans-editor" 
tiddler2edit=<> />
{{$:/core/images/edit-button}}
 <$transclude tiddler=<> />



Finally create your tiddler which will transclude all your paragraph 
tiddlers:

{{
[[A]]
[[B]]
[[C]]
||
trans-edit
}}












-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f277552e-f04b-4c9c-a4b0-6092b6f58cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to tag separate paragraphs in different tiddlers and then transclude them?

2018-04-06 Thread Stephan Hradek
It is possible to edit the content of a tiddler in the VIEW Window of 
another tiddler.

So if you have one tidler consistiong of transclusions of other tiddlers, 
it could look like this:

{{My first Paraggraph||trans-edit}}


{{My second Paraggraph||trans-edit}}


{{My third Paraggraph||trans-edit}}


And then have a tiddler "trans-edit" which does the transclusion and also 
inserts code for allowing editing of the transcluded tiddler in (for 
example) a popup.


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/fb1be1c1-93ea-4390-b038-da3ef4ad2cbc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-04-05 Thread Stephan Hradek
As usual:


   1. Drag & Drop the link 
    
   into your tiddlywiki.
   2. Import the library (link)
   3. Go to Settings ($:/ControlPanel)
   4. Click on Plugins
   5. Get more plugins
   6. Open my plugin library
   7. install
   


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bdb652d3-9aaf-49b5-b904-ef6c528117ed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-04-05 Thread Stephan Hradek


Am Dienstag, 3. April 2018 16:30:43 UTC+2 schrieb Mat:
>
> @Stephan
>
> Any news on this? Is your plugin created? Really looking forward to it and 
> I think it will be very useful :-)
>
> https://skeeve.github.io/tw5-plugins/ 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/55c1b06a-6abf-47fd-b57a-0dd5f489fbcb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-04-05 Thread Stephan Hradek
In case someone is interested: https://skeeve.github.io/tw5-plugins/

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9c8b8339-66e3-4e82-9150-bd7dcb2c5168%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Feedback wanted for plugin idea: domain-specific backticks

2018-04-05 Thread Stephan Hradek
What about simply creating templates?

The notation then is a bit different. Instead og


`define: vector space` and `equation: α(u + v) = αu + αv`


you would need to write

{{vector space||define}} and {{α(u + v) = αu + αv||equation}}

For this you just need to define a tiddler called "define", containing

<>

and a tiddler equation containing

my great equation is (<>)

(as an example)







-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/be6345d0-022f-4c60-a4e6-e105bacd456c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] Possible to reveal where a missing tiddler is mentioned?

2018-04-05 Thread Stephan Hradek
I'd like to understand the issue, soI've put your tiddler into a "New 
Tiddler" on tiddlywiki.com.

It shows 189 missing tiddlers, but the table is empty,

What do I need to do in order to see what you see?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/962aa8f2-d42c-472b-8f9f-b21763ddc13c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5]] Regexp to find tiddlers with a title of max length

2018-04-05 Thread Stephan Hradek
I do not completely understan your question.

But this is an explanation for regexp:


   - [\w{1,4}$]


   -   This would match almost ANY title, because you say: Find 1-4 
  characters at the end of the title.
   

   - [^\w{1,4}$]
  - This would match titles having 1-4 characters
  

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cf38462d-b179-4cfa-b895-f94b08b79435%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Vorstellung meines Wikis: Anleitung für TW5 (f. blutige Anfänger) & Körperpflege/Reinigungsmittel palmölfrei selbst herstellen

2018-04-05 Thread Stephan Hradek
Okay…

Dann etwas freundlicher.

Du hast sicherlich viel Zeit und Mühe in den Inhalt Deiner Seite gesteckt. 
Leider kann ich das nicht richtig goutieren, alldieweil mir die farbliche 
Gestaltung Deiner Seite nicht konveniert.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3d8ff5b9-2141-4b99-af24-c7a5c8868fb3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Vorstellung meines Wikis: Anleitung für TW5 (f. blutige Anfänger) & Körperpflege/Reinigungsmittel palmölfrei selbst herstellen

2018-04-03 Thread Stephan Hradek
AUA! Ds macht Augenkrebs! Schwarz auf Violett geht gar nicht.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6527c536-8bdf-41d9-9b21-6c24d948ba10%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A question about the search operator

2018-03-26 Thread Stephan Hradek
To search in the values, i'm not sure, but I think this would do:

<$list filter="[all[tiddlers+shadows]
type[application/json]]" variable="jsonTiddler">
<$list filter="[getindex[skill]search:title]">

<>





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7cec22a1-fd76-498b-ae9c-d9d99b95600b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Populating the list field of a tiddler that is a tag

2018-03-23 Thread Stephan Hradek
I wouldnt have tagged the illustration tiddlers at all. After all: They are 
already named "Illustration X" so a simple "prefix[Illustration ]" filter 
would do.

Unfortunately automatic sorting of the tiddlers isn't possible yet. There 
is a plugin which could do that 
https://groups.google.com/forum/#!topic/tiddlywiki/fJ-kKaxRwy0 and I wish 
it would be part of the core.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5e6d7ea3-40e3-4a5c-8d3d-9e2d40c1de08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Populating the list field of a tiddler that is a tag

2018-03-23 Thread Stephan Hradek
To me it's absolutely unclear

a) What you're trying to achieve
b) What's your question

Really sorry for that. Do you think there are filters the student can't use 
becaue he used tags and he could have used, had he used lists? So can you 
give an example? Maybe publish an example somewhere for us to have a look 
at?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/89cbd081-a611-44b5-82ad-c9dc172c9ff8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] rest[0] problem

2018-03-23 Thread Stephan Hradek


Am Freitag, 23. März 2018 10:41:32 UTC+1 schrieb Jeremy Ruston:
>
> but I think it’s probably a bug.
>

It is and I just created a pull request to fix it.

I also adjusted the x-listops, I hope that's okay. They had the same piece 
of code in I once introduced.

https://github.com/Jermolene/TiddlyWiki5/pull/3188

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e8a70ee8-ea0a-429c-a698-ab6deb50064c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: rest[0] problem

2018-03-23 Thread Stephan Hradek
Yes, there is a bug!

var count = parseInt(operator.operand) || 1,

I think this would fix it

var count = parseInt(operator.operand),
results = [];


if( isNaN(count) ) {
count= 1;
}



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a78235cd-5731-493a-8574-72480d60e5e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: External link tooltips for dummies

2018-03-22 Thread Stephan Hradek


Am Donnerstag, 22. März 2018 19:35:09 UTC+1 schrieb Antti E.:
>
> Stephan - You are the king!
>
> Works perfectly, thank you.
>

Just remember that it might be broken if you upgrade. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3a24b856-64d9-450c-9f48-4abc7604b8b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: I love TiddlyWiki because...

2018-03-22 Thread Stephan Hradek
…of the helpful people around it.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/950f435d-c2d0-47df-828a-e2710dec2112%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Is there a way to not popup all tag dropdowns?

2018-03-22 Thread Stephan Hradek


Am Donnerstag, 22. März 2018 13:09:06 UTC+1 schrieb Jeremy Ruston:
>
> Hi Stephan
>
> I think this is the simplest fix:
>

COOL

I have no clue, why it works, but it does. Thanks a lot.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/191557c0-2b5d-45e8-b7ff-b15cf8d08fe6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: External link tooltips for dummies

2018-03-22 Thread Stephan Hradek
Try this:

in `$:/core/modules/parsers/wikiparser/rules/prettyextlink.js`

after

node.attributes.href = {type: "string", value: URL};


add

node.attribute.title=  {type: "string", value: URL};



in `$:/core/modules/parsers/wikiparser/rules/prettylink.js`

after

href: {type: "string", value: link},


add

title: {type: "string", value: link},






-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f3868757-d9b0-40cb-b851-719bfea5da51%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Is there a way to not popup all tag dropdowns?

2018-03-22 Thread Stephan Hradek
Hi!

I'm using the timeline macro, overwriting the timeline-title macro to also 
display (some of) the tags of each tiddler.

Now when I click on one of the tags, the dropdown of each of these tags 
openes.

Is there a way to avoid this?

Example to try out on tiddlywiki.com

\define timeline-title()

<$view field="title"/> <$list filter="[all[current]tags[]]">{{||$:/core/ui/
TagTemplate}}
\end

<$macrocall $name="timeline" format="-0MM-0DD" subfilter=
"tag[TableOfContents]"/>


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/765d95c7-f287-48e1-829c-0594c19d732e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] Tipp: Line breaks in lists

2018-03-07 Thread Stephan Hradek
Maybe it's already known, but I can remember we often had the question how 
to add a linebreak in a list.

Previously the recommendation was to use , but then lines would become 
very long and cumbersome to read.

Today I learned that we already have 
https://tiddlywiki.com/#Hard%20Linebreaks%20in%20WikiText (Hard line 
breaks).

But I think there is also another nice way using :

# this is the first line and this the second one and evenn a third…


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f1fcbdb3-be2b-4fb4-b281-457f6a886d0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Recommendations for an ASCII to diagram plugin?

2018-03-01 Thread Stephan Hradek
*WOW* That's cool… But nothing I think I'm able to do.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7416ea5e-2335-44ac-95d2-f4035b5e3420%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Searchable database in a page

2018-02-27 Thread Stephan Hradek


Am Mittwoch, 28. Februar 2018 05:27:47 UTC+1 schrieb Michael Wiktowy:
>
> Stephan's contact example is awesome and I used it and reused it 
> everywhere for various database applications.
>
> Thanks!
 

> So I have recently modified it into a macro that makes everything generic 
> as possible and core-only 
>

That sounds great. Why not publish it, like I did with tw5magick and 
tiddlystuff on tiddlyspot as well?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/125f5d68-cff9-456c-9634-28da4c834884%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Searchable database in a page

2018-02-27 Thread Stephan Hradek
Just try to use TiddlyWiki.

A tiddler can be a record of your database
The title would be your unique key.
The text could be a free form data field.
You can add as many fields as you want.

I once created a simple Contacs DB (tiddlystuff.tiddlyspot.com) which you 
can use as an example. Take care: It's a bit outdated.


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f1ffcc0d-1b31-40ae-996d-491935303bf2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Skeeve's Plugins Library is live

2018-02-25 Thread Stephan Hradek


Am Sonntag, 25. Februar 2018 20:59:35 UTC+1 schrieb Jed Carty:
>
> They do slightly different things, but I did make an action-increment 
> widget here:
>

Didn't know that one. Indeed. -they are slightly different.

Yours is more flexible in regards to the steps.

Mine just has the advantage that it works on any string having a number. I 
mainly intended it for stuff like incrementing something like a project 
number, maybe being part of a journal tiddler.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8de1c238-20a5-4654-95a4-6de4670bb68d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Skeeve's Plugins Library is live

2018-02-25 Thread Stephan Hradek
https://skeeve.github.io/tw5-plugins

Currently you will find 3 plugins there:

   1. documentation - which is required by the other 2 plugins
   2. action-increment - which will, hopefully, help resolving issues with 
   incrementing tiddler titles etc.
   3. pick - which can be used to extract information from other tiddlers

Feedback is welcome


github page for issues is https://github.com/Skeeve/tw5-plugins

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cd84a270-9bad-4cee-b8d5-6c858e8094b5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-02-24 Thread Stephan Hradek


Am Samstag, 24. Februar 2018 17:40:08 UTC+1 schrieb Mat:
>
>
> What would you say - would your pick operator enable these things?
>
> I'm not sure as I'm missing context and examples for all your keywords.

Anyhow: I intend to offer a plugin soon. So you can check yourself. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c881afb2-9e42-4e5c-8d9a-7ae6296bef17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread Stephan Hradek


Am Donnerstag, 22. Februar 2018 17:20:55 UTC+1 schrieb Stephan Hradek:
>
> Can you test, what you attempted on tiddlywiki.com and post all the 
> tiddlers here so that I can see and aybe correct?
>
> For your previous example, it is an easy fix:
>
> Tiddler 1 fields:
>
>> Title:hostTiddler
>> projectnumber:12345
>> Text:{{||newProjectEntryPB}}
>>
>
> Tiddler 2 fields:
> Title:newProjectEntryPB
> Text:\define projecttitle() $(todaynow)$, $(projectnum)$, Project entry:
>
> <$set name="todaynow" value=<>>
> <$set name="projectnum" value={{!!projectnumber}}>
>
> Need a new project entry? Click this button and a project tiddler will be 
> created:
> <$button>
>   New project entry
>   <$action-sendmessage
>  $message="tm-new-tiddler"
>  title=<>
>   />
> 
>
> 
>
> Of course this doesn't fix the timestamp, but the projectnumber is in.
>

Ah! And for an auto-incremented projectnumber you saw my "Quick & Dirty" 
example above? 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/98a6be1c-23ee-4f29-9485-2cc8dd87fd07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread Stephan Hradek
Can you test, what you attempted on tiddlywiki.com and post all the 
tiddlers here so that I can see and aybe correct?

For your previous example, it is an easy fix:

Tiddler 1 fields:

> Title:hostTiddler
> projectnumber:12345
> Text:{{||newProjectEntryPB}}
>

Tiddler 2 fields:
Title:newProjectEntryPB
Text:\define projecttitle() $(todaynow)$, $(projectnum)$, Project entry:

<$set name="todaynow" value=<>>
<$set name="projectnum" value={{!!projectnumber}}>

Need a new project entry? Click this button and a project tiddler will be 
created:
<$button>
  New project entry
  <$action-sendmessage
 $message="tm-new-tiddler"
 title=<>
  />




Of course this doesn't fix the timestamp, but the projectnumber is in

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ef28c98f-d028-4faf-b403-607425f426a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread Stephan Hradek
A quick & Dirty example.


tiddler: New Button
projecttitle (required field): "Project #1, -0MM-0DD 0hh:0mm:0ss"
text:
\define journalButton()
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:
/language/Buttons/NewJournal/Caption}} class=<>>
<$action-sendmessage $message="tm-new-tiddler" title=<> tags="$(journalTags)$" text="$(journalText)$"/>
<$list filter="[prefix[yes]]">
{{$:/core/images/new-journal-button}}

<$list filter="[prefix[yes]]">
<$text text={{$:/language/Buttons/NewJournal/
Caption}}/>

<$action-increment $reference="New Project!!projecttitle"/>

\end
<$set name="journalTitleTemplate" value={{New Project!!projecttitle}}>
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
<$set name="journalText" value={{$:/config/NewJournal/Text}}>
<>


I took the complete code from the $:/core/ui/Buttons/new-journal tiddler 
and just changed

"$:/config/NewJournal/Title" to "New Project!!projecttitle"
and added <$action-increment $reference="New Project!!projecttitle"/>
which requires you  to have my action-increment plugin installed

The Projectnumber will increase with every click and the title will be 
something like "Project #1, 2018-02-022 13:14:15".

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/092a8c0d-807e-483a-bf77-ef7de7962687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Broken with macro calls

2018-02-22 Thread Stephan Hradek
Why not let the macro return the full row?

\define makerow(i)

<>

\end

\define XXX() 1


  <$list filter="[tag[ActionWidgets]]">
<$macrocall $name="makerow" i=<>/>
  



-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a7330fbc-b05e-40c4-981b-9e24eb4885ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread Stephan Hradek
Before taking too many steps and making it overly complicated: Have you 
thought about utiolising a Journal tiddler?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ce924dfe-345a-4274-aa0e-5bc9c9788754%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] [Plugin] Sortan: For sorting alpha-numericals

2018-02-21 Thread Stephan Hradek
VERY COOL!

I like it. Should be part of the core.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/37a6a626-9d9c-43c7-ae6a-b72883df7f82%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A slider which closes itself when clicking elsewhere or closing tiddler

2018-02-21 Thread Stephan Hradek
I do not know, how far you followed my exampl, but an easy trick, with 
HTML5 enabled browser is:

1. instead of @.answer @ put around the answers


answerhere


2. change the "hover" in the CSS to "focus"

Now when you click on the anwer, it will get focus, and will be displayed.

You will be able to edit the answer, but this won't be stored. after 
closing and reopening the tiddler, the correct answer will reappear.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/31d36632-64ec-4f3b-96fb-f11cd312e732%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to build a tag list for comsuption by <$action-sendmessage $message="tm-new-tiddler" ... />?

2018-02-20 Thread Stephan Hradek
Do I understand correct, that the main question is, how to concatenate 
$:/state/project-number with the word "project"?

Should it be one tag or 2?

For concatenation you usually require a macro. Try this

\define projecttags() project $(projectnumber)$

<$set name="projectnumber" value={{$:/state/project-number}}>
<$button>
   <$action-sendmessage
  $message="tm-new-tiddler"
  title={{$:/state/project-number}}
  tags=<>
   />
   New project




-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6db2e82d-0a5d-418e-9669-15bb3602e042%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek


Am Dienstag, 20. Februar 2018 13:37:54 UTC+1 schrieb Matthew Lauber:
>
> Dang!  I go to sleep for 8 hour and your guys pick apart my code.  
> Seriously though, thanks guys.  I'll take a look at improving the 
> randomness of my shuffle operator.  I seem to recall not using the 
> javascript math.random function because I wanted to be able to seed the 
> function and get a list ordering that only changed when I clicked a 
> button.  I'll see what I can find for that.  
>

If you want something seedable, checkout 
davidbau.com/archives/2010/01/30/random_seeds_coded_hints_and_quintillions.html 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ee553bd2-41f4-481a-8923-093fdc1dc57c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek


Am Dienstag, 20. Februar 2018 09:00:13 UTC+1 schrieb passingby:
>
> But i am seeing that it repeats one or two tiddler a lot. At first i 
> thought maybe my tiddlers were not enough in numbers but then i have around 
> 25 tiddlers and it still repeats a couple initial tiddlers it picks up, a 
> lot.


Please see issue #2 https://github.com/mklauber/tiddly-shuffle/issues/2 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5a3beaf2-de62-4024-a65b-4506665e9e55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek
Hooray! Issue #1 is mine ;) 
https://github.com/mklauber/tiddly-shuffle/issues/1

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4ec21add-5f80-4f9f-a8a9-e2136613be3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek
Update: Upon inspecting the code a bit more: seed cannot be a multiple of 
pi + pi/2 as it's always a 32 bit integer.

Still I think randomness of |sin| isn't the best.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/03b03d3c-f3b4-43d0-a7ac-c4af8d33b442%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: A button to open a random tiddler

2018-02-20 Thread Stephan Hradek
I think there is a big flaw in Matthew's code.

Instead of using a real random function there is this code:

Math.floor(Math.abs(Math.sin(seed++)) * currentIndex);

There are 2 flaws here I think:
1. sin isn't very "random"
2. sin goes from 0 to 1. This will lead to a just shuffled element being 
shuffled a second time. Even worse it can lead to array index out of bounds 
if the seed is (n * pi)+(pi/2). Try it with seed= 3.14159265359/2 ;)

will open an issue on github

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e5210bfe-82b6-4c5f-92aa-01d3590b1db9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Issue: Auto-Enumeration. I have no idea how.

2018-02-19 Thread Stephan Hradek


Am Montag, 19. Februar 2018 16:16:14 UTC+1 schrieb Riz:
>
>
> - Performance: To correctly pad, say 1 or 00019 etc, you need to 
>

do it like this for example:

counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")

Example run from webconsole:

counter="007"
"007"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"008"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"009"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"010"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"011"
counter="098"
"098"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"099"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"100"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"101"
counter="998"
"998"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"999"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"1000"
counter= ((("10"+counter)*1+1)+"").replace(/^10?/, "")
"1001"





-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c24ddf35-3fa9-484d-a9fe-ee3888f736b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Grouped list of data tiddlers

2018-02-19 Thread Stephan Hradek
Better use regexp to find the type

<$list filter='[all[]]' variable=ThisTiddler>
 <$list filter='[indexes[]regexp[^type$]]'>

  <>
 


It will solve the issue mentioned.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/16834c10-fc00-48df-b371-062dcbfa69cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-02-19 Thread Stephan Hradek


Am Mittwoch, 14. Februar 2018 15:06:00 UTC+1 schrieb @TiddlyTweeter:
>
> Ciao Stephen
>
> I don't understand the mechanics. But IF what you mean is that we could 
> extract (say) every web-address in text or fields in a whole TW to a list 
> I'm all for it.
>

Yes, we could. Rought idea, using the new ":value" suffix for "each":

<$list filter="[pick[(?g)(https?://^\S+)]each:value[][">


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/01c41215-f6a5-4955-ace2-cc72a439b76f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: stylesheet works on one TW but not another

2018-02-18 Thread Stephan Hradek
For issues like this it's good to "Inspect element" in FireFox to see which 
CSS rules apply to the element.

That way you could find out.what's conflicting.

You could also try to make either the style definition more specific or, as 
a last resort, add "!important" to the definition.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/90c868f8-bd6b-4b5d-a40f-272f05b41b01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Issue: Auto-Enumeration. I have no idea how.

2018-02-16 Thread Stephan Hradek
If a bookmarklet is enough, here you go:

javascript:var ta= document.activeElement.contentWindow.document.
querySelector('textarea');
var numbers= new Object();
var number= /^(.*?)\s*#(\d+)$/;
if(ta !== null && ta.tagName.toLowerCase() == 'textarea') {
var content= JSON.parse(ta.value);
for (var i=0; i

[tw] Re: Issue: Auto-Enumeration. I have no idea how.

2018-02-16 Thread Stephan Hradek
What I don't understand is your workflow.

Where do you get the data from?

How does it become a tiddler?

How would you want to invoke the macro?

Wouldn't it be sufficient to have a bookmarklet 
https://en.wikipedia.org/wiki/Bookmarklet to do the changes?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/4806f662-6604-4b0e-8745-b4ee977ed57d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-02-12 Thread Stephan Hradek


Am Montag, 12. Februar 2018 17:24:48 UTC+1 schrieb PMario:
>
> Is it possible to have several capturing groups?
>

I think I found a good solution.


   1. filter "pick:field[regexp]"
   Will pick every captured group as a new tiddler. If there is no group it 
   acts exactly like regexp
   2. filter "pickgroups:field[regexp]"
   Will capture every group into one tiddler, joined with character \x00, 
   thus making it usable by
   3. widget "splitgroups"
   which will split the <> at character \x00 into a set of 
   variables, possibly "sweetened" by some text

Examples

Exampletiddler contains
Auf der Mauer, auf der Lauer sitzt 'ne kleine Wanze

First example
<$list filter="[pick:text[auf der (\w+)]]"/>

will return "Lauer" - as "auf" doesn't match "Auf"

Second example
<$list filter="[pick:text[(?i)auf der (\w+)]]"/>

will return "Mauer" - as "auf" now matches "Auf" and we didn't use global 
search

Third example
<$list filter="[pick:text[(?gi)auf der (\w+)]]"/>

will return "Mauer" and "Lauer" - as we did a case-insensitive global search

Fourth example
<$list filter="[pick:text[(?i)auf der \w+]]"/>

will return "Exampletiddler" - as we have no capturing group and so the 
title is returned.

Fifth example
<$list filter="[pick:text[(?i)(auf der) (\w+)]]"/>

will return "Auf der", "Mauer", "auf der" and "Lauer". Each one as a 
seperate tiddler

Sixth example
<$list filter="[pickgroups:text[(?i)(auf der) (\w+)]]">

<$splitgroups a="a: $1" b="b: $2">
<>, <>



will return

"a: Auf der, b: Mauer"
and
"a: auf der, b: Lauer"


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ce106a6a-07d6-4c13-9a97-3424d7c8ba91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-02-12 Thread Stephan Hradek


Am Montag, 12. Februar 2018 17:24:48 UTC+1 schrieb PMario:
>
> On Monday, February 12, 2018 at 2:38:49 PM UTC+1, Stephan Hradek wrote:
>>
>> Last Example
>> <$list filter="[regexp:text[(?i)auf der \w+]]"/>
>>
>> will return "Exampletiddler" - as we have no capturing group and so the 
>> title is returned.
>>
>
> Is it possible to have several capturing groups?
>
> Yes

But now that you ask it… Esch group will be a seperate tiddler, so the 
connection, that they belong to the same source tiddler, is lost. This is 
(was) fine for my usecase, but now that I think about it… 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b77793fd-1115-47e0-a8f0-7c83e2914666%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-02-12 Thread Stephan Hradek
I tried to follow https://tiddlywiki.com/dev/ in order to create a new 
filter module plugin, but I cannot even see (with console.log) that it is 
actually use :(

What did I do wrong?

$:/plugins/skeeve/filter-pick

{
"tiddlers": {
"$:/plugins/skeeve/filter-pick/pick.js": {
"created": "20180212142125038",
"text": "/*\\\ntitle: 
$:/plugins/skeeve/filter-pick/pick.js\ntype: 
application/javascript\nmodule-type: filteroperator\n\nFilter operator for 
regexp matching and picking out capturing 
groups\n\n\\*/\n(function(){\n\n/*jslint node: true, browser: true 
*/\n/*global $tw: false */\n\"use strict\";\n\n/*\nExport our filter 
function\n*/\nexports.pick = function(source,operator,options) {\n\tvar 
results = [],\n\t\tfieldname = (operator.suffix || 
\"title\").toLowerCase(),\n\t\tregexpString, regexp, flags = \"\", 
match,\n\t\tgetFieldString = function(tiddler,title) {\n\t\t\tif(tiddler) 
{\n\t\t\t\treturn tiddler.getFieldString(fieldname);\n\t\t\t} else 
if(fieldname === \"title\") {\n\t\t\t\treturn title;\n\t\t\t} else 
{\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t// Process flags and construct 
regexp\n\tregexpString = operator.operand;\n\tmatch = 
/^\\(\\?([gim]+)\\)/.exec(regexpString);\n\tif(match) {\n\t\tflags = 
match[1];\n\t\tregexpString = regexpString.substr(match[0].length);\n\t} 
else {\n\t\tmatch = /\\(\\?([gim]+)\\)$/.exec(regexpString);\n\t\tif(match) 
{\n\t\t\tflags = match[1];\n\t\t\tregexpString = 
regexpString.substr(0,regexpString.length - 
match[0].length);\n\t\t}\n\t}\n\tvar global= flags.indexOf('g') > 
-1;\n\ttry {\n\t\tregexp = new RegExp(regexpString,flags);\n\t} catch(e) 
{\n\t\treturn [\"\" + e];\n\t}\n\t// Process the incoming 
tiddlers\n\tif(operator.prefix === \"!\") 
{\n\t\tsource(function(tiddler,title) {\n\t\t\tvar text = 
getFieldString(tiddler,title);\n\t\t\tif(text !== null) 
{\n\t\t\t\tif(!regexp.exec(text)) 
{\n\t\t\t\t\tresults.push(title);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t} else 
{\n\t\tsource(function(tiddler,title) {\n\t\t\tvar text = 
getFieldString(tiddler,title);\n\t\t\tif(text !== null) {\n\t\t\t\tvar 
m;\n\t\t\t\twhile (m = regexp.exec(text)) {\n\t\t\t\t\tif (m.length == 1) 
{\n\t\t\t\t\t\tresults.push(title);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tconsole.log(m);\n\t\t\t\t\tfor
 
(var i=1; i



nothing is logged at all.


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b18eda88-b96a-4a72-9c58-18552e19105b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] enhance regexp or new filter "pick"

2018-02-12 Thread Stephan Hradek


Am Montag, 12. Februar 2018 11:36:42 UTC+1 schrieb PMario:
>
>
> There is a second PR: https://github.com/Jermolene/TiddlyWiki5/pull/2963 
> which may be similar. ... +1 this one too!
>
> Especially that one looks pretty similar to my code, but seems to do 
something differently.

Haven't figured out how to completely see that code and include it in my TW 
to try & test it.

Example of how mine would work:

Exampletiddler contains
Auf der Mauer, auf der Lauer sitzt 'ne kleine Wanze

First example regexp:
<$list filter="[regexp:text[auf der (\w+)]]"/>

will return "Lauer" - as "auf" doesn't match "Auf"

Second example regexp:
<$list filter="[regexp:text[(?i)auf der (\w+)]]"/>

will return "Mauer" - as "auf" now matches "Auf" and we didn't use global 
search

Third example regexp:
<$list filter="[regexp:text[(?gi)auf der (\w+)]]"/>

will return "Mauer" and "Lauer" - as we did a case-insensitive global search

Last Example
<$list filter="[regexp:text[(?i)auf der \w+]]"/>

will return "Exampletiddler" - as we have no capturing group and so the 
title is returned.






-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eff9ea24-3f8d-4424-baab-2c333a1cbd57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] enhance regexp or new filter "pick"

2018-02-12 Thread Stephan Hradek
Hi!

I wanted to create a new filter called "pick" which is exactly like regexp, 
except that it "picks out" the matched parts instead of finding matching 
tiddlers.

Motivation behind this is: I have some tiddlers containing links to github 
and I wanted to pull out all these links.

As I failed to create a plugin for doing this ad-hoc (too long absence from 
tiddlywiki), I shamelessly enhanced regexp to do what I want.

The enhancement is backwards compatible as long as there are no capturing 
groups in

Pro: Not yet another filter to learn
Cons: Will break current tiddlywikis having capturing groups

Question is: What shall I do with it? Can someone show me how I can create 
a plugin so that I can create a "pick" filter? Shall I create a pull 
request for the enhanced regexp?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d9180584-730f-4e63-9f19-352509aab33a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] How to save with Firefox Quantum - WebDAV

2017-11-17 Thread Stephan Hradek


Am Freitag, 17. November 2017 12:46:45 UTC+1 schrieb PMario:
>
>
> There is no need to click on the diamond. That's just the configuration 
> UI. Everything else is almost like TiddlyFox. 
>
> Have a look at the video: https://youtu.be/dt-nH9jSQ6c
>
> I should have done that earlier.

So note from an user: Put back in the "Annoying" first alert box but with a 
more explicit text.

I think, I will like your extension!

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e46644ac-c03c-4acf-96b1-d3e1a9fecd34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] How to save with Firefox Quantum - WebDAV

2017-11-17 Thread Stephan Hradek
 I got a new computer at work and quickly installed Firefox.
Of course it was Quantum and now TiddlyFox doesn't work anymore.

I looked at https://tiddlywiki.com/#GettingStarted:GettingStarted to find 
alternatives.

While I think Mario's file-backup is quite good, I didn't like that I have 
to click on the "diamond" to save instead of what I used to do.

Then I saw: Saving via WebDAV

Since I'm a customer of gmx and I know that their MediaCenter is accessible 
via WebDAV, I simply tried it.

I created a wiki folder in my media center and put an empty.html there.

Then I opened https://webdav.mc.gmx.net/wiki/empty.html

I was asked for my gmx username and password and - Voilá - I'm there.

I then created a new tiddler and saved it.

Then I went to another browser and opened the same URL there.

It worked.

So good news is: The information on tiddlywiki.com

Free Hosting
>
> None of the WebDAV hosting services tested (box.com, swissdisk.com) 
> support accessing HTML files via a webbrowser, so they won't work with 
> TiddlyWiki. Maybe someday soon there will be a free WebDAV hosting service 
> for TiddlyWikis. 
>

can be enhanced with: gmx mediacenter works. And it's free (2GB).

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/214e6479-e249-4c02-967c-efbefc2deab0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] Macro Question: Is there an easier way to achieve this?

2017-10-11 Thread Stephan Hradek
Hi!

I am in need for something that gives me, given a path, just the filename 
part of it.

Of course I could use a JavaScript Macro, but I do not like the overhead.

The TW5 standard list operators do not give me much useful for splitting a 
string, Just the "splitbefore".

But after some testing I came up with this solution (explained at the 
bottom) which is a recursive macro, and I'm asking you whether you


   1. can find something easier
   2. also think we need a few more operators

\define basename(path)
  <$list filter="[[$path$]] +[regexp[/]]">
<$list filter="[[$path$]] +[splitbefore[/]]" variable="dir">
  <$list filter="[[$path$]] +[removeprefix]">
<$macrocall $name="basename" path=<>/>
  

  
  <$list filter="[[$path$]] +[!regexp[/]]">
<$text text=<>/>
  
\end

Examples:

a/b/c: <>

abc: <>

How does it work?

\define basename(path)
  # Check whether we have a path seperator. Only execute the indented part 
if we have.
  <$list filter="[[$path$]] +[regexp[/]]">
# split before the first path seperator. In the example this will give 
us "a/" for the first round.
# store this in <>
<$list filter="[[$path$]] +[splitbefore[/]]" variable="dir">
  # Now take the full path and remove the <> we just found
  <$list filter="[[$path$]] +[removeprefix]">
# recursively call the basename for the rest "b/c" in the first 
round in our example
<$macrocall $name="basename" path=<>/>
  

  
  # Check whether we have NO path seperator. Just print when we have none
  <$list filter="[[$path$]] +[!regexp[/]]">
<$text text=<>/>
  
\end

a/b/c: <>

abc: <>




-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/135ec056-6dd5-4c2d-9454-ade3b020c324%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Best "equal" operator?

2017-09-09 Thread Stephan Hradek
What's wrong with

<$reveal state="mytiddler!!myfield" type="match"   text="foo" 
 > value is foo 
<$reveal state="mytiddler!!myfield" type="nomatch" text="foo" 
default="foo"> value is not foo 


-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/22547d7f-f9b7-47eb-bacb-42c35aaf66af%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Is there a consistent guide on how to modify different parts of the interface of the wiki?

2017-08-30 Thread Stephan Hradek


Am Mittwoch, 30. August 2017 19:50:48 UTC+2 schrieb Ton Gerner:
>
> Hi Vayu,
>
> Maybe this can help you: http://tw5custom.tiddlyspot.com/
>
> Cool. Looks extremly useful.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a7f43c5c-d650-495a-a107-f7744ec3b65a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Suggestions for future features

2017-08-30 Thread Stephan Hradek


Am Mittwoch, 30. August 2017 16:13:11 UTC+2 schrieb Mark S.:
>
> What's <> ?
>
> I'm wondering myself ;) Honestly: Can't remember why I thought it was 
<>. I once created a "snapshot button" for my menu. It's a 
tiddler called "Print" looking like this:

<$button message="tm-download-file" 
param="$:/core/templates/static.template.html" class="btn-big-green">Save 
snapshot {{$:/core/images/save-button}}

Clicking it will give you a static HTML of all the currently open tiddlers.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/cbdde624-f5e1-4bb0-8243-7f824597c56f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Suggestions for future features

2017-08-30 Thread Stephan Hradek


Am Mittwoch, 30. August 2017 04:02:40 UTC+2 schrieb Kathir J:
>
> Having tags for each document (Reference: https://collatenotes.com/)
>
It would be much nicer to give a use case than just posting a link.

What's a "document" for you? A tiddlywiki file? Are you sure you did 
explore everything in regards to tiddler creation? Did you check whether 
you can set default tags for every new tiddler?
 

> Built in web clipper (save webpages locally) - (Reference: 
> https://collatenotes.com/)
>
It would be much nicer to give a use case than just posting a link.

What's a "web clipper"? Are you sure, the <> macro isn't 
sufficient?
 

> Import data from Zim Wiki or Text files - (Reference: 
> https://collatenotes.com/)
>
It would be much nicer to give a use case than just posting a link.
 
Did you check http://tiddlywiki.com/#Importing%20Tiddlers? Why not write a 
converter tool yourself? IMHO this is nothing useful for the majority.

Google like search like ambar cloud (Reference: https://ambar.cloud/)
>
It would be much nicer to give a use case than just posting a link.

I do not want to look into this.
 

> Function Keys support to navigate previous/next hit like Folio Views
>
It would be much nicer to give a use case than just posting a link.

 

> Number of search results before search performed like table (Reference: 
> http://table.branham.org/#/main)
>
It would be much nicer to give a use case than just posting a link.
 

> Support for full text search in huge text nodes - example atleast 10,000 
> nodes with 100 kb of text each. Most note-taking software couldn't handle 
> such huge content due to missing indexing
>
You shouldn't create such hge nodes.
 

> Quickest search results via indexing through Apache Lucene like docFetcher 
> (
> http://www.techrepublic.com/blog/linux-and-open-source/portable-desktop-search-make-the-most-of-docfetcher/
> )
> Please go through the menus of cherry tree software and incorporate which 
> is easly doable.
>
No. Why?

 

> drag and drop support between nodes
>
Works for me. What's wrong there?
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/929456d8-78c2-4b60-a259-c45d5b0b2298%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] timeline macro & days filter - I don't get it.

2017-08-30 Thread Stephan Hradek


Am Dienstag, 29. August 2017 16:41:03 UTC+2 schrieb Mark S.:
>
>
> The "days" operator was added at version 5.1.10.
>
> Thanks Mark!

I was a bit reluctant to upgrading but thanks to the wonderful work of 
Jeremy it was really flawless. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6c59e2a1-e4b8-4920-aa0e-4481262b259c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: [TW5] timeline macro & days filter - I don't get it.

2017-08-29 Thread Stephan Hradek
Could it be my TiddlyWiki is too old? 5.1.9.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2e599c40-0f7e-4c9c-97ce-fba2d1baf686%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] [TW5] timeline macro & days filter - I don't get it.

2017-08-29 Thread Stephan Hradek
Can someone please enlighten me about how to use the timeline macro 
properly?

I understood that

[!days:modified[-14]]

would give me all tiddlers modified more than 14 days ago should be 
selected.

So I used

<>

but get results from today and also 8 days ago.

Is my understanding wrong?

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0cb7c489-f043-4c9f-9b0f-6887acdd35e0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw] Re: Best "equal" operator?

2017-08-29 Thread Stephan Hradek


Am Montag, 28. August 2017 23:44:51 UTC+2 schrieb Thomas Elmiger:
>
>
> @Stephan, do you suggest it would be better to use the reveal widget?
>
> No, I'm just wondering whether it might work.

I'm yet to completely understand the use case. 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c09b42b0-61d2-40d0-8921-fde3e314bfed%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: Best "equal" operator?

2017-08-28 Thread Stephan Hradek


Am Montag, 28. August 2017 15:13:42 UTC+2 schrieb Mat:
>
> Thank you guys! As noted, the need is for it to be used inside a filter
>

And you cannot put the "equal" outside the filter to use reveal? 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/42308587-17f4-4e81-b286-bb877f439c2d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   4   5   6   7   8   9   10   >