Re: [tw5] Re: [ Streams ] : feedback and issues

2021-04-20 Thread arun babu
Thanks Saq. Both of them works as intended. Now I can play with those codes 
to suit my other use cases. Your help is much appreciated.

Also I have been using Relinks-Titles plug-in for sometime. It has been 
very useful while renaming Stream root tiddler by automatically renaming 
the stream node tiddlers also

Arun.

On Wednesday, April 21, 2021 at 10:48:23 AM UTC+5:30 saq.i...@gmail.com 
wrote:

> @arun I am not familiar with CommandPalette (CP), so this might be a 
> question better asked of the responsible developer or other users of the 
> plugin, i.e. how to trigger action strings with CP.
>
> You could try adding this in a tiddler tagged with $:/tags/ViewTemplate, 
> which should make the button to create the child nodes appear after you 
> have created a new case with CP.
>
> \define myactions()
> <$vars nodeSuffixes="Pathology [[X ray findings]] Treatment"
> root=<>
> >
> <$list filter="[enlist]">
> <$action-setfield 
> $tiddler={{{ [addprefix[/]addprefix] }}} 
> parent=<> 
> text={{{ [addprefix[!!]]}}} 
> stream-type="default" />
> 
> <$set name="new-nodes" 
> filter="[enlistaddprefix[/]addprefix]">
> <$action-listops $tiddler=<> $field="stream-list" 
> $subfilter=<>/>
> 
> 
> \end
>
> <$list filter="[all[current]what[case]!has[stream-list]]">
> <$button actions=<>>
> new case
> 
> 
>
> Also depending on your workflow, the plugin RelinkTitles may be of 
> interest to you: https://flibbles.github.io/tw5-relink/#Plugins%2FTitles
>
> To change the Recent Sidebar to only show the root tiddlers for each node, 
> try editing $:/core/ui/SideBar/Recent and changing the contents to:
>
> <$macrocall $name="timeline" 
> format={{$:/language/RecentChanges/DateFormat}} 
> subfilter="get-stream-root[]"/>
>
> Hope this helps,
>
> Saq
>
> On Tuesday, April 20, 2021 at 11:48:20 PM UTC+2 arunn...@gmail.com wrote:
>
>> Hi Saq,
>>
>> I can understand that you might have got busy with your work. No worries.
>>
>> I had 4 questions.
>>
>> 1. I will be happy if you can help me to make this template. I tried the 
>> code which you gave and its what I want - but how to make the new case 
>> button or the template appear automatically in every new case tiddlers. Or 
>> can you help to incorporate the code given into the command palette command 
>> I created.
>>
>> 2. Renaming the node is fine for me, although it can be quite a work if 
>> there a many child nodes.
>>
>> 3. With the filter option given in the latest beta version, issue with 
>> exporting of a single node tree has been solved.
>>
>> 4. I have modified my recents tiddler to limit number of entries shown. 
>> Still I will be happy if there is a filter to show only the stream root 
>> tiddlers.
>>
>>
>> Thanks,
>> Arun
>> On Monday, April 19, 2021 at 7:07:06 AM UTC+5:30 rika.s...@gmail.com 
>> wrote:
>>
>>> I just made a note to update in ~1 week. Thanks, Saq! Really 
>>> appreciate the time you're spending on this. 
>>>
>>> Best,
>>> Rika Sukenik 
>>>
>>>
>>> On Sat, Apr 17, 2021 at 12:47 AM Saq Imtiaz  wrote:
>>>
 @arun apologies for the very delayed reply, I've had a hectic last 
 couple of months and this message slipped through the cracks. Let me know 
 if these questions are still relevant and if so, we can discuss them 
 further.

 Saq

 -- 
 You received this message because you are subscribed to a topic in the 
 Google Groups "TiddlyWiki" group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/tiddlywiki/1jTwdmq8cgI/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 tiddlywiki+...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/tiddlywiki/80b9ff77-260e-4ea2-94d2-2120f9fe5189n%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a352d7ba-2ac1-44f7-b16c-a2edfb5e1c5cn%40googlegroups.com.


Re: [tw5] Re: [Announcement] "TW Icons" - A large collection of icons for TiddlyWiki

2021-04-20 Thread moros...@gmail.com
@Tones You're welcome!

"Is it safe to use and distribute tiddlywikis using this icons, without 
further attribution?"
I think so, but please check the "Credits" tiddler to see the license type 
for the libraries you're planning to use, to be sure. Some may require 
attribution.

"You may with to add from tiddlywiki 5.1.23 if you add xmlns="
http://www.w3.org/2000/svg"; after the opening svg tag, and set the tiddler 
type to image/svg+xml the svg icons can be used as a $:/favicon.ico "
Thanks for the tip! I didn't know that. I'll add this in the "TW Icons" 
documentation page in the next version.
On Wednesday, April 21, 2021 at 2:49:23 AM UTC+3 TW Tones wrote:

