[tw5] Querying search results as JSON from WebServer API

2019-07-03 Thread bimlas
Dear all,

I would like to get the results of a filter in JSON form from WebServer 
(https://tiddlywiki.com/#WebServer%20API). Is this possible?

-- 
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/9cf91e41-dc22-4041-901d-b93bf059c64a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Querying search results as JSON from WebServer API

2019-07-03 Thread bimlas
Note: TiddlyWiki itself supports this, but I couldn't find a way to use 
filters in the API. 

https://tiddlywiki.com/#:[search[webserver]]%20-[[$:/config/OriginalTiddlerPaths]]

See https://tiddlywiki.com/#PermaLinks -> Story Permalinks

2019. július 3., szerda 12:42:50 UTC+2 időpontban bimlas a következőt írta:
>
> Dear all,
>
> I would like to get the results of a filter in JSON form from WebServer (
> https://tiddlywiki.com/#WebServer%20API). Is this possible?
>

-- 
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/00a58248-db86-4478-8ce3-d276d0f63169%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] TW5: javascript macros

2019-07-03 Thread rooster91an
Hello everybody!

I'm stuck in a basic and probably easy thing: I cannot get any javascript 
macro to work in my tiddlywiki. My wiki is a 5.1.19 version running on 
nodejs. 

For an example let's take this makro from TW5 Magick 
(http://tw5magick.tiddlyspot.com/):

===
/*\
title: $:/macros/skeeve/mysamplemacro.js
type: application/javascript
module-type: macro

<>

Example:
<>
<>
<>

\*/
(function(){

/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";

/*
Information about this macro
This is the mysamplemacro of Tiddly Wiki 5 written in JavaScript 
*/

exports.name = "mysamplemacro";

exports.params = [
{ name: "character" },
{ name: "address" }
];

/*
Run the macro
*/
exports.run = function(character, address) {
if( !character) character = "Bugs Bunny";
if( !address) address = "Rabbit Hole Hill";
var output ="Hi, I'm " + character + " and I live in " + address;
return output;
};

})();


This is quite simple and it works perfect on TW5 Magicks Tiddlywiki. I 
imported this above tiddler to my wiki and the field definitions came with 
it: 'Type: application/javascript' and 'module-type: macro'. 

TW5 Magick, the source of this example, runs on an outdated 5.0.7-beta. To 
access the macro a simple <> does it there. 

On my 5.1.19: nope. 

At tiddlywiki.com I found the \define pragma for standard macros. I found 
https://tiddlywiki.com/dev/index.html#JavaScript%20Macros, which explains 
the basics of javascript macros. I was reading google groups for hours. But 
I didn't find out how to bring this together to a working solution in a 
current version of tiddlywiki.

Could someone please give me an example how to access this macro?

Thank 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/f2787222-ef60-471d-a279-fe94de16%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.


[tw5] Re: my backstage gone after downloading/installing plugins

2019-07-03 Thread Birthe C
Hi Kelli,

I tried to install Timimi yesterday running linux. I tried the older 
version for Chrome and Chromium, that did not work for me. It installed but 
saved nothing.
Then I tried the latest release for Firefox. I constantly were told that 
something was missing. 
The instruction for installation is here 
https://ibnishak.github.io/Timimi/#Installing%20Timimi.

Birthe

I downloaded timimi, but haven't installed it yet. not sure if i know how. 
> will have to look again. I guess i have too may irons in the fire! but 
> that's what is called NORMAL for me.
>
> By the way, i tried drag and drop and that didn't work--or maybe it just 
> didn't work the way i imagined it would. :)
> Will start another post about images.
>
>>
>

-- 
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/8560da1f-e0aa-4dc8-90df-0624fd1af8db%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: TW5: javascript macros

2019-07-03 Thread BurningTreeC
Hi, I've tried your example and it works for me on a recent tiddlywiki

Maybe you just forgot to save and reload?


Hello everybody!
>
> I'm stuck in a basic and probably easy thing: I cannot get any javascript 
> macro to work in my tiddlywiki. My wiki is a 5.1.19 version running on 
> nodejs. 
>
> For an example let's take this makro from TW5 Magick (
> http://tw5magick.tiddlyspot.com/):
>
> ===
> /*\
> title: $:/macros/skeeve/mysamplemacro.js
> type: application/javascript
> module-type: macro
>
> <>
>
> Example:
> <>
> <>
> <>
>
> \*/
> (function(){
>
> /*jslint node: true, browser: true */
> /*global $tw: false */
> "use strict";
>
> /*
> Information about this macro
> This is the mysamplemacro of Tiddly Wiki 5 written in JavaScript 
> */
>
> exports.name = "mysamplemacro";
>
> exports.params = [
> { name: "character" },
> { name: "address" }
> ];
>
> /*
> Run the macro
> */
> exports.run = function(character, address) {
> if( !character) character = "Bugs Bunny";
> if( !address) address = "Rabbit Hole Hill";
> var output ="Hi, I'm " + character + " and I live in " + address;
> return output;
> };
>
> })();
> 
>
> This is quite simple and it works perfect on TW5 Magicks Tiddlywiki. I 
> imported this above tiddler to my wiki and the field definitions came with 
> it: 'Type: application/javascript' and 'module-type: macro'. 
>
> TW5 Magick, the source of this example, runs on an outdated 5.0.7-beta. To 
> access the macro a simple <> does it there. 
>
> On my 5.1.19: nope. 
>
> At tiddlywiki.com I found the \define pragma for standard macros. I found 
> https://tiddlywiki.com/dev/index.html#JavaScript%20Macros, which explains 
> the basics of javascript macros. I was reading google groups for hours. But 
> I didn't find out how to bring this together to a working solution in a 
> current version of tiddlywiki.
>
> Could someone please give me an example how to access this macro?
>
> Thank 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/7a0df790-635b-4361-be1e-6e148aa3834b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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

2019-07-03 Thread TonyM
Thaks for sharing

I will have play with this. I have tried similar things but always find using 
mailto fragile, it seems to break at a whim.

I expect as a result my dreams of adding attachments or using rich html emails 
is but a pipe dream.

Regards
Tony

-- 
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/e3d1c892-c7f6-491a-b707-8ed4fff600a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Querying search results as JSON from WebServer API

2019-07-03 Thread bimlas
A possible solution: I can ask all the tiddlers and filter them myself. BTW 
it would be better if there would be a filter function in the API, for 
example, I would not have to download a 100 MB wiki if I'm just curious 
about 10 tiddlers.

https://tiddlywiki.com/#WebServer%20API%3A%20Get%20All%20Tiddlers

2019. július 3., szerda 13:00:54 UTC+2 időpontban bimlas a következőt írta:
>
> Note: TiddlyWiki itself supports this, but I couldn't find a way to use 
> filters in the API. 
>
>
> https://tiddlywiki.com/#:[search[webserver]]%20-[[$:/config/OriginalTiddlerPaths]]
>
> See https://tiddlywiki.com/#PermaLinks -> Story Permalinks
>
> 2019. július 3., szerda 12:42:50 UTC+2 időpontban bimlas a következőt írta:
>>
>> Dear all,
>>
>> I would like to get the results of a filter in JSON form from WebServer (
>> https://tiddlywiki.com/#WebServer%20API). Is this possible?
>>
>

-- 
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/93be1a01-c8f3-477e-8b3c-05587abff41c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Is there any way to easily highlight the text of html articles in tiddlywiki?

2019-07-03 Thread 'Mark S.' via TiddlyWiki
I believe you can use the visual editor: 
http://bjtools.tiddlyspot.com/#VisualEditor

to edit HTML.



On Wednesday, July 3, 2019 at 7:53:21 AM UTC-7, kat wrote:
>
> I am trying to use TiddlyWiki to replace Evernote as a way of archiving 
> web articles to read later. I am mostly just copying the html directly into 
> a tiddler, or using tiddlyclip.
>
> I usually add highlights to articles as I read them in Evernote, is there 
> any convenient way to do this in TiddlyWiki?
>
> Thanks for your help.
>

-- 
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/919a5c1b-7669-4e07-b6f7-abddfe6d3376%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Is there any way to easily highlight the text of html articles in tiddlywiki?

2019-07-03 Thread kat
I had looked at that but unfortunately it doesn't really help me. I still 
have to edit the tiddler and then scroll down to the point in the article I 
was at everytime I want to make a highlight. 

Ideally I need to be able to just select/highlight the text directly as I 
am reading.

On Wednesday, July 3, 2019 at 4:16:33 PM UTC+1, Mark S. wrote:
>
> I believe you can use the visual editor: 
> http://bjtools.tiddlyspot.com/#VisualEditor
>
> to edit HTML.
>
>
>
> On Wednesday, July 3, 2019 at 7:53:21 AM UTC-7, kat wrote:
>>
>> I am trying to use TiddlyWiki to replace Evernote as a way of archiving 
>> web articles to read later. I am mostly just copying the html directly into 
>> a tiddler, or using tiddlyclip.
>>
>> I usually add highlights to articles as I read them in Evernote, is there 
>> any convenient way to do this in TiddlyWiki?
>>
>> Thanks for your help.
>>
>

-- 
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/e943466b-a13b-4d13-99dd-d7268918f6b9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Query -- Are we neglecting "Restore" from default "Download Saves"?

2019-07-03 Thread @TiddlyTweeter
Ciao Mark

Its looking good! Your work--well, I could not have done it!! Molto grazie.

GG won't at the moment let me send attachments. But you should be able to 
download it from here ... 

https://drive.google.com/file/d/1Lg64p8W37ly0YE9tUfbHcnzoQVWpdUdf/view?usp=sharing

 I hope it works for you. I don't see any issues but it was a lot to bring 
it together. 

I integrated you changes with my changes, I hope ok. But please let me know 
if I messed up. My changes were ...

-- *Created a  # TEST  section that I hope will make your needed 
experiments easier*

*-- Shifted your ini processing library into the sub-dir  .\lib * (I fear 
the main directory will get cluttered if we don't)

*-- Added a menu item for  R - Run Tests  and an internal setting for 
switching it on and off *(its "on" in what I'll send)

-- Put  # RUN INFO  section into a seperate function to make it more 
re-usable (now it runs first every time you hit  "R - Run Tests" ) . Added 
the Timer settings.

-- Added ability to turn off menu option  T - TiddlyWiki Folder  listing (I 
think it could be confusing if you don't keep all wiki under one folder) in 
internal settings. ??But still not sure about it??

-- Replaced all instances of  "$ninelives"  with  $appAndVer 

-- Re-arranged  # INTERNAL SETTINGS  and removed dead-wood

-- Added command-line parameter  -ini  so you in can (in theory) have more 
than one instance of the script doing different things at the same time 
(this is in testing)

-- Added file type  .tw  to the two informational directory listings (wikis 
& downloads) -- largely because of TonyM's promotion of that idea and 
thoughts of possible interworking with his approach.

Quick note on files ...
 
Mark S. wrote:

> So eventually, if we settle on "polly", for example, there might be 5 or 
> more files
>
> polly.txt (for usage)
> polly-vsn-initials.ps1 (the script)
> polly.ini (the settings)
> polly.bat (to launch with proper privileges)
> Get-IniContent.ps1 (library for parsing ini file)
>

Just FYI, I currently have, in addition ...

polly-menu.bat
polly-once.bat
pollly-auto.bat


A limitation in Powershell is "switch" (used for the "menu") doesn't have a 
timeout like "choice" in bat files have. 
So you can't run the script in "menu" mode and expect it to switch to 
"auto" mode after a timeout. You have to explicitly select an option.
I'm sure there is a way to do it but its beyond me at the moment. The 
"mode" bats get around that. 

Menu mode is necessary for setup (its the default, same as "polly.bat"). 
After that you can just use "auto" to initiate the file monitor without  
any menu.

Many thanks!

Best wishes
Josiah

-- 
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/1f7101a5-a939-4687-ac96-227fc5bdeff3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Querying search results as JSON from WebServer API

2019-07-03 Thread Jeremy Ruston
Hi bimlas

There is indeed no efficient way to do filter tiddlers via the HTTP API. I’ve 
added a ticket here:

https://github.com/Jermolene/TiddlyWiki5/issues/4054

Best wishes

Jeremy

> On 3 Jul 2019, at 13:19, bimlas  wrote:
> 
> A possible solution: I can ask all the tiddlers and filter them myself. BTW 
> it would be better if there would be a filter function in the API, for 
> example, I would not have to download a 100 MB wiki if I'm just curious about 
> 10 tiddlers.
> 
> https://tiddlywiki.com/#WebServer%20API%3A%20Get%20All%20Tiddlers 
> 
> 
> 2019. július 3., szerda 13:00:54 UTC+2 időpontban bimlas a következőt írta:
> Note: TiddlyWiki itself supports this, but I couldn't find a way to use 
> filters in the API. 
> 
> https://tiddlywiki.com/#:[search[webserver]]%20-[[$:/config/OriginalTiddlerPaths]]
>  
> 
> 
> See https://tiddlywiki.com/#PermaLinks  
> -> Story Permalinks
> 
> 2019. július 3., szerda 12:42:50 UTC+2 időpontban bimlas a következőt írta:
> Dear all,
> 
> I would like to get the results of a filter in JSON form from WebServer 
> (https://tiddlywiki.com/#WebServer%20API 
> ). Is this possible?
> 
> -- 
> 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/93be1a01-c8f3-477e-8b3c-05587abff41c%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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/69E32A97-3D69-4628-B29C-42C4FB4EF502%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: TW5: javascript macros

2019-07-03 Thread rooster91an
Hi BurningTreeC

you are right. I had to restart my tiddlywiki nodejs server. Didn't know 
that. 
Thanks a lot!

Oliver



Am Mittwoch, 3. Juli 2019 12:31:09 UTC+2 schrieb BurningTreeC:
>
> Hi, I've tried your example and it works for me on a recent tiddlywiki
>
> Maybe you just forgot to save and reload?
>
>
> Hello everybody!
>>
>> I'm stuck in a basic and probably easy thing: I cannot get any javascript 
>> macro to work in my tiddlywiki. My wiki is a 5.1.19 version running on 
>> nodejs. 
>>
>> For an example let's take this makro from TW5 Magick (
>> http://tw5magick.tiddlyspot.com/):
>>
>> ===
>> /*\
>> title: $:/macros/skeeve/mysamplemacro.js
>> type: application/javascript
>> module-type: macro
>>
>> <>
>>
>> Example:
>> <>
>> <>
>> <>
>>
>> \*/
>> (function(){
>>
>> /*jslint node: true, browser: true */
>> /*global $tw: false */
>> "use strict";
>>
>> /*
>> Information about this macro
>> This is the mysamplemacro of Tiddly Wiki 5 written in JavaScript 
>> */
>>
>> exports.name = "mysamplemacro";
>>
>> exports.params = [
>> { name: "character" },
>> { name: "address" }
>> ];
>>
>> /*
>> Run the macro
>> */
>> exports.run = function(character, address) {
>> if( !character) character = "Bugs Bunny";
>> if( !address) address = "Rabbit Hole Hill";
>> var output ="Hi, I'm " + character + " and I live in " + address;
>> return output;
>> };
>>
>> })();
>> 
>>
>> This is quite simple and it works perfect on TW5 Magicks Tiddlywiki. I 
>> imported this above tiddler to my wiki and the field definitions came with 
>> it: 'Type: application/javascript' and 'module-type: macro'. 
>>
>> TW5 Magick, the source of this example, runs on an outdated 5.0.7-beta. 
>> To access the macro a simple <> does it there.
>>  
>>
>> On my 5.1.19: nope. 
>>
>> At tiddlywiki.com I found the \define pragma for standard macros. I 
>> found https://tiddlywiki.com/dev/index.html#JavaScript%20Macros, which 
>> explains the basics of javascript macros. I was reading google groups for 
>> hours. But I didn't find out how to bring this together to a working 
>> solution in a current version of tiddlywiki.
>>
>> Could someone please give me an example how to access this macro?
>>
>> Thank 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/d3f9cad3-1004-4106-993f-64943353cdc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Image visability and user-friendliness

2019-07-03 Thread TonyM
Kelli

I am confident you can do what you want with tiddlywiki and if you scale it up 
and start to hit performace issues there are plenty of tips and tricks like 
external images, html etc.. To build quite a large resource. Fortunaly with 
tiddlywiki you can benefit from website technologies yet use your own disk, and 
it is easy to import and export, move to a server etc... So you will be future 
proofed.

Not with standing the above I suggest some forthought on how you organise your 
information and look at multiple wikis in each major area. Knowledge and 
information management is quite a complex field but with the tiddlywiki 
platform you have more power and choices than anything else I have used. 

Remember with tw files or folders another piece of information is only a html 
link or drag and drop away. I have wikis that link to wikis and bundles of 
tiddlers for tools I want in more than one tiddler. Being organised is a good 
start but not essential.

Sure tiddlywiki is an investment in time but it continues to return more all 
the time to me, and the community is great.

I have being using the classic and tw5 versions for almost 10 years and just 
build what I need when I need it.

Regards
Tony

-- 
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/17dff45a-e8a1-447a-a7b0-07cd1195fada%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Is there any way to easily highlight the text of html articles in tiddlywiki?

2019-07-03 Thread kat
I am trying to use TiddlyWiki to replace Evernote as a way of archiving web 
articles to read later. I am mostly just copying the html directly into a 
tiddler, or using tiddlyclip.

I usually add highlights to articles as I read them in Evernote, is there 
any convenient way to do this in TiddlyWiki?

Thanks for your help.

-- 
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/5570ef30-1ee7-400c-9450-3c3a5f87c001%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Presenting: AliasTids - one tiddler, many titles

2019-07-03 Thread Ste Wilson
Only tangentially related but the tiddlymap plugin creates a unique id field 
for each toddler... 

-- 
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/d9495a3d-be99-4d60-a721-d98015f922d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Any good way to see if one version is higher than another?

2019-07-03 Thread Jeremy Ruston
Hi Mat

> On 2 Jul 2019, at 20:06, Mat  wrote:
> 
> But I'm thinking that the core has a built in version comparison mechanism 
> used in import. Is it possible to tap into this perhaps?

The core does indeed have a function to compare “major.minor.revision” format 
version numbers:

https://github.com/Jermolene/TiddlyWiki5/blob/master/boot/boot.js#L411-L449 


So, yes, we could expose it as a filter operator. Perhaps it should be done as 
part of a broader effort to add comparison operators.

Best wishes

Jeremy

-- 
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/22856A4C-EF0C-4994-BA53-B850EDD4C0E7%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Presenting: AliasTids - one tiddler, many titles

2019-07-03 Thread Ste Wilson
And more on track skeeves has the following for alias. 
http://tw5magick.tiddlyspot.com/

\define find_original()
<$list 
filter="[field:alias/\|$(the_alias)$\|/(i)sort[title]limit[1]]"><$link>{{$(the_alias)$||unwikified}}
\end

<$set name="the_alias" value={{!!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/9601e6e5-6204-40d1-81cc-6187485bdd55%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] SelectWidget does actions before selection is set...?

2019-07-03 Thread Mohammad
Thanks Jeremy!
I will make some experiments and will return with results.

Cheers
Mohammad

On Wednesday, July 3, 2019 at 9:56:09 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
>  Does this mechanism lets to switch two values!
>
>
> I guess you could indeed use the outer variable to give access to the 
> previous value. I’m not sure that it would be the clearest way to express 
> what’s going on, but it’s an interesting idea.
>
> Best wishes
>
> Jeremy.
>
> Temp=A
> A=B
> B=Temp
> If we select B  from select widget and set temp outside select widget?
>
> --Mohammad
>
> On Tuesday, July 2, 2019 at 7:41:56 PM UTC+4:30, Jeremy Ruston wrote:
>>
>> Hi @twMat
>>
>> I can confirm that the action string is in fact executed after the target 
>> tiddler has been set. The problem is subtler: any variables setup outside 
>> of the action string will not be updated to reflect the new value of the 
>> target tiddler. So you need to make sure you directly compute anything that 
>> depends on that tiddler.
>>
>> Best wishes
>>
>> Jeremy
>>
>> On 2 Jul 2019, at 16:03, Mat  wrote:
>>
>> The SelectWidget  has a 
>> parameter named "tiddler" where the selected title is stored.
>>
>> I want to perform an action to the selected item, so I'm using the 
>> SelectWidget *action* attribute.
>>
>> However, when selecting a title in the list it seems the actions are 
>> performed *before* the title is added to the state tiddler.
>>
>> How can the actions be made to affect the selected title?
>>
>> (Currently, the first time the SelectWidget is used, it triggers an 
>> action without anything being set, as if it was a separate action widget 
>> button. And selecting a second title triggers the action to be performed on 
>> the *first* selection 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 tiddl...@googlegroups.com.
>> To post to this group, send email to tiddl...@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/94e81452-52fc-41ec-a022-ecd973e5829d%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
> -- 
> 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 post to this group, send email to tiddl...@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/c35746e1-b914-4162-b610-679692161491%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/4125aaca-dc17-40ac-868a-a68e4b548fca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Behavior of svg internal links

2019-07-03 Thread Jeremy Ruston
Hi A Gloom

Just a thought, but do things work any better when you use Control Panel 
settings to switch "Navigation Address Bar” to "Include the target tiddler”? 
I’d expect that subsequent internal navigation would then keep the URL up to 
date.

Best wishes

Jeremy

> On 3 Jul 2019, at 01:31, A Gloom  wrote:
> 
> CORRECTIONS:
> permaview changed to permalink
> 
> attached tid also corrected-- formatting alao fixed
> 
> CORRECTED TEXT:
> 
> An observation on behavior of links to tiddlers that are embedded into svgs 
> (will seem out of context till I post about svg overlays for tiddler images-- 
> still composing that while I play mad coder with other experiments << >>)
> I use svg's (for map & diagrams) with links to tiddlers embedded into the svg 
> code such as
> 
>  (Deprecated)
> 
> 
> -- normally, full or shortened standard urls are used but "#" allows you ro 
> target individual tiddlers inside the wiki
> 
> that "#tiddler title"  may cue you into what will result-- a permalink link 
> in the browser address bar.
> 
> 1- the permalink url in the browser address bar will change with each 
> different svg embedded link
> 2- if you close the tiddler that gets opened, the embedded svg link will not 
> open it again while the browser address bar contains its permalink url, 
> making it look like that embedded link doesn't work any longer
> 3- if you refresh the wiki without noticing the permalink url and clearing 
> it, you will be left wondering why an unexpected tiddler displays and not 
> your default start up 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/896c7ef4-71ad-4356-86d9-00feb74d3baf%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .
> 

-- 
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/9D7F63F4-FF8C-4178-8038-538467F84608%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Tiddledrive on Chromebook

2019-07-03 Thread Ovy Ortega
Somehow I don't think this is working like it should for me. I am using the 
latest chrome on a samsung chromebook and using the tiddledrive offered in 
extensions. 

When I save my TW it always brings up the file save window, I thought 
tiddledrive automatically saved it to your Gdrive. Am I supposed to be 
getting that file save window?

Also, the address of my TW is something in the media folder (
file:///media/fuse/drivefs-2eb142dca45fb014a0bee36594a6/root/Omnibus.html). 
For a bit it was saving automatically without a window, but I never got 
that instance back and have no idea where that is. 

Any help? I hope more information is not needed. 

O

-- 
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/4057ff38-fcb2-4999-bdd3-f9ec2d7d4c31%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Presenting: AliasTids - one tiddler, many titles

2019-07-03 Thread PMario
On Wednesday, July 3, 2019 at 1:47:26 AM UTC+2, Mat wrote:
>
> PMario wrote:
>>
>> Accessing an alias name needs to iterate over every tiddler in the store 
>> and have a look at the aliases field, if the alias is there. 
>> Worst case: The last tiddler contains the wanted alias. :/
>> Best case: The first tiddler contains the alias. ... In average that's 
>> slower as directly accessing a title. 
>>
>
> Don't all tiddlers still have to be searched even if you hit that best 
> case? Or how do you "cut" a filter search? My impression is that every 
> filter is run "in full".
>

Uups. you are right. If 2 aliases contain the same value. Both of them are 
shown. .. Worst case all the time :/ ... That's why indexing should be able 
to help us here. ... But only tests will show :)
 

>  
>
>> plugins can use a caching mechanism. So only the first lookup will be 
>> slower. 
>>
>
> Could this theoretically be "brought to the front" so users could state 
> "chache this"... maybe even as part of Jermys new "kill the magic black 
> boxes" ambition?
>

Not really. ... The new "tag" and "field" indexes, are created 
automatically from the core. There is some javascript involved. I don't 
think we can make those options "user facing", since you need deep 
knowledge of the internal "store structure". And you'll probably always 
need specialized code. 

-m


-- 
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/ee75fe6c-0ea0-42b3-8a98-8d80f2ff0d76%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Image visability and user-friendliness

2019-07-03 Thread PMario
Hi Kelli, 

Welcome to the club! 

The easiest way is, to store your wiki.html file in a directory and your 
images in an eg: \images subfolder. 

If you want to use them in TW just 

 - create a new tiddler. eg: test.jpg
 - create a field named: _canonical_uri
- with the value: .\images\test.jpg
 - set the type field to: image/jpeg
 - save - done

Images stored in this way can accessed directly from the browser, without 
any server, as long as the file is accessed from a local PC. 

have fun!
mario

PS: We should definitely create a "_canonical" .. drop area for external 
files, for the lazy folk, like me ;)


-- 
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/5d9d6835-9472-4ae9-870d-c992b2b58e20%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] SelectWidget does actions before selection is set...?

2019-07-03 Thread Jeremy Ruston
Hi Mohammad

>  Does this mechanism lets to switch two values!

I guess you could indeed use the outer variable to give access to the previous 
value. I’m not sure that it would be the clearest way to express what’s going 
on, but it’s an interesting idea.

Best wishes

Jeremy.

> Temp=A
> A=B
> B=Temp
> If we select B  from select widget and set temp outside select widget?
> 
> --Mohammad
> 
> On Tuesday, July 2, 2019 at 7:41:56 PM UTC+4:30, Jeremy Ruston wrote:
> Hi @twMat
> 
> I can confirm that the action string is in fact executed after the target 
> tiddler has been set. The problem is subtler: any variables setup outside of 
> the action string will not be updated to reflect the new value of the target 
> tiddler. So you need to make sure you directly compute anything that depends 
> on that tiddler.
> 
> Best wishes
> 
> Jeremy
> 
>> On 2 Jul 2019, at 16:03, Mat > wrote:
>> 
>> The SelectWidget  has a 
>> parameter named "tiddler" where the selected title is stored.
>> 
>> I want to perform an action to the selected item, so I'm using the 
>> SelectWidget action attribute.
>> 
>> However, when selecting a title in the list it seems the actions are 
>> performed before the title is added to the state tiddler.
>> 
>> How can the actions be made to affect the selected title?
>> 
>> (Currently, the first time the SelectWidget is used, it triggers an action 
>> without anything being set, as if it was a separate action widget button. 
>> And selecting a second title triggers the action to be performed on the 
>> first selection 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 tiddl...@googlegroups.com <>.
>> To post to this group, send email to tiddl...@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/94e81452-52fc-41ec-a022-ecd973e5829d%40googlegroups.com
>>  
>> .
>> For more options, visit https://groups.google.com/d/optout 
>> .
> 
> 
> -- 
> 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/c35746e1-b914-4162-b610-679692161491%40googlegroups.com
>  
> .
> For more options, visit https://groups.google.com/d/optout 
> .

-- 
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/8FDC6549-4C4B-49EA-928C-E5741DE48339%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Re: Any good way to see if one version is higher than another?

2019-07-03 Thread Mat
Jeremy Ruston wrote:
>
> So, yes, we could expose it as a filter operator. Perhaps it should be 
> done as part of a broader effort to add comparison operators.
>

That, including comparison ops, would be most excellent! 

Should I put up an issue?

<:-)

-- 
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/6800b6e2-123b-4302-a59f-a89579951f5c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Presenting: AliasTids - one tiddler, many titles

2019-07-03 Thread Mat

>
> And more on track skeeves has the following for alias. 
> http://tw5magick.tiddlyspot.com/
>
> \define find_original()
> <$list 
> filter="[field:alias/\|$(the_alias)$\|/(i)sort[title]limit[1]]"><$link>{{$(the_alias)$||unwikified}}
> \end
>
> <$set name="the_alias" value={{!!title}}><>
>

I'm guessing you're talking to me.

Is that a regexp or what's with the escapes? 
If the point is to get all tids that have a certain value in their alias 
field, then I think the contains 
 operator should 
probably be used which I believe was added after skeeve made that code.

<:-)

-- 
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/0a72f959-dbab-43dd-a029-b7942e2a398d%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: Image visability and user-friendliness

2019-07-03 Thread 'Mark S.' via TiddlyWiki
You omitted that you also have to save an image file to .\images and copy 
the name.

It's a lot of steps, especially compared with other products like Evernote. 
Dragging and dropping the images, would be the most straight-forward 
approach, and, if I understand correctly, should be feasible with the 
changes coming in 5.1.20. You could even use a TW on node to collect the 
data, and then use Bob or the tools in TW to extract and externalize the 
data when you have more time. But of course, you would have to be running 
node/Bob at least once in awhile.

The problem with external files is that it becomes messy the minute you 
want to organize anything. For instance, if you want to move all of 2019's 
files to images/2019, you'll have to find some way to find the 
corresponding tiddlers and then rename the _canonical_uri contents. Another 
problem with the _canonical_uri approach is that the path can not be easily 
redirected. So, for instance, you might want \images on your desktop 
machine, but a path that leads to a google drive folder on a mobile device. 
The workaround is to present all your external images through a macro, 
where the base path can be changed as needed. But wouldn't it be great if a 
base-path were already built in?



On Wednesday, July 3, 2019 at 12:37:57 PM UTC-7, PMario wrote:
>
> Hi Kelli, 
>
> Welcome to the club! 
>
> The easiest way is, to store your wiki.html file in a directory and your 
> images in an eg: \images subfolder. 
>
> If you want to use them in TW just 
>
>  - create a new tiddler. eg: test.jpg
>  - create a field named: _canonical_uri
> - with the value: .\images\test.jpg
>  - set the type field to: image/jpeg
>  - save - done
>
> Images stored in this way can accessed directly from the browser, without 
> any server, as long as the file is accessed from a local PC. 
>
> have fun!
> mario
>
> PS: We should definitely create a "_canonical" .. drop area for external 
> files, for the lazy folk, like me ;)
>
>
>

-- 
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/9769dfe6-0554-4efc-a86c-b6ccece531f5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Manipulating lists with select multiple

2019-07-03 Thread TonyM
Folks,

I am building a generic method to select multiple items (in this case 
people) from one large list, and add/or remove them from a list field. 
I am not sure however to build the button that moves members between lists. 
Any pointers would be helpful.

It should be simple, but at this time my *head is hurting.*


I have attached and image to show what I mean.

   - The people in the *first column* are from the available people 
   (excluding those already in the field *office-consultants-list* ,
   selecting them stores them in a field *temp-select-users*
   - The people in the *second column* are those selected in the First 
   column in field *temp-select-users*
   - The people in the *third column* are those already selected in the 
   field 
*office-consultants-list *and if selected are stored in the field 
   *temp-remove-users*
   
*I need help creating buttons to*

   - Append the people in *temp-select-users* to the 
   *office-consultants-list* field
   - Remove the people in *temp-remove-users* from the 
   *office-consultants-list* field

Of course I want to add and remove from the current 
*office-consultants-list* field, not replace it.

I should be able to return a usable macro

Thanks in advance
Tony

-- 
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/52f4599c-0c9b-4091-be90-1c6d7b59c1a9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Is there any way to easily highlight the text of html articles in tiddlywiki?

2019-07-03 Thread TonyM
Kat,

A recent discussion had this idea and a solution for images and sketching 
over. But anything could be designed.

You may find describing the feature you want, rather than assuming people 
know what One Note Highlighting is. The fact is to my understanding that 
highlighting in one note is in edit mode, you still have to edit the [note] 
and then scroll down to the point in the article and the visual editor Mark 
pointed to allows this WISYWIG editing. It uses a ckeditor and needs some 
locally installed support software, from memory.

In tiddlywikis (text) edit mode you can highlight text and press a Editor 
Tool bar button to apply highlighting, and you can use preview mode to have 
the edit window and the preview window open at one time. Im am not sure if 
this is default or a plugin, if you are interested I will look for it.

Your request has given me an idea that a review mode would be nice where 
you read Tiddlers in view template and can only apply simple highlights and 
comments to the underlying tiddler. I use FoxIt reader for PDF annotation 
and could see value designing something similar, although there are 
technical challenges.

Regards
Tony


On Thursday, July 4, 2019 at 1:21:36 AM UTC+10, kat wrote:
>
> I had looked at that but unfortunately it doesn't really help me. I still 
> have to edit the tiddler and then scroll down to the point in the article I 
> was at everytime I want to make a highlight. 
>
> Ideally I need to be able to just select/highlight the text directly as I 
> am reading.
>
> On Wednesday, July 3, 2019 at 4:16:33 PM UTC+1, Mark S. wrote:
>>
>> I believe you can use the visual editor: 
>> http://bjtools.tiddlyspot.com/#VisualEditor
>>
>> to edit HTML.
>>
>>
>>
>> On Wednesday, July 3, 2019 at 7:53:21 AM UTC-7, kat wrote:
>>>
>>> I am trying to use TiddlyWiki to replace Evernote as a way of archiving 
>>> web articles to read later. I am mostly just copying the html directly into 
>>> a tiddler, or using tiddlyclip.
>>>
>>> I usually add highlights to articles as I read them in Evernote, is 
>>> there any convenient way to do this in TiddlyWiki?
>>>
>>> Thanks for your help.
>>>
>>

-- 
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/518ab0c4-7cc7-49ce-a7e9-1a0598339a02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Image visability and user-friendliness

2019-07-03 Thread Jed Carty
If you are using everything locally and you are managing a lot of wikis 
than I suggest you try out Bob. I made it to manage a lot of wikis. Also it 
can help a lot with managing images, there is a plugin for it that saves 
the images externally and creates a _canonical_uri tiddler for it 
automatically on import.

https://github.com/OokTech/TW5-BobEXE/releases
https://github.com/OokTech/TW5-ServerImages

-- 
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/b62b7a37-31dd-40e4-bafe-bb5d69b5e81e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Image visability and user-friendliness

2019-07-03 Thread TonyM
Mark,

I had considered in the past allowing images to be imported into tiddlers 
but providing a mechanism to export them to \images leaving behind the 
_canonical_uri contents, if done with a batch process even easier. On a 
node server it may be more complex.

Regards
Tony

On Thursday, July 4, 2019 at 6:04:40 AM UTC+10, Mark S. wrote:
>
> You omitted that you also have to save an image file to .\images and copy 
> the name.
>
> It's a lot of steps, especially compared with other products like 
> Evernote. Dragging and dropping the images, would be the most 
> straight-forward approach, and, if I understand correctly, should be 
> feasible with the changes coming in 5.1.20. You could even use a TW on node 
> to collect the data, and then use Bob or the tools in TW to extract and 
> externalize the data when you have more time. But of course, you would have 
> to be running node/Bob at least once in awhile.
>
> The problem with external files is that it becomes messy the minute you 
> want to organize anything. For instance, if you want to move all of 2019's 
> files to images/2019, you'll have to find some way to find the 
> corresponding tiddlers and then rename the _canonical_uri contents. Another 
> problem with the _canonical_uri approach is that the path can not be easily 
> redirected. So, for instance, you might want \images on your desktop 
> machine, but a path that leads to a google drive folder on a mobile device. 
> The workaround is to present all your external images through a macro, 
> where the base path can be changed as needed. But wouldn't it be great if a 
> base-path were already built in?
>
>
>
> On Wednesday, July 3, 2019 at 12:37:57 PM UTC-7, PMario wrote:
>>
>> Hi Kelli, 
>>
>> Welcome to the club! 
>>
>> The easiest way is, to store your wiki.html file in a directory and your 
>> images in an eg: \images subfolder. 
>>
>> If you want to use them in TW just 
>>
>>  - create a new tiddler. eg: test.jpg
>>  - create a field named: _canonical_uri
>> - with the value: .\images\test.jpg
>>  - set the type field to: image/jpeg
>>  - save - done
>>
>> Images stored in this way can accessed directly from the browser, without 
>> any server, as long as the file is accessed from a local PC. 
>>
>> have fun!
>> mario
>>
>> PS: We should definitely create a "_canonical" .. drop area for external 
>> files, for the lazy folk, like me ;)
>>
>>
>>

-- 
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/29994157-f258-465d-8a37-9e52e6ccbd35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread TonyM
Mat,

The problem is I want to

   1. add from a tiddler containing the list to a field
   2. remove from a tiddler containing the list from a field

Eg;

   1. $:/temp/select/add
   2. $:/temp/select/remove
   3. list-field

By late I assume you mean time of day, it being different here and all.

Regards
Tony



On Thursday, July 4, 2019 at 10:31:13 AM UTC+10, Mat wrote:
>
> It's a bit too late for me to read you post very carefully but if I 
> understand you right you need help with the moving of items from one list 
> to another. Maybe this helps:
>
> In a tiddler, have a field like so
>
> a : one two three
>
> and in editor preview mode do
>
> <$button>
> <$action-listops $field=a $filter="[enlist{!!a}] -two"/>
> <$action-listops $field="b" $subfilter="two"/>
> >>
> 
>
>
> <:-)
>

-- 
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/0e9af4ca-add7-4c8e-a986-08100b5ecf72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread 'Mark S.' via TiddlyWiki
Yes, the subfilter works differently than a plain filter, because the 
filter is being applied as though the original title list preceded it.

On Wednesday, July 3, 2019 at 7:32:41 PM UTC-7, TonyM wrote:
>
> Mark/Mat,
>
> Do I take it then that
>
> $subfilter="[list[!!temp-select-users]]" adds temp-select-users to the list
> $subfilter="-[list[!!temp-select-users]]" removes temp-select-users to the 
> list
>
> All the examples give literals with a title, +title -title
>
> This use of the filter format in subfilter confuses me, because 
> filter="-[list[!!temp-select-users]]" would result in nothing in a normal 
> filter.
>
> Regards
> Tony
>
>
> On Thursday, July 4, 2019 at 11:37:36 AM UTC+10, Mark S. wrote:
>>
>> Something like Mat had, but since you have an actual list field, and not 
>> a text field, perhaps:
>>
>> <$button>Move right
>> <$action-listops $field="office-consultants-list" 
>> $subfilter="[list[!!temp-select-users]]" />
>> <$action-listops $field="temp-select-users" $filter="[[]]"/>
>> 
>>
>> <$button>Move left
>> <$action-listops $field="temp-select-users" 
>> $subfilter="[list[!!office-consultants-list]]" />
>> <$action-listops $field="office-consultants-list" $filter="[[]]"/>
>> 
>>
>>
>> On Wednesday, July 3, 2019 at 6:00:47 PM UTC-7, TonyM wrote:
>>>
>>> Mat,
>>>
>>> The problem is I want to
>>>
>>>1. add from a tiddler containing the list to a field
>>>2. remove from a tiddler containing the list from a field
>>>
>>> Eg;
>>>
>>>1. $:/temp/select/add
>>>2. $:/temp/select/remove
>>>3. list-field
>>>
>>> By late I assume you mean time of day, it being different here and all.
>>>
>>> Regards
>>> Tony
>>>
>>>
>>>
>>> On Thursday, July 4, 2019 at 10:31:13 AM UTC+10, Mat wrote:

 It's a bit too late for me to read you post very carefully but if I 
 understand you right you need help with the moving of items from one list 
 to another. Maybe this helps:

 In a tiddler, have a field like so

 a : one two three

 and in editor preview mode do

 <$button>
 <$action-listops $field=a $filter="[enlist{!!a}] -two"/>
 <$action-listops $field="b" $subfilter="two"/>
 >>
 


 <:-)

>>>

-- 
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/ba1a9a94-72fc-45f6-aded-f5ed9fceaa66%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread Mat
It's a bit too late for me to read you post very carefully but if I 
understand you right you need help with the moving of items from one list 
to another. Maybe this helps:

In a tiddler, have a field like so

a : one two three

and in editor preview mode do

<$button>
<$action-listops $field=a $filter="[enlist{!!a}] -two"/>
<$action-listops $field="b" $subfilter="two"/>
>>



<:-)

-- 
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/8e302643-eaa2-45f4-8ee6-ee5efa8849f9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread 'Mark S.' via TiddlyWiki
Something like Mat had, but since you have an actual list field, and not a 
text field, perhaps:

<$button>Move right
<$action-listops $field="office-consultants-list" 
$subfilter="[list[!!temp-select-users]]" />
<$action-listops $field="temp-select-users" $filter="[[]]"/>


<$button>Move left
<$action-listops $field="temp-select-users" 
$subfilter="[list[!!office-consultants-list]]" />
<$action-listops $field="office-consultants-list" $filter="[[]]"/>



On Wednesday, July 3, 2019 at 6:00:47 PM UTC-7, TonyM wrote:
>
> Mat,
>
> The problem is I want to
>
>1. add from a tiddler containing the list to a field
>2. remove from a tiddler containing the list from a field
>
> Eg;
>
>1. $:/temp/select/add
>2. $:/temp/select/remove
>3. list-field
>
> By late I assume you mean time of day, it being different here and all.
>
> Regards
> Tony
>
>
>
> On Thursday, July 4, 2019 at 10:31:13 AM UTC+10, Mat wrote:
>>
>> It's a bit too late for me to read you post very carefully but if I 
>> understand you right you need help with the moving of items from one list 
>> to another. Maybe this helps:
>>
>> In a tiddler, have a field like so
>>
>> a : one two three
>>
>> and in editor preview mode do
>>
>> <$button>
>> <$action-listops $field=a $filter="[enlist{!!a}] -two"/>
>> <$action-listops $field="b" $subfilter="two"/>
>> >>
>> 
>>
>>
>> <:-)
>>
>

-- 
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/1ddbb532-af4d-43d1-8497-91e68bca62de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Manipulating lists with select multiple

2019-07-03 Thread TonyM
Mark/Mat,

Do I take it then that

$subfilter="[list[!!temp-select-users]]" adds temp-select-users to the list
$subfilter="-[list[!!temp-select-users]]" removes temp-select-users to the 
list

All the examples give literals with a title, +title -title

This use of the filter format in subfilter confuses me, because 
filter="-[list[!!temp-select-users]]" would result in nothing in a normal 
filter.

Regards
Tony


On Thursday, July 4, 2019 at 11:37:36 AM UTC+10, Mark S. wrote:
>
> Something like Mat had, but since you have an actual list field, and not a 
> text field, perhaps:
>
> <$button>Move right
> <$action-listops $field="office-consultants-list" 
> $subfilter="[list[!!temp-select-users]]" />
> <$action-listops $field="temp-select-users" $filter="[[]]"/>
> 
>
> <$button>Move left
> <$action-listops $field="temp-select-users" 
> $subfilter="[list[!!office-consultants-list]]" />
> <$action-listops $field="office-consultants-list" $filter="[[]]"/>
> 
>
>
> On Wednesday, July 3, 2019 at 6:00:47 PM UTC-7, TonyM wrote:
>>
>> Mat,
>>
>> The problem is I want to
>>
>>1. add from a tiddler containing the list to a field
>>2. remove from a tiddler containing the list from a field
>>
>> Eg;
>>
>>1. $:/temp/select/add
>>2. $:/temp/select/remove
>>3. list-field
>>
>> By late I assume you mean time of day, it being different here and all.
>>
>> Regards
>> Tony
>>
>>
>>
>> On Thursday, July 4, 2019 at 10:31:13 AM UTC+10, Mat wrote:
>>>
>>> It's a bit too late for me to read you post very carefully but if I 
>>> understand you right you need help with the moving of items from one list 
>>> to another. Maybe this helps:
>>>
>>> In a tiddler, have a field like so
>>>
>>> a : one two three
>>>
>>> and in editor preview mode do
>>>
>>> <$button>
>>> <$action-listops $field=a $filter="[enlist{!!a}] -two"/>
>>> <$action-listops $field="b" $subfilter="two"/>
>>> >>
>>> 
>>>
>>>
>>> <:-)
>>>
>>