> Morosanuae,
>
> You may with to add from tiddlywiki 5.1.23 if you add xmlns="
> http://www.w3.org/2000/svg"; after the opening svg tag, and set the 
> tiddler type to image/svg+xml the svg icons can be used as a $:/favicon.ico
>
> Tones
>
> On Wednesday, 21 April 2021 at 07:32:25 UTC+10 moros...@gmail.com wrote:
>
>> A new version of *"TW Icons"* is available !!!
>>
>> *v1.7 *(https://morosanuae.github.io/tw-icons). Now with a total of *~44000 
>> icons* *(17 libraries)*. 
>>
>> *Features*: 
>>
>>- *1 new* library added: *"CoreUI Icons"*.
>>
>> For more info, please checkout the "version history". 
>> On Tuesday, April 20, 2021 at 10:13:01 PM UTC+3 moros...@gmail.com wrote:
>>
>>> @Mohammad You're welcome!
>>>
>>> On Tuesday, April 20, 2021 at 4:05:58 PM UTC+3 Mohammad wrote:
>>>

 One the best resources for Tiddlywiki!

 Thank you Morosanuae!


 Best wishes
 Mohammad


 On Tue, Apr 20, 2021 at 5:20 PM moros...@gmail.com  
 wrote:

> A new version of *"TW Icons"* is available !!!
>
> *v1.6 *(https://morosanuae.github.io/tw-icons). Now with a total of 
> *~43000 
> icons* *(16 libraries)*. 
>
> *Features*: 
>
>- *1 new* library added: *"Phosphor Icons"*.
>- Added a loading (splash) screen — a lighter version of the 
>original TiddlyWiki splash screen . *(requested by TiddlyTweeter)*.
>
> For more info, please checkout the "version history". 
> On Saturday, April 17, 2021 at 1:38:12 PM UTC+3 TiddlyTweeter wrote:
>
>> moros...@gmail.com wrote:
>>
>> ... I didn't design the app for the mobile devices, so it's not very 
>> adaptive also.
>>
>> Right. But actually in Landscape on a smartphone it is actually well 
>> usable. 
>> Layout breaks a bit but otherwise it is perfectly functional ... for 
>> example (on my Android 8 phone) ...
>>
>> [image: Screenshot_20210417-121851.png]
>>
>> Of course, because smart phones are "touch" devices, TW drag-n-drop 
>> is not able to function properly as the OS overrides the browser. 
>> BUT simple export works FINE on a smart phone.
>>
>> Just comments
>> TT
>>
> -- 
>
 You received this message because you are subscribed to the Google 
> Groups "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to tiddlywiki+...@googlegroups.com.
>
 To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/0bc17a19-bb49-40d6-81d5-a7bec41dc49cn%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0a2e9034-7ae0-4858-ba41-4f9cd45c0fbcn%40googlegroups.com.


Re: [tw5] Re: Streams 0.2 preview

2021-04-20 Thread Mohammad Rahmani
Hi Saq,
 Many thanks for the update! I tested and it is considerably faster than
the previous release!
Compatibility with color palettes is great!
The Setting panel is lovely! (While I would like to have official Settings
tab work for all plugins but seems it only available if CodeMirror is
installed! To clear my suggestion, I mean when a plugin has Settings, it
can be appeared under official TW Settings tab See
https://github.com/Jermolene/TiddlyWiki5/issues/5520)


Best wishes
Mohammad


On Tue, Apr 20, 2021 at 8:30 PM Saq Imtiaz  wrote:

> Apologies for the delay with getting Streams 0.2 released, the last few
> months have been hectic.
>
> I've found some time to resolve some of the outstanding issues and hope to
> get a new stable release of 0.2 out next week.
>
> Any testing on this new interim version would be appreciated, just to help
> ensure that I haven't accidentally broken anything:
> https://saqimtiaz.github.io/sq-tw/temp/streams-0.21-preview.html
>
> *Changes since the last version posted:*
>
>- Improved detection and error handling for whether codemirror is
>available
>- Removed the indent/unindent swipe behaviour in favour of triggering
>the context menu
>- Added a plugin priority field so other plugins can
>override/customize Streams tiddlers. Hopefully this means people will stop
>distributing modified version of Streams which are a real headache in terms
>of providing support.
>- Tweaked the CSS for the settings UI to use color palette entries
>where possible
>- Removed the option to double click to exit editing
>- Introduced the filters get-stream-root and get-stream-nodes to make
>it easier to work with Streams tiddlers.
>
> *For anyone including Streams in editions or otherwise distributing the
> plugin:*
>
>- Please do not distribute modified versions of the plugin as this
>leads to my receiving support requests that are impossible to troubleshoot
>or manage.
>- If you need to customize the plugin, first look at the documentation
>to see if there is already a facility for extending or tweaking the plugin
>that you can use. If in doubt, ask or request a hook.
>- Otherwise, instead of modifying Streams please distribute Streams
>with your own plugin that overrides select tiddlers in Streams and
>implements the customization that you need.
>
> Regards,
> Saq
>
>
> --
> 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/5ee2c2ca-65cb-4297-a5c8-d7734e3add16n%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDEFjZE5sUS9%3D3wksuXjzCTu5ff82hHda%3D-eKzvATS6jg%40mail.gmail.com.


[tw5] Re: "Recent" view doesn't show today's changes

2021-04-20 Thread Saq Imtiaz
This is a long shot but check to see if any of your tiddlers have an 
invalid string (i.e. not in the required format) for the modified or 
created fields. There was an issue on tiddlywiki.com a while back where a 
tiddler had NaN for the modified field which was bugging out the timeline 
macro and causing certain tiddlers to not be listed.

On Tuesday, April 20, 2021 at 3:07:15 PM UTC+2 Soren Bjornstad wrote:

> In one of my wikis, I frequently find that the "Recent" tab doesn't show 
> the changes I've made on the current day – the view is stuck at showing the 
> changes that were made on the most recent prior day that there were any 
> changes. Refreshing the page or restarting the server (Node.js method, 
> either hosted through TiddlyServer or directly via tiddlywiki --listen) 
> does not help. Checking the tiddler files in the wiki folder, they have the 
> correct date/time stamp in the *modified* field.
>
> At some point, as I continue changing things and working in the wiki, all 
> of the changes I've made that day often show up, but I haven't been able to 
> come up with a set of steps that consistently makes this happen.
>
> I went looking for any Recent-related shadow tiddlers I might have messed 
> with at some point, but didn't find any.
>
> Has anyone else seen this behavior, or have some idea of where I might 
> start trying to debug 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/b5a7fb04-70ea-46c7-9790-3b6095c34bb6n%40googlegroups.com.


Re: [tw5] Fetching tiddlers from one wiki to another

2021-04-20 Thread Saq Imtiaz
Hi Jan,

I'll reiterate from my first post that this is just a quick and messy POC 
with a very narrow usage window because of the CORS requirement.

Also note that apparently Twederation is supposed to be able to silently 
import content in the background as well, as pointed out by Jeremy above. 
If that works for your intended workflow, it may be a better choice for you 
as it wont impose the same requirement to serve the wiki files with the 
correct CORS headers.

The demo I posted does support using a filter to only import certain 
tiddlers. The other two requirements you mention are feasible though not 
implemented in the demo. I am still at the exploration stage of seeing what 
is possible, and need to work on the project proposal I have in mind which 
involves using TW in an LMS context too. If that goes well I will revisit 
this topic later this year.

Regards,
Saq

On Saturday, April 17, 2021 at 4:09:09 PM UTC+2 Jan wrote:

> Hi Saq,
> thank you very much for this widget! This is a great help, I have looked 
> for something like this for a long time. 
> This is a very important puzzlepiece to use TW as an interactive Learning 
> Management System. 
> For this usecase it is great that it has a silent mode, which makes it mor 
> unobstrusive than the fetch-function of Twederation.
> For the interactity of an LMS I would love three other features:
>
> -Can it handle filters to import only certain tiddlers? So far I could not 
> see how to implement them in the action-widget.
> -It would be great if it could tag them imported tiddlers like "temp" or 
> "imported"
> -It would be very important to have an "Overwrite Filter" determining 
> which tiddlers can be overwritten by the imported tiddlers. (For example al 
> those whose modifier is not the current user).
>
> Best wishes  and nany thanks for this great improvement!
> Jan
>
>
>
>
>
> Am So, 4. Apr, 2021 um 10:49 VORMITTAGS schrieb Saq Imtiaz <
> saq.i...@gmail.com>:
>
> Hi Jeremy,
>
> A little background: I have a couple of ideas in mind for projects to do 
> with education with some of the organizations I work with, for which I am 
> considering TiddlyWiki. One of them would be very similar to the syncing 
> educator and student notebooks project that was based on TiddlyWiki classic 
> over 10 years ago. The other involves providing a sandbox for exploration 
> and developing skills to do with using and potentially creating/customizing 
> digital tools to aid one's own learning. While TiddlyWiki sounds like a 
> good fit, it will also be essential that it is hard for the students to 
> break the tool itself.
>
> Both projects, if they proceed, will entail quite a bit of custom coding 
> to get the user experience just right, so as a first step I wanted to 
> understand what was possible today in terms of browser restrictions and 
> loading content dynamically in TW5. As mentioned in my original post, I 
> realize the use case for this particular prototype is very narrow. However 
> I find that sharing ideas and prototypes is rarely a bad idea as it can 
> often inspire other ideas in the community, so I try my best to do so 
> whenever possible.
>  
>
>> Those restrictions still exist. For example, the XMLHttpRequest approach 
>> described here generally won’t work from a file: URI, which was a major 
>> design goal for the plugin library and Twederation.
>>
>
> That's interesting as I've found it to work without problems to fetch 
> content into a local file wiki as long as the remote content is served with 
> the correct CORS headers (and the request is made without the 
> X-Requested-With header). Or do you mean when the remote content is also 
> accessed via a file: URI ? I have not tested that scenario.
>
> Hosting all the wikis with CORS support is an easy requirement to satisfy 
> for the projects I have in mind.
>  
>
>> It’s definitely time we explored dynamic content loading via 
>> XMLHttpRequest in more detail. The constraints get less onerous as we gain 
>> better HTTP/HTTPS solutions.
>>
>
> Agreed. I quite miss the possibilities offered by the quite rich ecosystem 
> of adaptors that we had in TiddlyWiki Classic and even the sync mechanism, 
> despite all the clunkiness inherent in the design and the later 
> difficulties imposed by greater browser restrictions. 
>  
> Regards,
> Saq
>
> -- 
>
> 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+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/7ea4cca2-c07a-486d-a60c-b59c9838c0bdn%40googlegroups.com
>  
> 
> .
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this gr

Re: [tw5] Re: [ Streams ] : feedback and issues

2021-04-20 Thread Saq Imtiaz
@arun I am not familiar with CommandPalette (CP), so this might be a 
question better asked of the responsible developer or other users of the 
plugin, i.e. how to trigger action strings with CP.

You could try adding this in a tiddler tagged with $:/tags/ViewTemplate, 
which should make the button to create the child nodes appear after you 
have created a new case with CP.

\define myactions()
<$vars nodeSuffixes="Pathology [[X ray findings]] Treatment"
root=<>
>
<$list filter="[enlist]">
<$action-setfield 
$tiddler={{{ [addprefix[/]addprefix] }}} 
parent=<> 
text={{{ [addprefix[!!]]}}} 
stream-type="default" />

<$set name="new-nodes" 
filter="[enlistaddprefix[/]addprefix]">
<$action-listops $tiddler=<> $field="stream-list" 
$subfilter=<>/>


\end

<$list filter="[all[current]what[case]!has[stream-list]]">
<$button actions=<>>
new case



Also depending on your workflow, the plugin RelinkTitles may be of interest 
to you: https://flibbles.github.io/tw5-relink/#Plugins%2FTitles

To change the Recent Sidebar to only show the root tiddlers for each node, 
try editing $:/core/ui/SideBar/Recent and changing the contents to:

<$macrocall $name="timeline" 
format={{$:/language/RecentChanges/DateFormat}} 
subfilter="get-stream-root[]"/>

Hope this helps,

Saq

On Tuesday, April 20, 2021 at 11:48:20 PM UTC+2 arunn...@gmail.com wrote:

> Hi Saq,
>
> I can understand that you might have got busy with your work. No worries.
>
> I had 4 questions.
>
> 1. I will be happy if you can help me to make this template. I tried the 
> code which you gave and its what I want - but how to make the new case 
> button or the template appear automatically in every new case tiddlers. Or 
> can you help to incorporate the code given into the command palette command 
> I created.
>
> 2. Renaming the node is fine for me, although it can be quite a work if 
> there a many child nodes.
>
> 3. With the filter option given in the latest beta version, issue with 
> exporting of a single node tree has been solved.
>
> 4. I have modified my recents tiddler to limit number of entries shown. 
> Still I will be happy if there is a filter to show only the stream root 
> tiddlers.
>
>
> Thanks,
> Arun
> On Monday, April 19, 2021 at 7:07:06 AM UTC+5:30 rika.s...@gmail.com 
> wrote:
>
>> I just made a note to update in ~1 week. Thanks, Saq! Really 
>> appreciate the time you're spending on this. 
>>
>> Best,
>> Rika Sukenik 
>>
>>
>> On Sat, Apr 17, 2021 at 12:47 AM Saq Imtiaz  wrote:
>>
>>> @arun apologies for the very delayed reply, I've had a hectic last 
>>> couple of months and this message slipped through the cracks. Let me know 
>>> if these questions are still relevant and if so, we can discuss them 
>>> further.
>>>
>>> Saq
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "TiddlyWiki" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/tiddlywiki/1jTwdmq8cgI/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> tiddlywiki+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/80b9ff77-260e-4ea2-94d2-2120f9fe5189n%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5393f070-9b6c-4f27-84a3-67aa97ed27bdn%40googlegroups.com.


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

2021-04-20 Thread Charlie Veniot
Just a silly thought I had.

There are certain pages of TiddlyWiki documentation that I often reference 
(in particular: filter operators and widgets).

It just dawned on me that these (the static pages) would be nice to have 
displayed in a sidebar tab for all my TiddlyWiki instances.

[image: Screenshot 2021-04-21 12.20.24 AM - Display 2.png]

-- 
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/4ccb12dc-ae75-4f0e-9508-447810aa9727n%40googlegroups.com.


[tw5] Re: "Recent" view doesn't show today's changes

2021-04-20 Thread Soren Bjornstad
Sorry, I'm not following.

On Tuesday, April 20, 2021 at 8:17:13 PM UTC-5 TW Tones wrote:

> Timestamps updates the modified date in tiddlers from Memory!
>
> On Wednesday, 21 April 2021 at 11:15:48 UTC+10 Soren Bjornstad wrote:
>
>> Good thought, but yes, it is – and as noted, the timestamps are being 
>> updated in the tiddler files.
>>
>> On Tuesday, April 20, 2021 at 7:48:55 PM UTC-5 TW Tones wrote:
>>
>>> Soren,
>>>
>>> Quick check,
>>>
>>> Under sidebar > Tools
>>>
>>> Is timestamps on?
>>>
>>> Tones
>>> On Tuesday, 20 April 2021 at 23:07:15 UTC+10 Soren Bjornstad wrote:
>>>
 In one of my wikis, I frequently find that the "Recent" tab doesn't 
 show the changes I've made on the current day – the view is stuck at 
 showing the changes that were made on the most recent prior day that there 
 were any changes. Refreshing the page or restarting the server (Node.js 
 method, either hosted through TiddlyServer or directly via tiddlywiki 
 --listen) does not help. Checking the tiddler files in the wiki folder, 
 they have the correct date/time stamp in the *modified* field.

 At some point, as I continue changing things and working in the wiki, 
 all of the changes I've made that day often show up, but I haven't been 
 able to come up with a set of steps that consistently makes this happen.

 I went looking for any Recent-related shadow tiddlers I might have 
 messed with at some point, but didn't find any.

 Has anyone else seen this behavior, or have some idea of where I might 
 start trying to debug 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/bb9b720b-9d81-4703-974a-daeaadabef3bn%40googlegroups.com.


[tw5] Re: "Recent" view doesn't show today's changes

2021-04-20 Thread TW Tones
Timestamps updates the modified date in tiddlers from Memory!

On Wednesday, 21 April 2021 at 11:15:48 UTC+10 Soren Bjornstad wrote:

> Good thought, but yes, it is – and as noted, the timestamps are being 
> updated in the tiddler files.
>
> On Tuesday, April 20, 2021 at 7:48:55 PM UTC-5 TW Tones wrote:
>
>> Soren,
>>
>> Quick check,
>>
>> Under sidebar > Tools
>>
>> Is timestamps on?
>>
>> Tones
>> On Tuesday, 20 April 2021 at 23:07:15 UTC+10 Soren Bjornstad wrote:
>>
>>> In one of my wikis, I frequently find that the "Recent" tab doesn't show 
>>> the changes I've made on the current day – the view is stuck at showing the 
>>> changes that were made on the most recent prior day that there were any 
>>> changes. Refreshing the page or restarting the server (Node.js method, 
>>> either hosted through TiddlyServer or directly via tiddlywiki --listen) 
>>> does not help. Checking the tiddler files in the wiki folder, they have the 
>>> correct date/time stamp in the *modified* field.
>>>
>>> At some point, as I continue changing things and working in the wiki, 
>>> all of the changes I've made that day often show up, but I haven't been 
>>> able to come up with a set of steps that consistently makes this happen.
>>>
>>> I went looking for any Recent-related shadow tiddlers I might have 
>>> messed with at some point, but didn't find any.
>>>
>>> Has anyone else seen this behavior, or have some idea of where I might 
>>> start trying to debug 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/402f5449-7597-4674-83e7-46d676aa590fn%40googlegroups.com.


Re: [tw5] Fetching tiddlers from one wiki to another

2021-04-20 Thread TW Tones
Folks,

I have long sought something similar, and wonder if the following approach 
would help with remote tiddlers, loading/importing and performance.

   - Provide a utility to save filtered tiddlers (json) to another filename 
   on the host, not index.html or wikiname.html, a bit like rss
  - This is the source wiki publishing a subset of tiddler for remote 
  load, it can be added to the save process.
   - Provide a plugin that given a url (inc file://) to the above address 
   will silently import (although log it) the tiddlers found in the JSON file 
   if they have changed, in the current wiki.

I am confident this is possible, I have seen the various requirements 
satisfied previously I just to not have the skills to code it, needing a 
saver etc... 

This same mechaisium could be used to generate multiple files to use a 
filter to publish a library. If necessary this can be done through a zip 
file, however it would be nice if the remote wiki could unzip and import. I 
am a strong believer that a library or importing remote tiddlers would be a 
far simpler way to intergrrating tiddlywiki than other suggestions so far, 
which with all due respect to those at the leading edge can be hard to 
follow.

My current workaround is a package Icon (tiddlers in a json format) that I 
can drag from one Wiki in an iFrame to another to install or update.

Tones
On Sunday, 18 April 2021 at 00:09:09 UTC+10 Jan wrote:

> Hi Saq,
> thank you very much for this widget! This is a great help, I have looked 
> for something like this for a long time. 
> This is a very important puzzlepiece to use TW as an interactive Learning 
> Management System. 
> For this usecase it is great that it has a silent mode, which makes it mor 
> unobstrusive than the fetch-function of Twederation.
> For the interactity of an LMS I would love three other features:
>
> -Can it handle filters to import only certain tiddlers? So far I could not 
> see how to implement them in the action-widget.
> -It would be great if it could tag them imported tiddlers like "temp" or 
> "imported"
> -It would be very important to have an "Overwrite Filter" determining 
> which tiddlers can be overwritten by the imported tiddlers. (For example al 
> those whose modifier is not the current user).
>
> Best wishes  and nany thanks for this great improvement!
> Jan
>
>
>
>
>
> Am So, 4. Apr, 2021 um 10:49 VORMITTAGS schrieb Saq Imtiaz <
> saq.i...@gmail.com>:
>
> Hi Jeremy,
>
> A little background: I have a couple of ideas in mind for projects to do 
> with education with some of the organizations I work with, for which I am 
> considering TiddlyWiki. One of them would be very similar to the syncing 
> educator and student notebooks project that was based on TiddlyWiki classic 
> over 10 years ago. The other involves providing a sandbox for exploration 
> and developing skills to do with using and potentially creating/customizing 
> digital tools to aid one's own learning. While TiddlyWiki sounds like a 
> good fit, it will also be essential that it is hard for the students to 
> break the tool itself.
>
> Both projects, if they proceed, will entail quite a bit of custom coding 
> to get the user experience just right, so as a first step I wanted to 
> understand what was possible today in terms of browser restrictions and 
> loading content dynamically in TW5. As mentioned in my original post, I 
> realize the use case for this particular prototype is very narrow. However 
> I find that sharing ideas and prototypes is rarely a bad idea as it can 
> often inspire other ideas in the community, so I try my best to do so 
> whenever possible.
>  
>
>> Those restrictions still exist. For example, the XMLHttpRequest approach 
>> described here generally won’t work from a file: URI, which was a major 
>> design goal for the plugin library and Twederation.
>>
>
> That's interesting as I've found it to work without problems to fetch 
> content into a local file wiki as long as the remote content is served with 
> the correct CORS headers (and the request is made without the 
> X-Requested-With header). Or do you mean when the remote content is also 
> accessed via a file: URI ? I have not tested that scenario.
>
> Hosting all the wikis with CORS support is an easy requirement to satisfy 
> for the projects I have in mind.
>  
>
>> It’s definitely time we explored dynamic content loading via 
>> XMLHttpRequest in more detail. The constraints get less onerous as we gain 
>> better HTTP/HTTPS solutions.
>>
>
> Agreed. I quite miss the possibilities offered by the quite rich ecosystem 
> of adaptors that we had in TiddlyWiki Classic and even the sync mechanism, 
> despite all the clunkiness inherent in the design and the later 
> difficulties imposed by greater browser restrictions. 
>  
> Regards,
> Saq
>
> -- 
>
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving em

[tw5] Re: "Recent" view doesn't show today's changes

2021-04-20 Thread Soren Bjornstad
Good thought, but yes, it is – and as noted, the timestamps are being 
updated in the tiddler files.

On Tuesday, April 20, 2021 at 7:48:55 PM UTC-5 TW Tones wrote:

> Soren,
>
> Quick check,
>
> Under sidebar > Tools
>
> Is timestamps on?
>
> Tones
> On Tuesday, 20 April 2021 at 23:07:15 UTC+10 Soren Bjornstad wrote:
>
>> In one of my wikis, I frequently find that the "Recent" tab doesn't show 
>> the changes I've made on the current day – the view is stuck at showing the 
>> changes that were made on the most recent prior day that there were any 
>> changes. Refreshing the page or restarting the server (Node.js method, 
>> either hosted through TiddlyServer or directly via tiddlywiki --listen) 
>> does not help. Checking the tiddler files in the wiki folder, they have the 
>> correct date/time stamp in the *modified* field.
>>
>> At some point, as I continue changing things and working in the wiki, all 
>> of the changes I've made that day often show up, but I haven't been able to 
>> come up with a set of steps that consistently makes this happen.
>>
>> I went looking for any Recent-related shadow tiddlers I might have messed 
>> with at some point, but didn't find any.
>>
>> Has anyone else seen this behavior, or have some idea of where I might 
>> start trying to debug 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/60fa1e98-bb46-4962-b729-bb1a18056c53n%40googlegroups.com.


[tw5] Re: "Recent" view doesn't show today's changes

2021-04-20 Thread TW Tones
Soren,

Quick check,

Under sidebar > Tools

Is timestamps on?

Tones
On Tuesday, 20 April 2021 at 23:07:15 UTC+10 Soren Bjornstad wrote:

> In one of my wikis, I frequently find that the "Recent" tab doesn't show 
> the changes I've made on the current day – the view is stuck at showing the 
> changes that were made on the most recent prior day that there were any 
> changes. Refreshing the page or restarting the server (Node.js method, 
> either hosted through TiddlyServer or directly via tiddlywiki --listen) 
> does not help. Checking the tiddler files in the wiki folder, they have the 
> correct date/time stamp in the *modified* field.
>
> At some point, as I continue changing things and working in the wiki, all 
> of the changes I've made that day often show up, but I haven't been able to 
> come up with a set of steps that consistently makes this happen.
>
> I went looking for any Recent-related shadow tiddlers I might have messed 
> with at some point, but didn't find any.
>
> Has anyone else seen this behavior, or have some idea of where I might 
> start trying to debug 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/ce3db46c-3de6-482e-8e26-d3f6fb7dd6ccn%40googlegroups.com.


[tw5] Re: Tiddloid: Any way to create a shortcut to a specific tiddler?

2021-04-20 Thread TW Tones
Si,

The info tiddlers prefix[$:/info/ 
] store values passed from 
the URL that opened the wiki. One is $:/info/url/search 
 which passes the 
values on the URL that follow the "?". if there is anyway to alter the URL 
that opens the wiki, perhaps you can have the "startup actions" respond to 
this value, eg; ?shop then if $:/info/url/search 
  contains shop, then 
close others and open the "Shopping List" tiddler.

I am only hinting at a possible path, but I think the tiddloid app may need 
a modification, since you launch the app, not the URL to a wiki.


Regards
Tones

On Wednesday, 21 April 2021 at 02:02:32 UTC+10 si wrote:

> Hi Tones, thanks for the reply.
>
> >>> If the wikis default tiddler is Shopping%20list this should open each 
> time, but do you want multiple links to the same wiki in Tiddloid? 
>
> Yep I'm looking to open a link to a tiddler that isn't a default.
>
> >>> Perhaps there is a way to edit the address in the shortcut and add a 
> tiddler
>
> You can create a shortcut to a specific wiki from Tiddloid, but I don't 
> know if there is any way to edit the shortcut once it has been created.
>
> >>> or provide a parameter "?shop", look at the info tiddlers to see if 
> the parameters are being passed into the wiki, perhaps there is a way to 
> get the icon name?
>
> I'm not sure I understand what you are saying here.
> On Tuesday, 20 April 2021 at 06:48:50 UTC+1 TW Tones wrote:
>
>> Si,
>>
>> If the wikis default tiddler is Shopping%20list this should open each 
>> time, but do you want multiple links to the same wiki in Tiddloid?
>>
>> Perhaps there is a way to edit the address in the shortcut and add a 
>> tiddler, or provide a parameter "?shop", look at the info tiddlers to see 
>> if the parameters are being passed into the wiki, perhaps there is a way to 
>> get the icon name?
>>
>> Regards
>> Tones
>>
>> On Tuesday, 20 April 2021 at 06:01:09 UTC+10 si wrote:
>>
>>> This seems unlikely, but I use TiddlyWiki on Android with Tiddloid 
>>> , and I wondered if there was any 
>>> way to create a shortcut on the Android home screen that links to a 
>>> specific tiddler?
>>>
>>> E.g. Open the wiki directly to mywiki.html#Shopping%20list. I can't use 
>>> the browser because I need to be able to save my shopping list as well.
>>>
>>> Just wondered if there were any hacks out there. Alternative suggestions 
>>> welcome.
>>>
>>

-- 
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/06eda2b3-4005-490a-8adf-00fd287e29fan%40googlegroups.com.


Re: [tw5] Re: [Announcement] "TW Icons" - A large collection of icons for TiddlyWiki

2021-04-20 Thread TW Tones
Morosanuae,

You may with to add from tiddlywiki 5.1.23 if you 
add xmlns="http://www.w3.org/2000/svg"; after the opening svg tag, and set 
the tiddler type to image/svg+xml the svg icons can be used as a 
$:/favicon.ico

Tones

On Wednesday, 21 April 2021 at 07:32:25 UTC+10 moros...@gmail.com wrote:

> A new version of *"TW Icons"* is available !!!
>
> *v1.7 *(https://morosanuae.github.io/tw-icons). Now with a total of *~44000 
> icons* *(17 libraries)*. 
>
> *Features*: 
>
>- *1 new* library added: *"CoreUI Icons"*.
>
> For more info, please checkout the "version history". 
> On Tuesday, April 20, 2021 at 10:13:01 PM UTC+3 moros...@gmail.com wrote:
>
>> @Mohammad You're welcome!
>>
>> On Tuesday, April 20, 2021 at 4:05:58 PM UTC+3 Mohammad wrote:
>>
>>>
>>> One the best resources for Tiddlywiki!
>>>
>>> Thank you Morosanuae!
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Tue, Apr 20, 2021 at 5:20 PM moros...@gmail.com  
>>> wrote:
>>>
 A new version of *"TW Icons"* is available !!!

 *v1.6 *(https://morosanuae.github.io/tw-icons). Now with a total of 
 *~43000 
 icons* *(16 libraries)*. 

 *Features*: 

- *1 new* library added: *"Phosphor Icons"*.
- Added a loading (splash) screen — a lighter version of the 
original TiddlyWiki splash screen . *(requested by TiddlyTweeter)*.

 For more info, please checkout the "version history". 
 On Saturday, April 17, 2021 at 1:38:12 PM UTC+3 TiddlyTweeter wrote:

> moros...@gmail.com wrote:
>
> ... I didn't design the app for the mobile devices, so it's not very 
> adaptive also.
>
> Right. But actually in Landscape on a smartphone it is actually well 
> usable. 
> Layout breaks a bit but otherwise it is perfectly functional ... for 
> example (on my Android 8 phone) ...
>
> [image: Screenshot_20210417-121851.png]
>
> Of course, because smart phones are "touch" devices, TW drag-n-drop is 
> not able to function properly as the OS overrides the browser. 
> BUT simple export works FINE on a smart phone.
>
> Just comments
> TT
>
 -- 

>>> You received this message because you are subscribed to the Google 
 Groups "TiddlyWiki" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to tiddlywiki+...@googlegroups.com.

>>> To view this discussion on the web visit 
 https://groups.google.com/d/msgid/tiddlywiki/0bc17a19-bb49-40d6-81d5-a7bec41dc49cn%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/78748825-59cb-4b7a-b0ef-4c63dc3ab6b7n%40googlegroups.com.


Re: [tw5] Re: [Announcement] "TW Icons" - A large collection of icons for TiddlyWiki

2021-04-20 Thread TW Tones
Thanks  Morosanuae  for this wonderful resource.

Is it safe to use and distribute tiddlywikis using this icons, without 
further attribution?

Regards
Tones

On Wednesday, 21 April 2021 at 07:32:25 UTC+10 moros...@gmail.com wrote:

> A new version of *"TW Icons"* is available !!!
>
> *v1.7 *(https://morosanuae.github.io/tw-icons). Now with a total of *~44000 
> icons* *(17 libraries)*. 
>
> *Features*: 
>
>- *1 new* library added: *"CoreUI Icons"*.
>
> For more info, please checkout the "version history". 
> On Tuesday, April 20, 2021 at 10:13:01 PM UTC+3 moros...@gmail.com wrote:
>
>> @Mohammad You're welcome!
>>
>> On Tuesday, April 20, 2021 at 4:05:58 PM UTC+3 Mohammad wrote:
>>
>>>
>>> One the best resources for Tiddlywiki!
>>>
>>> Thank you Morosanuae!
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Tue, Apr 20, 2021 at 5:20 PM moros...@gmail.com  
>>> wrote:
>>>
 A new version of *"TW Icons"* is available !!!

 *v1.6 *(https://morosanuae.github.io/tw-icons). Now with a total of 
 *~43000 
 icons* *(16 libraries)*. 

 *Features*: 

- *1 new* library added: *"Phosphor Icons"*.
- Added a loading (splash) screen — a lighter version of the 
original TiddlyWiki splash screen . *(requested by TiddlyTweeter)*.

 For more info, please checkout the "version history". 
 On Saturday, April 17, 2021 at 1:38:12 PM UTC+3 TiddlyTweeter wrote:

> moros...@gmail.com wrote:
>
> ... I didn't design the app for the mobile devices, so it's not very 
> adaptive also.
>
> Right. But actually in Landscape on a smartphone it is actually well 
> usable. 
> Layout breaks a bit but otherwise it is perfectly functional ... for 
> example (on my Android 8 phone) ...
>
> [image: Screenshot_20210417-121851.png]
>
> Of course, because smart phones are "touch" devices, TW drag-n-drop is 
> not able to function properly as the OS overrides the browser. 
> BUT simple export works FINE on a smart phone.
>
> Just comments
> TT
>
 -- 

>>> You received this message because you are subscribed to the Google 
 Groups "TiddlyWiki" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to tiddlywiki+...@googlegroups.com.

>>> To view this discussion on the web visit 
 https://groups.google.com/d/msgid/tiddlywiki/0bc17a19-bb49-40d6-81d5-a7bec41dc49cn%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/38682c86-270f-4b1f-a667-23d7a10917a8n%40googlegroups.com.


Re: [tw5] Re: Display tags in Tiddlers

2021-04-20 Thread Anjar
Hi Mohamed,

I'm not sure I fully understand your question, but here is an example that 
produce a table with tiddlers (by letter) to the left and the tags of the 
tiddler to the right; perhaps you wanted the opposite..?


<$list filter="A B C D E F G H I J K L M N O P Q R S T U V W X Y Z">

<>

<$list filter="[ sortan[]prefix]">

<>
<$list 
filter="[titletags[]]"><>





Best,
Anders

mandag 19. april 2021 kl. 06:30:30 UTC+2 skrev mohamed.e...@vodafone.com:

> Is it possible to display all associated tags with the listed tiddlers 
> next to them in the list?
>
> On Wednesday, April 7, 2021 at 2:29:41 PM UTC+2 Anjar wrote:
>
>> Hi,
>>
>> As you've discovered, seemingly simple problems can get wuite complex:) I 
>> agree with you that  is a nice solution, or you could wrap it in a 
>>  and have each element as a list item
>>
>> For now, I was unable to find a simply way to substring the titles; if 
>> there was, you could get the first letter of all titles, make them 
>> uppercase, remove duplicates and iterate through them with 
>> match:caseinsensitive or something. Maybe it'll be possible in the future!
>>
>> PS I forgot XYZ;)
>>
>>
>> Best,
>> Anders
>>
>> onsdag 7. april 2021 kl. 09:42:10 UTC+2 skrev jn.pierr...@gmail.com:
>>
>>>
>>> Nice solution. I tried it. It is case sensible. My code is not (it was 
>>> needed).
>>>
>>> I will try to merge your solution into mine to see what I could achieve 
>>> with two imbricated lists.
>>>
>>> Jean-Pierre
>>> Le mercredi 7 avril 2021 à 08:11:28 UTC+2, schlechter...@gmail.com a 
>>> écrit :
>>>
 Thanks jn.pierr for your input - I'll check it later.
 In the meantime I found a solution:

 
 <$list filter="A B C D E F G H I J K L M N O P R S T U V W Z">

 <><$list filter="[ 
 sortan[]prefix]"> 
  <> <$view 
 field="published" />  
 **
 
 
 

 Stefan
 jn.pierr...@gmail.com schrieb am Dienstag, 6. April 2021 um 21:11:10 
 UTC+2:

> As for listing letters for entries I have tghe following:
>
> \define all-initials()
> <$list filter="[tag[glossaire]]">
><$set name=1st value={{{ [all[current]split[]first[]] }}}>
>   <<1st>>
>
> 
> \end
>
> \define glossaryList()
> <$wikify name="all-letters" text=<>>
> <$list 
> filter="[uppercase[]split[É]join[E]split[]each:value[]!is[missing]]"
>  
> variable="letter">
>   <$link to=<>/>
> 
>
> <$list 
> filter="[uppercase[]split[É]join[E]split[]each:value[]!is[missing]]"
>  
> variable="letter">
> <$link to=<>/>
> <$set name="entries" filter="[addprefix[{{]addsuffix[}}]]">
> <>
> 
> 
> 
> \end
>
> added twist: make É and E the same entry. letters not used are not 
> seen. This example is with a "glossaire" tag, you would use "people" 
> instead or make it a variable of all-initials macro. the macro to be used 
> is glossaryList (no argument).
>
> You would have to adapt it to your needs and language perhaps.
>
> note: I have created letterr tiddlers "A"', "B"', "C" etc before hand. 
> I have not yet found out how to create them on purpose (and delete them 
> on 
> purpose too). But they all have the same content (a call to another 
> macro). 
> Some are not used, that's it.
> Le mardi 6 avril 2021 à 17:59:12 UTC+2, schlechter...@gmail.com a 
> écrit :
>
>> Hello Anjar,
>>
>> I've adapted your example to generate a list of all my Tiddlers + 
>> "published" field (= date):
>>
>> <$list 
>> filter="A B C D E F G H I J K L M N O P Q R S T U V 
>> W"><><$list filter="[ 
>> sortan[]prefix]">   
>> <> <$view field="published" />  
>>
>> Is there a way to get an output list with only one Tiddler-title per 
>> line?
>>
>> Thanks for feedback
>> Stefan
>>
>> Anjar schrieb am Montag, 5. April 2021 um 22:25:39 UTC+2:
>>
>>> Hi,
>>>
>>> Absolutely, here is a quick example:
>>>
>>> <$list 
>>> filter="A B C D E F G H I J K L M N O P Q R S T U V 
>>> W"><><$list 
>>> filter="[tag[People]sort[title]prefix]"> <> 
>>> 
>>>
>>> The div is just to get three columns. The first list loops through 
>>> all the letters and print each letter (<>) as header. 
>>> For 
>>> each letter, you use the same list as before, but add a filter to only 
>>> keep 
>>> titles starting on (prefix) the given letter (note that we have to use 
>>>  inside filters)
>>>
>>> Best,
>>> Anders
>>>
>>> mandag 5. april 2021 kl. 21:11:35 UTC+2 skrev isd196...@gmail.com:
>>>
 I have one final question, relating to the list function itself: Is 
 it possible to split the list alphabetically? So that all people whose 
 names begin with A, B, C etc, can be placed in separate lists, despite 
 all 
 being in the sam

Re: [tw5] Re: [plugin] TOC generic - shows toc,backlinks,list and listed up front

2021-04-20 Thread arun babu
Hi HCHaase, 

Thanks for the update. Everything works fine. I use it in all of my wikis. 

Arun

On Friday, March 12, 2021 at 6:32:29 PM UTC+5:30 haas...@gmail.com wrote:

> yay.. partial mode for freelinks
>
> *Announcement*: TOC Generic
> *Date*: 2021/03/12
> *Release*: 2.2.1
>
> Downlaod/demo: 
> https://hchaase.github.io/HC-Plugins/#TOC-Generic%20Introduction 
> 
>
> v. 2.2.1
>
>- [Fix] the references list disappeared instead of collapse when 
>pressed
>- [new] added freelinks partial match mode. toggle in settings
>- [new] added submenu under "references". toggle with  >  to the right 
>
> torsdag den 11. marts 2021 kl. 12.19.00 UTC+1 skrev arunn...@gmail.com:
>
>> Thanks HCHaase for the update. Will get back to you after I try it out in 
>> my wiki.
>>
>> On Thu, Mar 11, 2021 at 2:15 PM HC Haase  wrote:
>>
>>> I finally got something done :)
>>>
>>> @ hardco...@gmail.com 
>>> finally freelinks
>>>
>>> @ arunn...@gmail.com 
>>> Thanks for your patiened reminders.. 
>>>
>>> >Can you add a configuration panel like in the reference plug-in of 
>>> TiddlyResearch  to turn on 
>>> and off backlinks, freelinks, tags, lists as needed by the user 
>>>
>>> I have added this for you... Tough I personally would recommend not to 
>>> use it, as the lists will not appear if there is no connections in them. 
>>> Instead I would leave them folded if I dont use them as much.
>>>
>>> any way enjoy.. I will continue the development.
>>>
>>>
>>> *Announcement*: TOC Generic
>>> *Date*: 2021/03/11
>>> *Release*: 2.2.0
>>>
>>> Downlaod/demo: 
>>> https://hchaase.github.io/HC-Plugins/#TOC-Generic%20Introduction 
>>> 
>>>
>>> v. 2.2.0
>>>
>>>- [New] added freelinks (copied form TWCrossLinks 
>>>) 
>>>for full match (partial match coming soon)
>>>- [New] added options to remove any of the lists (in settings)
>>>
>>> -- 
>>>
>> 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+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/110af529-5600-4d48-902c-3104bf6e2417n%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/602f457b-24fb-4af2-839f-13c302e9cda5n%40googlegroups.com.


Re: [tw5] Re: [ Streams ] : feedback and issues

2021-04-20 Thread arun babu
Hi Saq,

I can understand that you might have got busy with your work. No worries.

I had 4 questions.

1. I will be happy if you can help me to make this template. I tried the 
code which you gave and its what I want - but how to make the new case 
button or the template appear automatically in every new case tiddlers. Or 
can you help to incorporate the code given into the command palette command 
I created.

2. Renaming the node is fine for me, although it can be quite a work if 
there a many child nodes.

3. With the filter option given in the latest beta version, issue with 
exporting of a single node tree has been solved.

4. I have modified my recents tiddler to limit number of entries shown. 
Still I will be happy if there is a filter to show only the stream root 
tiddlers.


Thanks,
Arun
On Monday, April 19, 2021 at 7:07:06 AM UTC+5:30 rika.s...@gmail.com wrote:

> I just made a note to update in ~1 week. Thanks, Saq! Really 
> appreciate the time you're spending on this. 
>
> Best,
> Rika Sukenik 
>
>
> On Sat, Apr 17, 2021 at 12:47 AM Saq Imtiaz  wrote:
>
>> @arun apologies for the very delayed reply, I've had a hectic last couple 
>> of months and this message slipped through the cracks. Let me know if these 
>> questions are still relevant and if so, we can discuss them further.
>>
>> Saq
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/tiddlywiki/1jTwdmq8cgI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddlywiki+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/80b9ff77-260e-4ea2-94d2-2120f9fe5189n%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c4e2eefb-b60a-45af-994a-6f0147a8882en%40googlegroups.com.


[tw5] German documentation / deutsche Dokumentation

2021-04-20 Thread Frank Bruns-Ballhausen
Hello everyone,

I have my difficulties with the English language. That is why I have 
inserted many tiddlers from the documentation of tiddlywiki.com into the 
German translation by pmario and ChrisK.

Of course, it would be a great pity if it was only on my hard drive. How 
can I make the tiddlers I have translated so far available for the 
"official documentation"?

Online I can show it here: 
https://fbb.uber.space/otherprj/TiddlyWiki-Doku.html

With best regards Frank
---
Hallo zusammen,

Ich habe meine Schwierigkeiten mit der englischen Sprache. Deshalb habe ich 
viele Tiddler aus der Dokumentation von tiddlywiki.com in die deutsche 
Übersetzung von pmario und ChrisK eingefügt.

Es wäre natürlich sehr schade, wenn sie nur auf meiner Festplatte liegen 
würden. Wie kann ich die bisher von mir übersetzten Tiddler für die 
"offizielle Dokumentation" verfügbar machen?

Online kann ich es hier zur Verfügung stellen: 
https://fbb.uber.space/otherprj/TiddlyWiki-Doku.html

MfG Frank

-- 
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/7ae98a23-c7be-4c34-99a8-1b0491a2053en%40googlegroups.com.


Re: [tw5] Re: [Announcement] "TW Icons" - A large collection of icons for TiddlyWiki

2021-04-20 Thread moros...@gmail.com
 A new version of *"TW Icons"* is available !!!

*v1.7 *(https://morosanuae.github.io/tw-icons). Now with a total of *~44000 
icons* *(17 libraries)*. 

*Features*: 

   - *1 new* library added: *"CoreUI Icons"*.

For more info, please checkout the "version history". 
On Tuesday, April 20, 2021 at 10:13:01 PM UTC+3 moros...@gmail.com wrote:

> @Mohammad You're welcome!
>
> On Tuesday, April 20, 2021 at 4:05:58 PM UTC+3 Mohammad wrote:
>
>>
>> One the best resources for Tiddlywiki!
>>
>> Thank you Morosanuae!
>>
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Tue, Apr 20, 2021 at 5:20 PM moros...@gmail.com  
>> wrote:
>>
>>> A new version of *"TW Icons"* is available !!!
>>>
>>> *v1.6 *(https://morosanuae.github.io/tw-icons). Now with a total of *~43000 
>>> icons* *(16 libraries)*. 
>>>
>>> *Features*: 
>>>
>>>- *1 new* library added: *"Phosphor Icons"*.
>>>- Added a loading (splash) screen — a lighter version of the 
>>>original TiddlyWiki splash screen . *(requested by TiddlyTweeter)*.
>>>
>>> For more info, please checkout the "version history". 
>>> On Saturday, April 17, 2021 at 1:38:12 PM UTC+3 TiddlyTweeter wrote:
>>>
 moros...@gmail.com wrote:

 ... I didn't design the app for the mobile devices, so it's not very 
 adaptive also.

 Right. But actually in Landscape on a smartphone it is actually well 
 usable. 
 Layout breaks a bit but otherwise it is perfectly functional ... for 
 example (on my Android 8 phone) ...

 [image: Screenshot_20210417-121851.png]

 Of course, because smart phones are "touch" devices, TW drag-n-drop is 
 not able to function properly as the OS overrides the browser. 
 BUT simple export works FINE on a smart phone.

 Just comments
 TT

>>> -- 
>>>
>> You received this message because you are subscribed to the Google Groups 
>>> "TiddlyWiki" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to tiddlywiki+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/tiddlywiki/0bc17a19-bb49-40d6-81d5-a7bec41dc49cn%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c88c379f-d11f-4a73-9f7b-c6efbdf94ec5n%40googlegroups.com.


Re: [tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Mohammad Rahmani
Thank you Mat!
Nice addition!



Best wishes
Mohammad


On Tue, Apr 20, 2021 at 10:53 PM Mat  wrote:

> Mohammad wrote:
>
>>  How the URL shall be given as an encoded uri?
>>
>
> See https://link-or-ext.tiddlyhost.com/
>
> The macro is called like this
>
> >
>
> i.e the URL is just copy-pasted from some wiki.
>
> By the way, you who also create a lot of community stuff, might benefit
> from this. Its curren main "problem" is discussed here
> .
>
> <:-)
>
> --
> 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/811544b2-c41c-4607-a80b-4f146de01677n%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMCoPYkengv-7r_RedzQcE2PY14rPdcoxTPYW7vULEDg6g%40mail.gmail.com.


Re: [tw5] Re: [Announcement] "TW Icons" - A large collection of icons for TiddlyWiki

2021-04-20 Thread moros...@gmail.com
@Mohammad You're welcome!

On Tuesday, April 20, 2021 at 4:05:58 PM UTC+3 Mohammad wrote:

>
> One the best resources for Tiddlywiki!
>
> Thank you Morosanuae!
>
>
> Best wishes
> Mohammad
>
>
> On Tue, Apr 20, 2021 at 5:20 PM moros...@gmail.com  
> wrote:
>
>> A new version of *"TW Icons"* is available !!!
>>
>> *v1.6 *(https://morosanuae.github.io/tw-icons). Now with a total of *~43000 
>> icons* *(16 libraries)*. 
>>
>> *Features*: 
>>
>>- *1 new* library added: *"Phosphor Icons"*.
>>- Added a loading (splash) screen — a lighter version of the original 
>>TiddlyWiki splash screen . *(requested by TiddlyTweeter)*.
>>
>> For more info, please checkout the "version history". 
>> On Saturday, April 17, 2021 at 1:38:12 PM UTC+3 TiddlyTweeter wrote:
>>
>>> moros...@gmail.com wrote:
>>>
>>> ... I didn't design the app for the mobile devices, so it's not very 
>>> adaptive also.
>>>
>>> Right. But actually in Landscape on a smartphone it is actually well 
>>> usable. 
>>> Layout breaks a bit but otherwise it is perfectly functional ... for 
>>> example (on my Android 8 phone) ...
>>>
>>> [image: Screenshot_20210417-121851.png]
>>>
>>> Of course, because smart phones are "touch" devices, TW drag-n-drop is 
>>> not able to function properly as the OS overrides the browser. 
>>> BUT simple export works FINE on a smart phone.
>>>
>>> Just comments
>>> TT
>>>
>> -- 
>>
> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/0bc17a19-bb49-40d6-81d5-a7bec41dc49cn%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2c478974-70c5-4a7e-948a-6325c06feb17n%40googlegroups.com.


[tw5] Re: Streams 0.2 preview

2021-04-20 Thread Saq Imtiaz
Thanks @si, that should be fixed though you may need to clear your cache to 
see the updated version.

On Tuesday, April 20, 2021 at 8:35:01 PM UTC+2 si wrote:

> Wow Saq thank you - I'm really looking forward to the next release!
>
> One possible bug: I'm finding that the context menu hangs over the left 
> side of the screen. Seeing this in both Brave and Firefox on Windows.
>
> On Tuesday, 20 April 2021 at 16:59:55 UTC+1 saq.i...@gmail.com wrote:
>
>> Apologies for the delay with getting Streams 0.2 released, the last few 
>> months have been hectic.
>>
>> I've found some time to resolve some of the outstanding issues and hope 
>> to get a new stable release of 0.2 out next week.
>>
>> Any testing on this new interim version would be appreciated, just to 
>> help ensure that I haven't accidentally broken anything:
>> https://saqimtiaz.github.io/sq-tw/temp/streams-0.21-preview.html
>>
>> *Changes since the last version posted:*
>>
>>- Improved detection and error handling for whether codemirror is 
>>available
>>- Removed the indent/unindent swipe behaviour in favour of triggering 
>>the context menu
>>- Added a plugin priority field so other plugins can 
>>override/customize Streams tiddlers. Hopefully this means people will 
>> stop 
>>distributing modified version of Streams which are a real headache in 
>> terms 
>>of providing support.
>>- Tweaked the CSS for the settings UI to use color palette entries 
>>where possible
>>- Removed the option to double click to exit editing
>>- Introduced the filters get-stream-root and get-stream-nodes to make 
>>it easier to work with Streams tiddlers.
>>
>> *For anyone including Streams in editions or otherwise distributing the 
>> plugin:*
>>
>>- Please do not distribute modified versions of the plugin as this 
>>leads to my receiving support requests that are impossible to 
>> troubleshoot 
>>or manage. 
>>- If you need to customize the plugin, first look at the 
>>documentation to see if there is already a facility for extending or 
>>tweaking the plugin that you can use. If in doubt, ask or request a hook. 
>>- Otherwise, instead of modifying Streams please distribute Streams 
>>with your own plugin that overrides select tiddlers in Streams and 
>>implements the customization that you need.
>>
>> Regards,
>> Saq
>>
>>
>>

-- 
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/2a123fd8-2861-4ba8-9bf2-aa3dcad454cfn%40googlegroups.com.


[tw5] Re: Streams 0.2 preview

2021-04-20 Thread si
Wow Saq thank you - I'm really looking forward to the next release!

One possible bug: I'm finding that the context menu hangs over the left 
side of the screen. Seeing this in both Brave and Firefox on Windows.

On Tuesday, 20 April 2021 at 16:59:55 UTC+1 saq.i...@gmail.com wrote:

> Apologies for the delay with getting Streams 0.2 released, the last few 
> months have been hectic.
>
> I've found some time to resolve some of the outstanding issues and hope to 
> get a new stable release of 0.2 out next week.
>
> Any testing on this new interim version would be appreciated, just to help 
> ensure that I haven't accidentally broken anything:
> https://saqimtiaz.github.io/sq-tw/temp/streams-0.21-preview.html
>
> *Changes since the last version posted:*
>
>- Improved detection and error handling for whether codemirror is 
>available
>- Removed the indent/unindent swipe behaviour in favour of triggering 
>the context menu
>- Added a plugin priority field so other plugins can 
>override/customize Streams tiddlers. Hopefully this means people will stop 
>distributing modified version of Streams which are a real headache in 
> terms 
>of providing support.
>- Tweaked the CSS for the settings UI to use color palette entries 
>where possible
>- Removed the option to double click to exit editing
>- Introduced the filters get-stream-root and get-stream-nodes to make 
>it easier to work with Streams tiddlers.
>
> *For anyone including Streams in editions or otherwise distributing the 
> plugin:*
>
>- Please do not distribute modified versions of the plugin as this 
>leads to my receiving support requests that are impossible to troubleshoot 
>or manage. 
>- If you need to customize the plugin, first look at the documentation 
>to see if there is already a facility for extending or tweaking the plugin 
>that you can use. If in doubt, ask or request a hook. 
>- Otherwise, instead of modifying Streams please distribute Streams 
>with your own plugin that overrides select tiddlers in Streams and 
>implements the customization that you need.
>
> Regards,
> Saq
>
>
>

-- 
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/3bb5f95c-db74-417f-a52f-235c549dd376n%40googlegroups.com.


Re: [tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Mat
Mohammad wrote:

>  How the URL shall be given as an encoded uri?
>

See https://link-or-ext.tiddlyhost.com/

The macro is called like this

>

i.e the URL is just copy-pasted from some wiki. 

By the way, you who also create a lot of community stuff, might benefit 
from this. Its curren main "problem" is discussed here 
.

<:-)

-- 
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/811544b2-c41c-4607-a80b-4f146de01677n%40googlegroups.com.


Re: [tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Mohammad Rahmani
Mat,
 How the URL shall be given as an encoded uri?


Best wishes
Mohammad


On Tue, Apr 20, 2021 at 12:54 PM Mat  wrote:

> Saq Imtiaz wrote:
>
>> Use a filter run prefix.
>>
>
> Appreciated. That'll be useful in other cases but it turns out it was not
> relevant for this issue.
>
> 
>
>
> But formulating the problem that emptyMessage was not linkified did spark
> some thoughts so the current status is decent enough:
>
> \define linkOrExt(url)
> <$vars
>link={{{ $url$ +[split[#]rest[]decodeuri[]join[ ]] }}}
>lbrack="[["  rbrack="]]">
> <$list
>filter="""[is[missing]]"""
>emptyMessage={{{ [addprefixaddsuffix] }}} >
>target="_blank">{{!!title}}
> 
> 
> \end
>
> Decent enough.
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/e25c546b-4755-4106-a3b3-117f52262fc1n%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMDNjGfVSymidJGULV41hV5c9Ew2pWG9o%3DGC%3DBZBgTdLbA%40mail.gmail.com.


[tw5] Re: Tiddloid: Any way to create a shortcut to a specific tiddler?

2021-04-20 Thread si
Hi Tones, thanks for the reply.

>>> If the wikis default tiddler is Shopping%20list this should open each 
time, but do you want multiple links to the same wiki in Tiddloid? 

Yep I'm looking to open a link to a tiddler that isn't a default.

>>> Perhaps there is a way to edit the address in the shortcut and add a 
tiddler

You can create a shortcut to a specific wiki from Tiddloid, but I don't 
know if there is any way to edit the shortcut once it has been created.

>>> or provide a parameter "?shop", look at the info tiddlers to see if the 
parameters are being passed into the wiki, perhaps there is a way to get 
the icon name?

I'm not sure I understand what you are saying here.
On Tuesday, 20 April 2021 at 06:48:50 UTC+1 TW Tones wrote:

> Si,
>
> If the wikis default tiddler is Shopping%20list this should open each 
> time, but do you want multiple links to the same wiki in Tiddloid?
>
> Perhaps there is a way to edit the address in the shortcut and add a 
> tiddler, or provide a parameter "?shop", look at the info tiddlers to see 
> if the parameters are being passed into the wiki, perhaps there is a way to 
> get the icon name?
>
> Regards
> Tones
>
> On Tuesday, 20 April 2021 at 06:01:09 UTC+10 si wrote:
>
>> This seems unlikely, but I use TiddlyWiki on Android with Tiddloid 
>> , and I wondered if there was any 
>> way to create a shortcut on the Android home screen that links to a 
>> specific tiddler?
>>
>> E.g. Open the wiki directly to mywiki.html#Shopping%20list. I can't use 
>> the browser because I need to be able to save my shopping list as well.
>>
>> Just wondered if there were any hacks out there. Alternative suggestions 
>> welcome.
>>
>

-- 
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/4f4da4a1-90a4-4365-9aef-6dfbc3dbe050n%40googlegroups.com.


[tw5] Re: Streams 0.2 preview

2021-04-20 Thread Saq Imtiaz
Apologies for the delay with getting Streams 0.2 released, the last few 
months have been hectic.

I've found some time to resolve some of the outstanding issues and hope to 
get a new stable release of 0.2 out next week.

Any testing on this new interim version would be appreciated, just to help 
ensure that I haven't accidentally broken anything:
https://saqimtiaz.github.io/sq-tw/temp/streams-0.21-preview.html

*Changes since the last version posted:*

   - Improved detection and error handling for whether codemirror is 
   available
   - Removed the indent/unindent swipe behaviour in favour of triggering 
   the context menu
   - Added a plugin priority field so other plugins can override/customize 
   Streams tiddlers. Hopefully this means people will stop distributing 
   modified version of Streams which are a real headache in terms of providing 
   support.
   - Tweaked the CSS for the settings UI to use color palette entries where 
   possible
   - Removed the option to double click to exit editing
   - Introduced the filters get-stream-root and get-stream-nodes to make it 
   easier to work with Streams tiddlers.

*For anyone including Streams in editions or otherwise distributing the 
plugin:*

   - Please do not distribute modified versions of the plugin as this leads 
   to my receiving support requests that are impossible to troubleshoot or 
   manage. 
   - If you need to customize the plugin, first look at the documentation 
   to see if there is already a facility for extending or tweaking the plugin 
   that you can use. If in doubt, ask or request a hook. 
   - Otherwise, instead of modifying Streams please distribute Streams with 
   your own plugin that overrides select tiddlers in Streams and implements 
   the customization that you need.

Regards,
Saq


-- 
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/5ee2c2ca-65cb-4297-a5c8-d7734e3add16n%40googlegroups.com.


[tw5] Re: Subfilter recursion

2021-04-20 Thread Yaisog Bonegnasher
Here is my 5-level-deep tiddler collection beneath a tag á la Mark:
\define tiddlertree-level5() [tagging[]]
\define tiddlertree-level4() [tagging[]] 
[tagging[]subfilter]
\define tiddlertree-level3() [tagging[]] 
[tagging[]subfilter]
\define tiddlertree-level2() [tagging[]] 
[tagging[]subfilter]
\define tiddlertree()[tagging[]] 
[tagging[]subfilter]
where before it was this line-breaker:
\define tiddlertree() [tagging[]] [tagging[]tagging[]] 
[tagging[]tagging[]tagging[]] [tagging[]tagging[]tagging[]tagging[]] 
[tagging[]tagging[]tagging[]tagging[]tagging[]]
Cheers.

On Tuesday, April 20, 2021 at 3:11:43 PM UTC+2 Yaisog Bonegnasher wrote:

> I have to admit that I am beginning to like Mark's solution with the 
> numbered subfilter definitions, even though I unfairly called it "not 
> really pretty". The neat thing about it is that adding another level of 
> "pseudo-recursion" is very easy and very clear. Putting everything into a 
> single filter is complicated to maintain with all sub-expressions having 
> different length (different number of tagging[] constructs). Here, 
> everything looks the same, with just some numbers changed. I think I'm 
> gonna implement this!
>
> On Sunday, April 18, 2021 at 9:31:20 PM UTC+2 Mark S. wrote:
>
>> My guess is that it's trying to build the complete filter even before it 
>> runs, so that's why you hit the recursive limit. That is, it's not running 
>> one filter, running the next, testing, etc. It's trying to build the whole 
>> thing, which has no way of exiting.
>>
>> Since you know about how many levels, maybe you could prevent the 
>> over-run like this:
>>
>> \define subfilter-test5() [tagging[]] [tagging[]]
>> \define subfilter-test4() [tagging[]] 
>> [tagging[]subfilter]
>> \define subfilter-test3() [tagging[]] 
>> [tagging[]subfilter]
>> \define subfilter-test2() [tagging[]] 
>> [tagging[]subfilter]
>> \define subfilter-test()  [tagging[]] 
>> [tagging[]subfilter]
>>
>> <$set name="test" filter="[[HelloThere]subfilter]">
>>   <$list filter="=[enlist]" template="$:/core/ui/ListItemTemplate" 
>> />
>> 
>>
>> You can add on as many levels as you think you'll ever need. 
>>
>> On Sunday, April 18, 2021 at 12:01:51 PM UTC-7 Yaisog Bonegnasher wrote:
>>
>>> Hi,
>>> I recently tried to create a recursive subfilter to find all tiddlers 
>>> below a certain tag, no matter how many levels deep (similar to the 
>>> *kin* filter, which  is too slow for my large wiki). Unfortunately, I 
>>> was greeted with a red-message-box-of-death informing me of too much 
>>> recursion. However, there should only be a couple of levels.
>>> Are recursive filters at all possible or am I doing something wrong?
>>> For a quick example, try this in a new tiddler on tiddlywiki.com:
>>> \define subfilter-test() [tagging[]] [tagging[]subfilter]
>>>
>>> <$set name="test" filter="[[TableOfContents]subfilter]">
>>>   <$list filter="=[enlist]" template="$:/core/ui/ListItemTemplate" 
>>> />
>>> 
>>> Any enlightment is greatly appreciated.
>>> Best regards
>>> Yaisog
>>>
>>

-- 
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/e49f3156-0b3d-45f7-9b2e-f23b8b14824fn%40googlegroups.com.


[tw5] Re: sorting json data

2021-04-20 Thread Jean-Pierre Rivière
Thanks to the ideas of Tones, I have found out how to solve elegantly my 
problem. And found out two oddities as well. But firs, let 's see the the 
data in tiddler "projets-json":

[
  {
   "project": "pleiade",
   "name": "Pléiade v5",
   "url": "http:pleiade.test.acmeserver.com"
   },
   {
   "project": "rnvp",
   "name": "RNVP preprod",
   "url": "https://rnvp.preprod.acmeserver.com";
   },
   {
   "project": "resa",
   "name": "application de réservation de salles",
   "url": "http://ars.test.acmeserver.com";
   }
]

Notice that the relative order of the "project" and "name" index is not 
always the same. on purpose.

And here comes the code!

=
\define exp-med() \s*},\s*{
\define exp-beg() [[]\s*{\s*
\define exp-end() \s*}\s*]\s*

\define exp-grab() .*"name":\s"([^"]*)"[\s\S]*
\define exp-build() AKA_$1_YET

\define exp-grab01() 
[\s\S]*"project":\s"([^"]*)"[\s\S]*"name":\s"([^"]*)"[\s\S]*
\define exp-build01() $2^$1

\define exp-grab02() 
[\s\S]*"name":\s"([^"]*)"[\s\S]*"project":\s"([^"]*)"[\s\S]*
\define exp-build02() $1^$2

\define exp-final() [^^]*\^

!! step 1
Get the whole json in a single line and from there into lines of exactly 
one complete json object each.

<$list 
filter="[{projets-json}join[]splitregexpsplitregexpsplitregexp!is[blank]]"
 
variable=each-line>
«<>»


---

!! experimental step 2
add an experiment for capturing a desired kind of data. Normally, only the 
name would be on display, between AKA_ and _YET.

<$list 
filter="[{projets-json}join[]splitregexpsplitregexpsplitregexp!is[blank]search-replace::regexp,]"
 
variable=each-line>
«<>»


---

!! real step 2
add fetching "name" and "project" values and arrange them into NAME^PROJECT.

<$list 
filter="[{projets-json}join[]splitregexpsplitregexpsplitregexp!is[blank]search-replace::regexp,]"
 
variable=each-line>
«<>»


!! step 3
As we can't be sure of the order of the index within json objects,we have 
to have two scans: one name then project and the other one as project then 
name. This method can be extended up to three fields ; beyond that would be 
a nightmare (can we sort the fields within a json object?).

<$list 
filter="[{projets-json}join[]splitregexpsplitregexpsplitregexp!is[blank]search-replace::regexp,search-replace::regexp,]"
 
variable=each-line>
«<>»


!! step 4
Sort the lines

<$list 
filter="[{projets-json}join[]splitregexpsplitregexpsplitregexp!is[blank]search-replace::regexp,search-replace::regexp,sortan[]]"
 
variable=each-line>
«<>»


!! step 5

only display the PROJECT value (the part after after "^").

<$list 
filter="[{projets-json}join[]splitregexpsplitregexpsplitregexp!is[blank]search-replace::regexp,search-replace::regexp,sortan[]search-replace::regexp,[]]"
 
variable=each-line>
«<>»

=

and here is what we get:
==
step 1

Get the whole json in a single line and from there into lines of exactly 
one complete json object each.

«"project": "pleiade", "name": "Pléiade v5", "url": "
http:pleiade.test.acmeserver.com"»
«"project": "rnvp", "name": "RNVP preprod", "url": "
https://rnvp.preprod.acmeserver.com"»
«"name": "application de réservation de salles", "url": "
http://ars.test.acmeserver.com";, "project": "resa"»
experimental step 2

add an experiment for capturing a desired kind of data. Normally, only the 
name would be on display, between AKA_ and _YET.

«"project": "pleiade", AKA_Pléiade v5_YET»
«"project": "rnvp", AKA_RNVP preprod_YET»
«AKA_application de réservation de salles_YET»
real step 2

add fetching "name" and "project" values and arrange them into NAME^PROJECT.

«Pléiade v5^pleiade»
«RNVP preprod^rnvp»
«"name": "application de réservation de salles", "url": "
http://ars.test.acmeserver.com";, "project": "resa"»
step 3

As we can't be sure of the order of the index within json objects,we have 
to have two scans: one name then project and the other one as project then 
name. This method can be extended up to three fields ; beyond that would be 
a nightmare (can we sort the fields within a json object?).

«Pléiade v5^pleiade»
«RNVP preprod^rnvp»
«application de réservation de salles^resa»
step 4

Sort the lines

«application de réservation de salles^resa»
«Pléiade v5^pleiade»
«RNVP preprod^rnvp»
step 5

only display the PROJECT value (the part after after "^").

«resa»
«pleiade»
«rnvp»

===

Job done!!!


Now for the two oddities:

1) the syntax search-replace::regexp and not just search-replace:regexp was 
quite a nasty surprise. It should be noted or given an example in the doc.

2) the dot . in regexp should include space (regular space char, of code 
32). it does not. This explains the results in the experimental step 2. The 
workaround is to replace the dot by [\s\S] which is not helping the 
readability of the regexes. See https://regular-expressions.mobi/dot.html 
for more information.

Le mardi 20 avril 2021 à 11:07:20 UTC+2, Jean-Pierre Rivière a écrit :

> nic

[tw5] Re: Pipe | ruins filter. Alternatives?

2021-04-20 Thread Mat
Thanks Alvaro. For some reason I don't get that to work in my context, 
i.e:  https://link-or-ext.tiddlyhost.com/

The workaround I use there is bad but maybe it'll have to do (breifly; the 
user has to himself suffix the pipe character to the pretty title in the 
macro call) 

Thanks.

<:-)

On Tuesday, April 20, 2021 at 2:48:11 PM UTC+2 Álvaro wrote:

> You can use a variable for pipe.
>
> This works
> <$vars l="[[" r="]]" x="|">{{{ hi HelloThere 
> +[joinaddprefixaddsuffix] }}}
> El martes, 20 de abril de 2021 a las 14:18:13 UTC+2, Mat escribió:
>
>> I want to create a pretty title link in a filter. Unfortunately the pipe 
>> character in hi| breaks the filter (ref1 
>> ).
>>
>> E.g these attempts no worky:
>>
>> <$vars l="[[" r="]]">{{{ HelloThere 
>> +[addprefix[hi*|*]addprefix[l]addsuffix[r]] 
>> }}}
>>
>> <$vars l="[[" r="]]">{{{ hi HelloThere +[join[*|*]addprefix[l]addsuffix[r]] 
>> }}}
>>
>> Any ideas what to do? Maybe some magic regepx is needed but I don't know 
>> how to construct it in that case...
>>
>> <:-)
>>
>> ...Hm, that's like my fourth question today and I didn't even have lunch 
>> yet. I have no idea why they all mount up at the same time. I typically 
>> tiddle fiddle for days without questions.
>>
>

-- 
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/ebd7bcf3-7833-41c4-ab13-b84a66977903n%40googlegroups.com.


[tw5] Re: Subfilter recursion

2021-04-20 Thread Yaisog Bonegnasher
I have to admit that I am beginning to like Mark's solution with the 
numbered subfilter definitions, even though I unfairly called it "not 
really pretty". The neat thing about it is that adding another level of 
"pseudo-recursion" is very easy and very clear. Putting everything into a 
single filter is complicated to maintain with all sub-expressions having 
different length (different number of tagging[] constructs). Here, 
everything looks the same, with just some numbers changed. I think I'm 
gonna implement this!

On Sunday, April 18, 2021 at 9:31:20 PM UTC+2 Mark S. wrote:

> My guess is that it's trying to build the complete filter even before it 
> runs, so that's why you hit the recursive limit. That is, it's not running 
> one filter, running the next, testing, etc. It's trying to build the whole 
> thing, which has no way of exiting.
>
> Since you know about how many levels, maybe you could prevent the over-run 
> like this:
>
> \define subfilter-test5() [tagging[]] [tagging[]]
> \define subfilter-test4() [tagging[]] [tagging[]subfilter]
> \define subfilter-test3() [tagging[]] [tagging[]subfilter]
> \define subfilter-test2() [tagging[]] [tagging[]subfilter]
> \define subfilter-test()  [tagging[]] [tagging[]subfilter]
>
> <$set name="test" filter="[[HelloThere]subfilter]">
>   <$list filter="=[enlist]" template="$:/core/ui/ListItemTemplate" />
> 
>
> You can add on as many levels as you think you'll ever need. 
>
> On Sunday, April 18, 2021 at 12:01:51 PM UTC-7 Yaisog Bonegnasher wrote:
>
>> Hi,
>> I recently tried to create a recursive subfilter to find all tiddlers 
>> below a certain tag, no matter how many levels deep (similar to the *kin* 
>> filter, which  is too slow for my large wiki). Unfortunately, I was greeted 
>> with a red-message-box-of-death informing me of too much recursion. 
>> However, there should only be a couple of levels.
>> Are recursive filters at all possible or am I doing something wrong?
>> For a quick example, try this in a new tiddler on tiddlywiki.com:
>> \define subfilter-test() [tagging[]] [tagging[]subfilter]
>>
>> <$set name="test" filter="[[TableOfContents]subfilter]">
>>   <$list filter="=[enlist]" template="$:/core/ui/ListItemTemplate" 
>> />
>> 
>> Any enlightment is greatly appreciated.
>> Best regards
>> Yaisog
>>
>

-- 
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/c70957cf-cbf0-460e-8873-1f379723f0ean%40googlegroups.com.


[tw5] "Recent" view doesn't show today's changes

2021-04-20 Thread Soren Bjornstad
In one of my wikis, I frequently find that the "Recent" tab doesn't show 
the changes I've made on the current day – the view is stuck at showing the 
changes that were made on the most recent prior day that there were any 
changes. Refreshing the page or restarting the server (Node.js method, 
either hosted through TiddlyServer or directly via tiddlywiki --listen) 
does not help. Checking the tiddler files in the wiki folder, they have the 
correct date/time stamp in the *modified* field.

At some point, as I continue changing things and working in the wiki, all 
of the changes I've made that day often show up, but I haven't been able to 
come up with a set of steps that consistently makes this happen.

I went looking for any Recent-related shadow tiddlers I might have messed 
with at some point, but didn't find any.

Has anyone else seen this behavior, or have some idea of where I might 
start trying to debug 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/f579ebe8-b97d-46bf-9030-9874ec8f9da5n%40googlegroups.com.


Re: [tw5] Re: [Announcement] "TW Icons" - A large collection of icons for TiddlyWiki

2021-04-20 Thread Mohammad Rahmani
One the best resources for Tiddlywiki!

Thank you Morosanuae!


Best wishes
Mohammad


On Tue, Apr 20, 2021 at 5:20 PM moros...@gmail.com 
wrote:

> A new version of *"TW Icons"* is available !!!
>
> *v1.6 *(https://morosanuae.github.io/tw-icons). Now with a total of *~43000
> icons* *(16 libraries)*.
>
> *Features*:
>
>- *1 new* library added: *"Phosphor Icons"*.
>- Added a loading (splash) screen — a lighter version of the original
>TiddlyWiki splash screen . *(requested by TiddlyTweeter)*.
>
> For more info, please checkout the "version history".
> On Saturday, April 17, 2021 at 1:38:12 PM UTC+3 TiddlyTweeter wrote:
>
>> moros...@gmail.com wrote:
>>
>> ... I didn't design the app for the mobile devices, so it's not very
>> adaptive also.
>>
>> Right. But actually in Landscape on a smartphone it is actually well
>> usable.
>> Layout breaks a bit but otherwise it is perfectly functional ... for
>> example (on my Android 8 phone) ...
>>
>> [image: Screenshot_20210417-121851.png]
>>
>> Of course, because smart phones are "touch" devices, TW drag-n-drop is
>> not able to function properly as the OS overrides the browser.
>> BUT simple export works FINE on a smart phone.
>>
>> Just comments
>> TT
>>
> --
> You received this message because you are subscribed to the Google Groups
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/0bc17a19-bb49-40d6-81d5-a7bec41dc49cn%40googlegroups.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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAAV1gMBY1KHUy8xxNyg2tUnrZsgED93ieeYZb5ig6W_aM1yjUA%40mail.gmail.com.


Re: [tw5] Re: [Announcement] "TW Icons" - A large collection of icons for TiddlyWiki

2021-04-20 Thread moros...@gmail.com
 A new version of *"TW Icons"* is available !!!

*v1.6 *(https://morosanuae.github.io/tw-icons). Now with a total of *~43000 
icons* *(16 libraries)*. 

*Features*: 

   - *1 new* library added: *"Phosphor Icons"*.
   - Added a loading (splash) screen — a lighter version of the original 
   TiddlyWiki splash screen . *(requested by TiddlyTweeter)*.

For more info, please checkout the "version history". 
On Saturday, April 17, 2021 at 1:38:12 PM UTC+3 TiddlyTweeter wrote:

> moros...@gmail.com wrote:
>
> ... I didn't design the app for the mobile devices, so it's not very 
> adaptive also.
>
> Right. But actually in Landscape on a smartphone it is actually well 
> usable. 
> Layout breaks a bit but otherwise it is perfectly functional ... for 
> example (on my Android 8 phone) ...
>
> [image: Screenshot_20210417-121851.png]
>
> Of course, because smart phones are "touch" devices, TW drag-n-drop is not 
> able to function properly as the OS overrides the browser. 
> BUT simple export works FINE on a smart phone.
>
> Just comments
> TT
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/0bc17a19-bb49-40d6-81d5-a7bec41dc49cn%40googlegroups.com.


[tw5] Re: Pipe | ruins filter. Alternatives?

2021-04-20 Thread Álvaro
You can use a variable for pipe.

This works
<$vars l="[[" r="]]" x="|">{{{ hi HelloThere 
+[joinaddprefixaddsuffix] }}}
El martes, 20 de abril de 2021 a las 14:18:13 UTC+2, Mat escribió:

> I want to create a pretty title link in a filter. Unfortunately the pipe 
> character in hi| breaks the filter (ref1 
> ).
>
> E.g these attempts no worky:
>
> <$vars l="[[" r="]]">{{{ HelloThere 
> +[addprefix[hi*|*]addprefix[l]addsuffix[r]] 
> }}}
>
> <$vars l="[[" r="]]">{{{ hi HelloThere +[join[*|*]addprefix[l]addsuffix[r]] 
> }}}
>
> Any ideas what to do? Maybe some magic regepx is needed but I don't know 
> how to construct it in that case...
>
> <:-)
>
> ...Hm, that's like my fourth question today and I didn't even have lunch 
> yet. I have no idea why they all mount up at the same time. I typically 
> tiddle fiddle for days without questions.
>

-- 
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/8ab6c712-6efa-4119-be40-714adbcc6c62n%40googlegroups.com.


[tw5] Pipe | ruins filter. Alternatives?

2021-04-20 Thread Mat
I want to create a pretty title link in a filter. Unfortunately the pipe 
character in hi| breaks the filter (ref1 
).

E.g these attempts no worky:

<$vars l="[[" r="]]">{{{ HelloThere +[addprefix[hi*|*]addprefix[l]addsuffix[r]] 
}}}

<$vars l="[[" r="]]">{{{ hi HelloThere +[join[*|*]addprefix[l]addsuffix[r]] 
}}}

Any ideas what to do? Maybe some magic regepx is needed but I don't know 
how to construct it in that case...

<:-)

...Hm, that's like my fourth question today and I didn't even have lunch 
yet. I have no idea why they all mount up at the same time. I typically 
tiddle fiddle for days without questions.

-- 
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/d73b36ce-678e-42ca-8fd9-7431d3acb39fn%40googlegroups.com.


[tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Saq Imtiaz
That makes sense and yes it isn't how emptyMessage works, as the variable 
is only set by the ListWidget when the filter has a result.

 I had assumed from your code that you wanted {{!!title}} in the 
emptyMessage to mean you wanted the title of the currentTiddler as set 
outside the list widget.

I think constructing the title in a variable as you have done is the right 
way to approach this for readable code.

On Tuesday, April 20, 2021 at 12:09:18 PM UTC+2 Mat wrote:

> >{{!!title}} in emptyMessage will correspond to the title of the the 
> currentTiddler variable outside the ListWidget. 
> >Perhaps explain what it is you expect when using {{!!title}} in 
> emptyMessage.
>
> Thanks for following up! Exactly, {{!!title}} would get the title outside 
> the listwidget. What I want is for e.g the url "https://mywiki#mytiddler"; 
> to output [[mytiddler]] if it exists as tiddler, otherwise  href="...">mytiddler . The macrocall will (typically) appear in plugin 
> readme tiddlers.
>
> Does this make sense or do I misunderstand something? Thank you.
>
> <:-)
>
>
> On Tuesday, April 20, 2021 at 11:41:00 AM UTC+2 Saq Imtiaz wrote:
>
>> Hi Mat, are you sure about that? 
>>
>> @Saq  - thanks, I actually tried that, but the problem is that 
>>> emptyMessage doesn't know what {{!!title}} is, so to say. (It would be 
>>> desirable that it did!)
>>>
>>>  
>> {{!!title}} in emptyMessage will correspond to the title of the the 
>> currentTiddler variable outside the ListWidget. 
>>
>> Perhaps explain what it is you expect when using {{!!title}} in 
>> emptyMessage.
>>
>>  
>>
>>
>>

-- 
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/3a33d76f-a9c9-4de2-a44c-cabe14436511n%40googlegroups.com.


[tw5] Re: Filter: True if tiddler exists as either tid or shadow.

2021-04-20 Thread Mat
I was indeed missing something obvious! ;-)

Thanks PMario!

<:-)

On Tuesday, April 20, 2021 at 12:18:50 PM UTC+2 PMario wrote:

> Hi, 
> eg: [[$:/plugins/tiddlywiki/browser-sniff/readme]get[title]] will return a 
> title if it exists as shadow or tiddler
> or: [[test]get[title]then[yes]else[no]]  will tell you if the test tiddler 
> exists
>
> -mario
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3f327748-4244-49f9-bd44-e6c56df84f59n%40googlegroups.com.


[tw5] Re: Filter: True if tiddler exists as either tid or shadow.

2021-04-20 Thread PMario
Hi, 
eg: [[$:/plugins/tiddlywiki/browser-sniff/readme]get[title]] will return a 
title if it exists as shadow or tiddler
or: [[test]get[title]then[yes]else[no]]  will tell you if the test tiddler 
exists

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/266999c6-7429-400f-94d4-727ae2d90317n%40googlegroups.com.


[tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Mat
>{{!!title}} in emptyMessage will correspond to the title of the the 
currentTiddler variable outside the ListWidget. 
>Perhaps explain what it is you expect when using {{!!title}} in 
emptyMessage.

Thanks for following up! Exactly, {{!!title}} would get the title outside 
the listwidget. What I want is for e.g the url "https://mywiki#mytiddler"; 
to output [[mytiddler]] if it exists as tiddler, otherwise mytiddler . The macrocall will (typically) appear in plugin 
readme tiddlers.

Does this make sense or do I misunderstand something? Thank you.

<:-)


On Tuesday, April 20, 2021 at 11:41:00 AM UTC+2 Saq Imtiaz wrote:

> Hi Mat, are you sure about that? 
>
> @Saq  - thanks, I actually tried that, but the problem is that 
>> emptyMessage doesn't know what {{!!title}} is, so to say. (It would be 
>> desirable that it did!)
>>
>>  
> {{!!title}} in emptyMessage will correspond to the title of the the 
> currentTiddler variable outside the ListWidget. 
>
> Perhaps explain what it is you expect when using {{!!title}} in 
> emptyMessage.
>
>  
>
>
>

-- 
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/9de41abb-15b5-4631-9247-307952ebab1en%40googlegroups.com.


[tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Saq Imtiaz
Hi Mat, are you sure about that? 

@Saq  - thanks, I actually tried that, but the problem is that emptyMessage 
> doesn't know what {{!!title}} is, so to say. (It would be desirable that it 
> did!)
>
>  
{{!!title}} in emptyMessage will correspond to the title of the the 
currentTiddler variable outside the ListWidget. 

Perhaps explain what it is you expect when using {{!!title}} in 
emptyMessage.

 


-- 
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/dee0bf27-d71e-4d70-aaa2-c9eb421d59c1n%40googlegroups.com.


[tw5] Re: sorting json data

2021-04-20 Thread Jean-Pierre Rivière
nice one too.

I had not thought about using macros to define constants. Handier that 
using variables. Is that a regular feature of your coding, Tones?


Le mardi 20 avril 2021 à 07:34:59 UTC+2, TW Tones a écrit :

> In your example there is a field with the value "name" for every entry, 
> they do not need to be sorted. 
> If on the other hand you are referring to values in the second field like 
> "pleiade", now that is a different story.
>
> Another approach without the JSON mangler is to parse each line, then 
> parse each value;
>
> Here is a hint at how it can be done. Note no json handling, just text 
> handling.
>
> \define open-curly() {
> \define open-square() [
> \define close-square() ]
> \define dbl-quote() "
> \define comma() ,
> \define colon() :
>
> <$list 
> filter="[{Data}splitregexp[\n]!prefix!prefix]" 
> variable=each-line>
> ;<>
> <$list filter="[splitnth[4]]">
>
> 
> 
>
> Regards
> Tones
> On Tuesday, 20 April 2021 at 08:17:02 UTC+10 jn.pierr...@gmail.com wrote:
>
>> Thank you Mark. The macro is a nice thing, but it is not a filter. This 
>> allow to build the html for a sorted table.
>>
>> But there might be some case where I would need to refine the filter to 
>> get a whole list of more complex data out of my filter. BUT this is not 
>> true as of now.
>>
>> With your help, I can achieve what I want in a reasonable amount of code, 
>> and clear code. That's great!
>>
>> Le lundi 19 avril 2021 à 20:34:39 UTC+2, Mark S. a écrit :
>>
>>> This is a slightly different approach that I've used before. The names 
>>> are all fetched in a form where they can be wikified, turned back into a 
>>> list, and then sorted. Then a lookup is done by name for each item and the 
>>> project is extracted. I think from this you can see how you would proceed 
>>> with extracting the URL as well. For this to work of course, the names have 
>>> to be unique. I called the data tiddler "data" here.
>>>
>>> \define getnames()  <$vars lb=" [[" rb="]]" sep="$$"><$list 
>>> filter="[[data]indexes[]addsuffix[/name]]" variable="fetch">{{{ 
>>> [[data]getindexaddprefixaddsuffix] }}}
>>>
>>> \define getprojectbyname(name) 
>>> <$list filter="[[data]indexes[]]" variable="index">
>>> <$list filter="[addsuffix[/name]]" variable=namepath>
>>> <$list filter="[[data]getindexcompare:string:eq<__name__>]">
>>> <$list filter="[addsuffix[/project]]" variable=projectpath>
>>> {{{ [[data]getindex] }}}
>>> 
>>> \end
>>>
>>> <$wikify text="""<>""" name="names">
>>> <$list filter="[enlistsort[]]" variable="name">
>>> Name: <> 
>>> Project: <$macrocall $name="getprojectbyname" name=<> /> 
>>>
>>> 
>>> 
>>>
>>> I've often thought how handy it would be if you could get two outputs 
>>> from a list instead of just one. e.g. both and index and the index/name 
>>> value. 
>>>
>>>
>>> On Monday, April 19, 2021 at 8:56:23 AM UTC-7 jn.pierr...@gmail.com 
>>> wrote:
>>>
 I have a structured json data tiddler name "projects", which looks like 
 this:

 [ 
   { "project": "pleiade", "name": "Pléiade v5", "url": "http:
 pleiade.test.acmeserver.com" },
   { "project": "rnvp", "name": "RNVP preprod", "url": "
 https://rnvp.preprod.acmeserver.com"; },
   { "project": "ars", "name": "application de réservation de salles", 
 "url": "http://ars.test.acmeserver.com"; }
  ]

 I want to show this a list sorted on the "name" field. This is the 
 sorting part which I struggle to get, unsuccessfully.

 I have installed the jsonmangler plugin. I can't find a reherence doc 
 though. With numerous tries, I've been able to get my list, but not sorted.

 I have this idea to constitute a list of tiddlers where each item is 
 "name^index" where name is the name and index the index of each record. 
 Then I wold sort the list and reduce it to the index part to get the 
 sorted 
 list of index which would enable me to achieve the display I want.

 But I cannot build this name-index list. I have the list of the names 
 in the natural order and the list of numbers which are the natural indexes 
 of the items. I can then get a list list like "t0 t1 t2 0 1 2". I can in 
 fact be a little clever and build "t0 t1 t2 ^0; ^1; ^2;"  instead and then 
 what I need is getting "t0 ^0; t1 ^1; t2 ^2;". This is the critical step I 
 don't know how to do.

 (because from there I would join it in "t0^0;t1^1;t2^2;", split that 
 along the ";" character and get the list of name^index I wish.)

 I know how to do it manually in the case of three records, like this:

 
 <$list variable="demo" filter="[enlist[t0 t1 t2]append[^0; ^1; 
 ^2;]move:-2[^0;]move:-1[^1;]join[]split[;]!is[blank]]">
 <>
 
 

 So the general idea would be to generate the part like 
 "move:-2[^0;]move:-1[^1;]" from the number of records. That is beginning 
 to 
 be very complex for what that is, how common this seems to be to me.

[tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Mat
@Saq  - thanks, I actually tried that, but the problem is that emptyMessage 
doesn't know what {{!!title}} is, so to say. (It would be desirable that it 
did!)

<:-)


On Tuesday, April 20, 2021 at 10:26:55 AM UTC+2 Saq Imtiaz wrote:

> You could also try something like this (untested):
>
> \define linkOrExt(url)
> <$list filter="""$url$ +[split[#]rest[]decodeuri[]join[ ]!is[missing]]""" 
> emptyMessage="""> rel="noopener noreferrer" 
> target="_blank">{{!!title}}"""> {{{ 
> [<__url__>split[#]rest[]decodeuri[]join[ ]] }}} 
> \end
>
> On Tuesday, April 20, 2021 at 10:24:31 AM UTC+2 Mat wrote:
>
>> Saq Imtiaz wrote:
>>
>>> Use a filter run prefix.
>>>
>>
>> Appreciated. That'll be useful in other cases but it turns out it was not 
>> relevant for this issue.
>>
>> 
>>
>>
>> But formulating the problem that emptyMessage was not linkified did spark 
>> some thoughts so the current status is decent enough:
>>
>> \define linkOrExt(url)
>> <$vars
>>link={{{ $url$ +[split[#]rest[]decodeuri[]join[ ]] }}}
>>lbrack="[["  rbrack="]]">
>> <$list
>>filter="""[is[missing]]"""
>>emptyMessage={{{ [addprefixaddsuffix] }}} >
>>   > target="_blank">{{!!title}}
>> 
>> 
>> \end
>>
>> Decent enough.
>> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/59f5e92a-7e7f-4851-a347-cd4c768d4e82n%40googlegroups.com.


[tw5] Filter: True if tiddler exists as either tid or shadow.

2021-04-20 Thread Mat
Ehm... I must be missing something very obvious:

How can I tell if the filter output thus far exists at all, i.e regardeless 
if it is a tiddler or a shadow?

For example
...is[tiddler+shadow] is an invalid oparand for the is operator

Maybe there is some way to tell if the filter output thus far is empty? I 
was thinking maybe is[blank] is intended for this but in that case {{{ "" 
+[is[blank]] }}} should return true or something similar (right?), but 
there is no output.

Ideas?

<:-)






-- 
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/edefaed8-ba9a-4e06-b6cf-f9d53e243b0an%40googlegroups.com.


[tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Saq Imtiaz
You could also try something like this (untested):

\define linkOrExt(url)
<$list filter="""$url$ +[split[#]rest[]decodeuri[]join[ ]!is[missing]]""" 
emptyMessage="""> rel="noopener noreferrer" 
target="_blank">{{!!title}}"""> {{{ 
[<__url__>split[#]rest[]decodeuri[]join[ ]] }}} 
\end

On Tuesday, April 20, 2021 at 10:24:31 AM UTC+2 Mat wrote:

> Saq Imtiaz wrote:
>
>> Use a filter run prefix.
>>
>
> Appreciated. That'll be useful in other cases but it turns out it was not 
> relevant for this issue.
>
> 
>
>
> But formulating the problem that emptyMessage was not linkified did spark 
> some thoughts so the current status is decent enough:
>
> \define linkOrExt(url)
> <$vars
>link={{{ $url$ +[split[#]rest[]decodeuri[]join[ ]] }}}
>lbrack="[["  rbrack="]]">
> <$list
>filter="""[is[missing]]"""
>emptyMessage={{{ [addprefixaddsuffix] }}} >
>target="_blank">{{!!title}}
> 
> 
> \end
>
> Decent enough.
> 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2300b58a-188f-4068-8bbf-fed1c987199cn%40googlegroups.com.


[tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Mat
Saq Imtiaz wrote:

> Use a filter run prefix.
>

Appreciated. That'll be useful in other cases but it turns out it was not 
relevant for this issue.




But formulating the problem that emptyMessage was not linkified did spark 
some thoughts so the current status is decent enough:

\define linkOrExt(url)
<$vars
   link={{{ $url$ +[split[#]rest[]decodeuri[]join[ ]] }}}
   lbrack="[["  rbrack="]]">
<$list
   filter="""[is[missing]]"""
   emptyMessage={{{ [addprefixaddsuffix] }}} >
  {{!!title}}


\end

Decent enough.
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e25c546b-4755-4106-a3b3-117f52262fc1n%40googlegroups.com.


[tw5] Re: Return link if exists otherwise external link

2021-04-20 Thread Saq Imtiaz
Quick thought:

 (I wish the else op could somehow enclose a full expression directly in 
> the filter: "...else" )
>
 
Use a filter run prefix.

[... my first filter run..] :else[.. my other filter run...]

-- 
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/d6d50425-186e-42c0-a801-472be8d1212fn%40googlegroups.com.


[tw5] Return link if exists otherwise external link

2021-04-20 Thread Mat
In the *readme *of a plugin I want to link to a tiddler that is not part of 
the plugin. 
If that tiddler exists in the wiki, then the link should be a regular 
tiddlylink.
If the tiddler is missing then it should be an external url to where that 
tiddler can be found.

The following works, calling it with
> 

\define link() {{{ [<__url__>split[#]rest[]decodeuri[]join[ ]] }}}
\define linkOrExt(url)
<$list filter="""$url$ +[split[#]rest[]decodeuri[]join[ ]is[missing]]""" 
emptyMessage=<>> {{!!title}}

\end

...but I am hoping for something more elegant that doesn't need the extra 
macro. And it seems silly I have to do the splitting twice. Maybe something 
with then or else can be used but I can't fully wrap my head around these 
operators. (I wish the else op could somehow enclose a full expression 
directly in the filter: "...else" )

Note: Trying to avoid the extra macro by doing:
emptyMessage={{{ [<__url__>split[#]rest[]decodeuri[]join[ ]] }}}
...returns a textified title, but it needs to be a link.

Ideas anyone?

<:-)

-- 
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/461757fb-e85c-4ead-922a-3087dd1cd0a4n%40googlegroups.com.