-- 
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/8b01a6cd-33b4-45f9-a4e3-fddbd227012d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Some more information on running Node.js server

2019-07-03 Thread Scott Kingery
I have a few notes here:
https://techlifeweb.com/tw5tribalknowledge.html#node.js


On Wed, Jul 3, 2019 at 9:25 PM passingby 
wrote:

> I installed node.js server following the information on
> https://tiddlywiki.com/#GettingStarted
>
> I tried using a wiki and it works. Now I want to learn a bit more. Where
> can I read more on node.js server commands and functions?
>
> --
> 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/1a58b1d1-30de-4b02-b683-f013d5ff6d87%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGUDtYEuTJ3MM7xgLCh5J32kWZc3Uw5m54L7dHzObNQe-DNgdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] Some more information on running Node.js server

2019-07-03 Thread passingby


On Wednesday, July 3, 2019 at 9:37:29 PM UTC-7, Scott Kingery wrote:
>
> I have a few notes here: 
> https://techlifeweb.com/tw5tribalknowledge.html#node.js
>
>>
>>
Thank you. I ll read up. 

-- 
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/7a7c6137-226d-494b-a7a1-cb37ededeff6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] SelectWidget does actions before selection is set...?

2019-07-03 Thread Mohammad
For those received this post by email!
Please see the original post! It has been edited and two codes have been 
attached!

--Mohammad

On Thursday, July 4, 2019 at 9:22:01 AM UTC+4:30, Mohammad wrote:
>
> Hello Jeremy,
> I made an experiment and share the code here!
> Amazingly your instruction works and let me switch values!
>
> I have attached the example and added to TW-Scripts for future use!
> The is as below
>
> \define switch()
> <$action-setfield $tiddler="exmp66/temp" $value={{exmp66/data!!fa}} />
> <$action-setfield $tiddler="exmp66/data" $field="fa" 
> $value={{exmp66/data!!fb}} />
> <$action-setfield $tiddler="exmp66/data" $field="fb" 
> $value={{exmp66/temp}} />
> \end
>
> <$button actions=<> >Exchange fields value
> 
>
> The above code assume you have exmp66/data tiddler with two fields fa and 
> fb containing different things.
>  
>
> In Part two, I have used a select widget and did the below operation
>
> * A <--- B
> * B < new value
>
> The code is as below
>
> \define switch()
> <$action-setfield $tiddler="myTid" $field="fa" $value={{stateTid}} />
> <$action-setfield $tiddler="myTid" $field="fb" $value="$(Temp)$" />
> \end
>
> <$set name=Temp tiddler="myTid" field="fa">
> Select a value and watch [[myTid]]
>
> <$select tiddler='stateTid'
>  actions=<>
> >
><$list filter='One Two Three Four Five'>
>   <$view field='title'/>
>
> 
> 
>
> A code has been attached to reproduce the result
>
> Cheers
> Mohammad
>
> On Wednesday, July 3, 2019 at 9:56:09 PM UTC+4:30, Jeremy Ruston wrote:
>>
>> Hi Mohammad
>>
>>  Does this mechanism lets to switch two values!
>>
>>
>> I guess you could indeed use the outer variable to give access to the 
>> previous value. I’m not sure that it would be the clearest way to express 
>> what’s going on, but it’s an interesting idea.
>>
>> Best wishes
>>
>> Jeremy.
>>
>> Temp=A
>> A=B
>> B=Temp
>> If we select B  from select widget and set temp outside select widget?
>>
>> --Mohammad
>>
>> On Tuesday, July 2, 2019 at 7:41:56 PM UTC+4:30, Jeremy Ruston wrote:
>>>
>>> Hi @twMat
>>>
>>> I can confirm that the action string is in fact executed after the 
>>> target tiddler has been set. The problem is subtler: any variables setup 
>>> outside of the action string will not be updated to reflect the new value 
>>> of the target tiddler. So you need to make sure you directly compute 
>>> anything that depends on that tiddler.
>>>
>>> Best wishes
>>>
>>> Jeremy
>>>
>>> On 2 Jul 2019, at 16:03, Mat  wrote:
>>>
>>> The SelectWidget  has 
>>> a parameter named "tiddler" where the selected title is stored.
>>>
>>> I want to perform an action to the selected item, so I'm using the 
>>> SelectWidget *action* attribute.
>>>
>>> However, when selecting a title in the list it seems the actions are 
>>> performed *before* the title is added to the state tiddler.
>>>
>>> How can the actions be made to affect the selected title?
>>>
>>> (Currently, the first time the SelectWidget is used, it triggers an 
>>> action without anything being set, as if it was a separate action widget 
>>> button. And selecting a second title triggers the action to be performed on 
>>> the *first* selection 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 tiddl...@googlegroups.com.
>>> To post to this group, send email to tiddl...@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/94e81452-52fc-41ec-a022-ecd973e5829d%40googlegroups.com
>>>  
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>
>> -- 
>> 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 post to this group, send email to tiddl...@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/c35746e1-b914-4162-b610-679692161491%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
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 

[tw5] Some more information on running Node.js server

2019-07-03 Thread passingby
I installed node.js server following the information on 
https://tiddlywiki.com/#GettingStarted 

I tried using a wiki and it works. Now I want to learn a bit more. Where 
can I read more on node.js server commands and functions?

-- 
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/1a58b1d1-30de-4b02-b683-f013d5ff6d87%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [tw5] SelectWidget does actions before selection is set...?

2019-07-03 Thread Mohammad
Hello Jeremy,
I made an experiment and share the code here!
Amazingly your instruction works and let me switch values!

I have attached the example and added to TW-Scripts for future use!
The is as below

\define switch()
<$action-setfield $tiddler="exmp66/temp" $value={{exmp66/data!!fa}} />
<$action-setfield $tiddler="exmp66/data" $field="fa" 
$value={{exmp66/data!!fb}} />
<$action-setfield $tiddler="exmp66/data" $field="fb" $value={{exmp66/temp}} 
/>
\end

<$button actions=<> >Exchange fields value


The above code assume you have exmp66/data tiddler with two fields fa and 
fb containing different things.
 
Cheers
Mohammad

On Wednesday, July 3, 2019 at 9:56:09 PM UTC+4:30, Jeremy Ruston wrote:
>
> Hi Mohammad
>
>  Does this mechanism lets to switch two values!
>
>
> I guess you could indeed use the outer variable to give access to the 
> previous value. I’m not sure that it would be the clearest way to express 
> what’s going on, but it’s an interesting idea.
>
> Best wishes
>
> Jeremy.
>
> Temp=A
> A=B
> B=Temp
> If we select B  from select widget and set temp outside select widget?
>
> --Mohammad
>
> On Tuesday, July 2, 2019 at 7:41:56 PM UTC+4:30, Jeremy Ruston wrote:
>>
>> Hi @twMat
>>
>> I can confirm that the action string is in fact executed after the target 
>> tiddler has been set. The problem is subtler: any variables setup outside 
>> of the action string will not be updated to reflect the new value of the 
>> target tiddler. So you need to make sure you directly compute anything that 
>> depends on that tiddler.
>>
>> Best wishes
>>
>> Jeremy
>>
>> On 2 Jul 2019, at 16:03, Mat  wrote:
>>
>> The SelectWidget  has a 
>> parameter named "tiddler" where the selected title is stored.
>>
>> I want to perform an action to the selected item, so I'm using the 
>> SelectWidget *action* attribute.
>>
>> However, when selecting a title in the list it seems the actions are 
>> performed *before* the title is added to the state tiddler.
>>
>> How can the actions be made to affect the selected title?
>>
>> (Currently, the first time the SelectWidget is used, it triggers an 
>> action without anything being set, as if it was a separate action widget 
>> button. And selecting a second title triggers the action to be performed on 
>> the *first* selection 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 tiddl...@googlegroups.com.
>> To post to this group, send email to tiddl...@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/94e81452-52fc-41ec-a022-ecd973e5829d%40googlegroups.com
>>  
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
> -- 
> 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 post to this group, send email to tiddl...@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/c35746e1-b914-4162-b610-679692161491%40googlegroups.com
>  
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>

-- 
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/12c73543-a9ee-4e4a-b26d-bdb4c68fb391%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


switch-values.json
Description: application/json


[tw5] How can I shrink the spacing between nested horizontal tabs?

2019-07-03 Thread h0p3
How I can shrink the spacing between nested horizontal tabs? I'm thinking 
about moving toward nesting trees of tabs in my sidebar because I like the 
top-down model. I use it to great effect in my desktop environment, and I 
want it in my wiki . Unfortunately, the spacing 
is offputting, and it's not an efficient use of space.

-- 
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/f875182e-aa75-46d3-bfdc-92aa599473ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.