[tw5] Re: Very basic EditTextWidget tutorial and how I often specify target tiddler name

2021-09-10 Thread amreus
Simplified work-flow videos like this would have shortened my TiddlyWiki 
learning curve considerably. Please keep it up if you can. 

Note that in 5.2.0 the EditTextWidget *can* edit fields in the same tiddler 
as the widget without losing focus. 

On Friday, September 10, 2021 at 2:43:05 AM UTC-4 strikke...@gmail.com 
wrote:

> Please Charlie, do not be harsh on yourself. You do know, that videos 
> about Tiddlywiki and what we can do in tiddlywiki is our all time 
> favourites.
> I like that you are creating several smaller videos on the subject, that 
> makes it easier to understand and follow - and keep up the concentration. 
> That makes it easier for me - and I would guess others  - suffering some 
> degree of a language barrier. 
>
>
> On Friday, September 10, 2021 at 5:23:23 AM UTC+2 cj.v...@gmail.com wrote:
>
>> https://youtu.be/qOJc2sFiPd8
>>
>> Not much of an award-winning video.  Although I really don't like 
>> recording myself, I strangely had fun doing this one.
>>
>> Maybe because I wasn't tripping all over myself quite as badly as my 
>> norm.  Well, the outtakes of my first three tries would prove otherwise...
>>
>

-- 
You received this message because you are subscribed to the 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/db649e50-cc4b-46c1-a95a-7c7a344b5ff7n%40googlegroups.com.


[tw5] Re: Scrollable Sidebar Tabs?

2021-09-02 Thread amreus
Since I can't reply there, Eric Shulman posted a pure css solution onthe 
talk forum:

https://talk.tiddlywiki.org/t/tw5-scrollable-sidebar-tabs/68/4

Thanks Eric!


On Monday, August 16, 2021 at 10:59:09 PM UTC-4 TW Tones wrote:

> Thanks for Sharing I will test it out!
>
> Tones
>
> On Tuesday, 17 August 2021 at 02:08:37 UTC+10 amreus wrote:
>
>> The attached is a sample of a scrollable More/All tab. Import it to 
>> tiddlywiki.com.  I just think it it's a better experience than having 
>> the entire sidebar scroll.
>>
>> I think an issue might be what height do you set the scrollble part to? 
>> Could it be calculated from the existing sidebar-segments?
>>
>> <$scrollable class="tc-scrollable-demo">
>> <$list filter={{$:/core/Filters/AllTiddlers!!filter}} 
>> template="$:/core/ui/ListItemTemplate"/>
>> 
>>
>> On Monday, August 16, 2021 at 10:43:19 AM UTC-4 amreus wrote:
>>
>>>
>>> Another style question - is there one place where I can make all the 
>>> sidebar tabs scrollable, or does each tiddler tagged $:/tags/SideBar 
>>> and  $:/tags/MoreSideBar need to wrapped in a scrollable widget?
>>>
>>> Thanks. 
>>>
>>> I think all of the sidebar tabs should be scrollable by default so the 
>>> entire sidebar does not scroll out of view. Or maybe all of the 
>>> SidebarSegments above the tabs should be fixed position.
>>>
>>>
>>>
>>>

-- 
You received this message because you are subscribed to the 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/cb0543f4-350f-489a-872f-0c74a4b88ad0n%40googlegroups.com.


Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread amreus
Mohammad.

That is brilliant!

I made many attempts at a filter but never was able to get it.  The missing 
piece for me is the currentTiddler in the criteria variable.  In the 
context of the list, currentTiddler is the surname.  It makes sense after I 
see it.  This indicates I am still not understanding macros and variables 
correctly.

Thanks again!


On Monday, August 30, 2021 at 4:29:58 PM UTC-4 Mohammad wrote:

> Ah, sorry I did not notice a sorted output was requested! This is the 
> final solution with sort capability!
>
> ```
> 
> <$vars criteria="[all[tiddlers]surnamecount[]]">
> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]] 
> +[!sortsub:number]">
>
> <$link/>(<$count 
> filter="[all[tiddlers]surname]"/>)
> 
> 
> 
> ```
> Note, this works in TW 5.1.23+
>
>
>
> Best wishes
> Mohammad
>
>
> On Mon, Aug 30, 2021 at 11:58 PM amreus  wrote:
>
>> Thank you Mohammad,
>>
>> I have learned much from your wikis on github.
>>
>> However, in your enthusiasm I think you over-looked the desire to sort 
>> the names by count.  
>>
>> I thought I saw an old post that showed a possible way by using an 
>> intermediate list, prefixing the count to the title with a delimiter, 
>> sorting the list, and finally splitting the count from the title - but I am 
>> unable to find it using search, and also do not recall if the method could 
>> be applied in this case.
>>
>>
>> On Monday, August 30, 2021 at 11:28:26 AM UTC-4 Mohammad wrote:
>>
>>> Jim,
>>> Give a try with this script!
>>>
>>> 
>>> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]"> 
>>> <$link/>(<$count 
>>> filter="[all[tiddlers]surname]"/>)
>>> 
>>> 
>>> You can also replace <$link/>  with <$text text=<>/>
>>>
>>>
>>> Best wishes
>>> Mohammad
>>>
>>>
>>> On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:
>>>
>>>> Not OP but in my case, I'd like to generate a list of surnames sorted 
>>>> by how many tiddlers share the same surname field.
>>>>
>>>> Output should look similar to this:
>>>>
>>>>
>>>>- Took (26)
>>>>- Brandybuck (24)
>>>>- Baggins (24)
>>>>- Bolger (22)
>>>>- Boffin (18)
>>>>- Gardner (14)
>>>>- Gamgee (7)
>>>>- Burrows (7)
>>>>
>>>>
>>>> On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:
>>>>
>>>>> Can you maybe upload a small wiki with some tiddlers that could serve 
>>>>> as an example? It's pretty difficult to go into more depth without any 
>>>>> data 
>>>>> to try it on.
>>>>>>
>>>>>> teric wikiery would be greatly appreciated...
>>>>>>>>
>>>>>>> -- 
>>>> You received this message because you 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/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/tiddlywiki/4feea918-07db-46d9-9489-a23cea65658dn%40googlegroups.com?utm_medium=email_source=footer>
>>>> .
>>>>
>>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to tiddlywiki+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/d9293190-4bca-46ef-923a-d0ce0a8b0270n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/tiddlywiki/d9293190-4bca-46ef-923a-d0ce0a8b0270n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/6bf6631c-5125-4e2d-af58-8909b4eeb9e8n%40googlegroups.com.


Re: [tw5] Re: List sort by count field operator

2021-08-30 Thread amreus
Thank you Mohammad,

I have learned much from your wikis on github.

However, in your enthusiasm I think you over-looked the desire to sort the 
names by count.  

I thought I saw an old post that showed a possible way by using an 
intermediate list, prefixing the count to the title with a delimiter, 
sorting the list, and finally splitting the count from the title - but I am 
unable to find it using search, and also do not recall if the method could 
be applied in this case.


On Monday, August 30, 2021 at 11:28:26 AM UTC-4 Mohammad wrote:

> Jim,
> Give a try with this script!
>
> 
> <$list filter="[all[tiddlers]!is[system]each[surname]get[surname]]"> 
> <$link/>(<$count 
> filter="[all[tiddlers]surname]"/>)
> 
> 
> You can also replace <$link/>  with <$text text=<>/>
>
>
> Best wishes
> Mohammad
>
>
> On Sun, Aug 29, 2021 at 6:15 PM Jim  wrote:
>
>> Not OP but in my case, I'd like to generate a list of surnames sorted by 
>> how many tiddlers share the same surname field.
>>
>> Output should look similar to this:
>>
>>
>>- Took (26)
>>- Brandybuck (24)
>>- Baggins (24)
>>- Bolger (22)
>>- Boffin (18)
>>- Gardner (14)
>>- Gamgee (7)
>>- Burrows (7)
>>
>>
>> On Sunday, August 29, 2021 at 9:10:08 AM UTC-4 Soren Bjornstad wrote:
>>
>>> Can you maybe upload a small wiki with some tiddlers that could serve as 
>>> an example? It's pretty difficult to go into more depth without any data to 
>>> try it on.

 teric wikiery would be greatly appreciated...
>>
> -- 
>> You received this message because you 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/4feea918-07db-46d9-9489-a23cea65658dn%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/d9293190-4bca-46ef-923a-d0ce0a8b0270n%40googlegroups.com.


[tw5] Sidebar CSS

2021-08-17 Thread amreus

Hello,

I am trying to set up my wiki so i can use it on my phone as well as 
desktop.

I don't expect to be editing tiddlers or writing filters on the phone.  
That will be done on the desktop.  But I do want to set up the sidebar with 
some tabs and buttons for use on the phone.  I find this is working fairly 
well for me so far.

What I would like to do is set the sidebar width to the same pixel width as 
my phone.  Where can I add the style to add a border around the sidebar, 
and set it's width to exactly 375 pixels?

Thanks.

-- 
You received this message because you are subscribed to the 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/cd6b3364-896d-454f-9ff4-d43c3e9017b4n%40googlegroups.com.


[tw5] Re: Scrollable Sidebar Tabs?

2021-08-16 Thread amreus
The attached is a sample of a scrollable More/All tab. Import it to 
tiddlywiki.com.  I just think it it's a better experience than having the 
entire sidebar scroll.

I think an issue might be what height do you set the scrollble part to? 
Could it be calculated from the existing sidebar-segments?

<$scrollable class="tc-scrollable-demo">
<$list filter={{$:/core/Filters/AllTiddlers!!filter}} 
template="$:/core/ui/ListItemTemplate"/>


On Monday, August 16, 2021 at 10:43:19 AM UTC-4 amreus wrote:

>
> Another style question - is there one place where I can make all the 
> sidebar tabs scrollable, or does each tiddler tagged $:/tags/SideBar and  
> $:/tags/MoreSideBar need to wrapped in a scrollable widget?
>
> Thanks. 
>
> I think all of the sidebar tabs should be scrollable by default so the 
> entire sidebar does not scroll out of view. Or maybe all of the 
> SidebarSegments above the tabs should be fixed position.
>
>
>
>

-- 
You received this message because you are subscribed to the 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/2b4afe37-a8b8-4e16-91d2-e0be807d9d17n%40googlegroups.com.


core_ui_more_all.json
Description: application/json


[tw5] Scrollable Sidebar Tabs?

2021-08-16 Thread amreus

Another style question - is there one place where I can make all the 
sidebar tabs scrollable, or does each tiddler tagged $:/tags/SideBar and  
$:/tags/MoreSideBar need to wrapped in a scrollable widget?

Thanks. 

I think all of the sidebar tabs should be scrollable by default so the 
entire sidebar does not scroll out of view. Or maybe all of the 
SidebarSegments above the tabs should be fixed position.



-- 
You received this message because you are subscribed to the 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/56e1d107-1a42-4675-8dd5-4c4a58b0a143n%40googlegroups.com.


[tw5] Re: ViewToolbar expand on hover?

2021-08-16 Thread amreus
Also has anyone experimented with a right-aligned vertical ViewToolbar?  It 
would make short tiddlers taller, but I think it might make for an 
interesting option.

On Monday, August 16, 2021 at 9:07:34 AM UTC-4 amreus wrote:

>
> I am sure I have seen someone's ViewToolbar expand when hovering the mouse 
> over it.  Is there a link for an implementation?  
>
> I'd like to try it. My toolbar is getting longer as I add my own tools.  I 
> am also wondering if the expand-on-hover would work better, or maybe the 
> title and toolbar need to be on separate lines which I have no idea how to 
> do at the moment.
>
> Thanks.
>
>
>

-- 
You received this message because you are subscribed to the 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/a52c0a25-f241-46ce-9cc1-7edd7fcc98b7n%40googlegroups.com.


[tw5] ViewToolbar expand on hover?

2021-08-16 Thread amreus

I am sure I have seen someone's ViewToolbar expand when hovering the mouse 
over it.  Is there a link for an implementation?  

I'd like to try it. My toolbar is getting longer as I add my own tools.  I 
am also wondering if the expand-on-hover would work better, or maybe the 
title and toolbar need to be on separate lines which I have no idea how to 
do at the moment.

Thanks.


-- 
You received this message because you are subscribed to the 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/28980ecf-f2d2-463b-b197-f6591050e929n%40googlegroups.com.


[tw5] Re: Dragable items in List Tab?

2021-08-07 Thread amreus
Thanks for the replies.  I ended up with something very close to Eric first 
example except I added a separate ListEdit tab in the Info area.  If you 
read the Github discussion, Jeremy seems to like the idea so perhaps it'll 
be a feature soon.

Thanks.

On Thursday, August 5, 2021 at 9:53:51 PM UTC-4 Eric Shulman wrote:

> On Thursday, August 5, 2021 at 6:35:09 PM UTC-7 Eric Shulman wrote:
>
>> This is actually quite easy to do, using the *list-links-draggable* macro
>>
>
> errata: my previous solution omitted the display of the "List/Empty" 
> message when the list field is empty.
>
> Here's a corrected version that includes the "List/Empty" message:
> <$list filter="[list{!!title}limit[1]]" emptyMessage=<> 
> variable="has_list_items">
><$macrocall $name="list-links-draggable" type="span" subtype="div" 
> itemTemplate="$:/core/ui/ListItemTemplate"/>
> 
>
> Note:
> * The outer $list widget checks to see if the list field has at least 1 
> item. If it doesn't, the fallback emptyMessage content is displayed.
> * Using variable="has_list_items" preserves the currentTiddler context 
> for use by the $macrocall contained within the $list widget.
>
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/76d58bf5-cbd8-459e-89e8-555e9e29a681n%40googlegroups.com.


[tw5] Dragable items in List Tab?

2021-08-05 Thread amreus

Good morning,

Is there some reason items in the List tab could not be made draggable for 
re-ordering? It seems like this would be a more accessible way to re-order 
toolbars, as an example.


  [image: 2021-08-05_062420.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/e8fe308e-26fe-4035-815e-39416a840a00n%40googlegroups.com.


[tw5] Re: Is it possible to apply conditional styling to links?

2021-07-31 Thread amreus
AH I read your question wrong. 

You want every link TO a tiddler to be styled.  I still think it's possible 
even though I don't know css selectors well enough do it. 

the css might be something like:

a[title="Your Title"] { color: purple;}


On Saturday, July 31, 2021 at 3:50:43 PM UTC-4 Si wrote:

> For example say I wanted every link to a tiddler with the tag "Purple" to 
> appear purple.
>
> Just wondering if this is possible without diving into something like 
> $:/core/modules/widgets/link.js 
> ?
>
>

-- 
You received this message because you are subscribed to the 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/1a3c3a8b-06b6-4d52-9b7f-495ea38cbed3n%40googlegroups.com.


[tw5] Re: Is it possible to apply conditional styling to links?

2021-07-31 Thread amreus
It's possible using a stylesheet and css attribute selectors.

See this TiddlyWiki page 
for the 
explanation.

Look here 
for
 
a simple example.

 

On Saturday, July 31, 2021 at 3:50:43 PM UTC-4 Si wrote:

> For example say I wanted every link to a tiddler with the tag "Purple" to 
> appear purple.
>
> Just wondering if this is possible without diving into something like 
> $:/core/modules/widgets/link.js 
> ?
>
>

-- 
You received this message because you are subscribed to the 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/2724a8e0-0a30-4601-bb8b-07b2f655bdfen%40googlegroups.com.


[tw5] Re: List with tags and links to topics

2021-07-03 Thread amreus
Could use a link widget...

**




*<$list 
filter="[tag[Features]sort[title]]"><$link/>{{||$:/core/ui/ViewTemplate/tags}}*
 

On Saturday, July 3, 2021 at 11:18:15 AM UTC-4 miket...@gmail.com wrote:

> I love this kind of list I found in the documentation.
> https://i.imgur.com/4Hh7Rcs.jpg
>
>
>
>
>
>
> *<$list 
> filter="[tag[Features]sort[title]]"><>{{||$:/core/ui/ViewTemplate/tags}}*
>
> But I want to be able to click on the headings to navigate. And it just 
> doesn't work (only Camel case on example).
> I tried to put it inside the HTML but it doesn't work.
>
>
> * href="#<>"><> href="#{{!!title}}">{{!!title}}*
>
> Variables <> {{!!title}} are not readable inside the HTML 
> tag <> and no links are received.
>
> https://i.imgur.com/QD3MXR1.jpg

-- 
You received this message because you are subscribed to the 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/2bc3d966-e0c5-4c3f-894a-817af9f9e57cn%40googlegroups.com.


[tw5] Re: Do I recall a "distancer" for indenting?

2021-02-22 Thread amreus
I stole this from someone, don't remember who sorry: 

\define hspace(width:"25px") 

On Monday, February 22, 2021 at 10:03:53 AM UTC-5 Mat wrote:

> Wasn't a "distancer" introduced fairly recently, i.e something to use 
> instead of  to create a small indent or gap in a line?
> I can't find it in the docs or in the release notes and I don't want to 
> retort to multiple  nor a full  or some such.
>
> Anybody remember? 
>
> <:-)
>

-- 
You received this message because you are subscribed to the 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/cc0d7bae-9711-4829-8342-f7291bb66f99n%40googlegroups.com.


[tw5] Re: Help with lists & filters

2021-02-20 Thread amreus
Sure in place of <> use:

<$macrocall $name=tag tag=<>/>



On Saturday, February 20, 2021 at 10:44:08 AM UTC-5 bartosz.w...@gmail.com 
wrote:

> Perfect. Thank you very much.
>
> But would it be possible to display tags as tag pills?
>
> sobota, 20 lutego 2021 o 14:34:04 UTC+1 amreus napisał(a):
>
>> Maybe this:
>>
>>  <$list filter="[tag[Master]sort[title]]">
>> <$link/>
>> <$list filter="[tags[]![Master]]" variable=tagname>
>> <>
>> 
>> 
>> 
>>
>> On Saturday, February 20, 2021 at 7:55:02 AM UTC-5 bartosz.w...@gmail.com 
>> wrote:
>>
>>> Codeblock did not work :(
>>>
>>> sobota, 20 lutego 2021 o 13:53:21 UTC+1 Bartosz Wilinski napisał(a):
>>>
>>>>
>>>> Hello there.
>>>>
>>>> I have two questions:
>>>>
>>>>1. Is there a way to *exclude the tag from displaying* *in a custom 
>>>>list*?
>>>>2. Is it possible to *display any part of TOC using list widget*?
>>>>
>>>> Broader explanation. For some reason or another, part of my TOC looks 
>>>> like this (for convenience I will put tags in square brackets):
>>>>
>>>>- Example [TOC]
>>>>- X [Example]
>>>>  - Tiddler A [X] [Y] [Master Tag]
>>>>  - Tiddler B [X] [Z] [Master Tag] 
>>>>   - Y [Example]
>>>>  - Tiddler A [X] [Y] [Master Tag] 
>>>>  - Tiddler C [Y] [Z] [Master Tag] 
>>>>   - Z [Example]
>>>>  - Tiddler B [X] [Z] [Master Tag] 
>>>>  - Tiddler C [Y] [Z] [Master Tag]
>>>>   
>>>> Simple non-linear mulit-categorisation. Or something. 
>>>>
>>>> I would like to make list of tiddlers A-C, that display tag-categories 
>>>> (X, Y, Z) in same time. Doable:
>>>>
>>>> ``html 
>>>> <$list filter="[tag[Master tag]sort[title]]">
>>>> <$link/>
>>>> {{||$:/core/ui/ViewTemplate/tags}}
>>>> 
>>>> ``` 
>>>>
>>>> But maybe there is a way to display all tags, but skip only Master Tag?
>>>>
>>>> Or maybe filter could somehow be based on TOC, ommiting a need for 
>>>> Master Tag?
>>>>
>>>> I would be grateful for your advice.
>>>>
>>>> -Bartosz
>>>>
>>>

-- 
You received this message because you are subscribed to the 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/2933ec0e-2fe9-4224-ac6c-8f62912d0557n%40googlegroups.com.


[tw5] Re: Populate field upon saving tiddler

2021-02-20 Thread amreus
Mike has the right idea. 

Here is a link to an example that shows one possible use case:

https://amreus.tiddlyhost.com/#View%20Template%20for%20Person:%5B%5BView%20Template%20for%20Person%5D%5D%20Amreus

* If tiddlers that are tagged "Person" have 2 fields: "first-name" and 
"last-name".
* The View Template tiddler displays the full name in any tiddler tagged 
"Person"


On Saturday, February 20, 2021 at 8:45:11 AM UTC-5 mwik...@gmail.com wrote:

> You might consider just using transclusion or macros rather than store 
> duplicative information. 
>
> You can then just use something like {{!!firstname}} {{!!lastname}} or 
> <> where you need to.
>
> You might be able to do what you want to do by hooking action widgets into 
> a separate button or the system/tiddler save button but it might end up 
> being an awkward and error-prone way of doing things.
>
> /Mike
>
> On Saturday, February 20, 2021 at 12:51:05 AM UTC-4 switchplayer wrote:
>
>> Hello, 
>>
>> I am wanting to find a way to have a field populated/updated each time I 
>> save the tiddler. This field should take values from two other fields. 
>>
>> Simple example:
>>
>> (Field 1) First Name: DA
>> (Field 2) Last Name: Carson
>>
>> (Field 3) Full Name: DA Carson
>>
>>
>> I want Field 3 to be populated with the values from Field 1 and Field 2 
>> each time the tiddler is saved.
>>
>> Definitely appreciate any input here...still a newbie with TiddlyWiki!
>>
>>
>>
>>
>>

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


[tw5] Re: Help with lists & filters

2021-02-20 Thread amreus
Maybe this:

 <$list filter="[tag[Master]sort[title]]">
<$link/>
<$list filter="[tags[]![Master]]" variable=tagname>
<>




On Saturday, February 20, 2021 at 7:55:02 AM UTC-5 bartosz.w...@gmail.com 
wrote:

> Codeblock did not work :(
>
> sobota, 20 lutego 2021 o 13:53:21 UTC+1 Bartosz Wilinski napisał(a):
>
>>
>> Hello there.
>>
>> I have two questions:
>>
>>1. Is there a way to *exclude the tag from displaying* *in a custom 
>>list*?
>>2. Is it possible to *display any part of TOC using list widget*?
>>
>> Broader explanation. For some reason or another, part of my TOC looks 
>> like this (for convenience I will put tags in square brackets):
>>
>>- Example [TOC]
>>- X [Example]
>>  - Tiddler A [X] [Y] [Master Tag]
>>  - Tiddler B [X] [Z] [Master Tag] 
>>   - Y [Example]
>>  - Tiddler A [X] [Y] [Master Tag] 
>>  - Tiddler C [Y] [Z] [Master Tag] 
>>   - Z [Example]
>>  - Tiddler B [X] [Z] [Master Tag] 
>>  - Tiddler C [Y] [Z] [Master Tag]
>>   
>> Simple non-linear mulit-categorisation. Or something. 
>>
>> I would like to make list of tiddlers A-C, that display tag-categories 
>> (X, Y, Z) in same time. Doable:
>>
>> ``html 
>> <$list filter="[tag[Master tag]sort[title]]">
>> <$link/>
>> {{||$:/core/ui/ViewTemplate/tags}}
>> 
>> ``` 
>>
>> But maybe there is a way to display all tags, but skip only Master Tag?
>>
>> Or maybe filter could somehow be based on TOC, ommiting a need for Master 
>> Tag?
>>
>> I would be grateful for your advice.
>>
>> -Bartosz
>>
>

-- 
You received this message because you are subscribed to the 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/8ed60de8-ce66-41ef-89ef-da6c556e6827n%40googlegroups.com.


[tw5] Re: Prevent emdash replacing 2 dashes?

2021-02-13 Thread amreus

Using the html code for a hyphen () in the template string works 
without needing to turn off the dash parsing rule. Attached is the updated 
example for a tiddler for constructing a command line.

-- 
You received this message because you are subscribed to the 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/e0789b38-ee6a-4f22-a048-89aa6ed2fb59n%40googlegroups.com.


remove-old-files.json
Description: application/json


[tw5] Re: created field containing repeated NaN's?

2021-02-09 Thread amreus
I think the "NaN" string comes from this function when the date string is 
not valid:

$tw.utils.stringifyDate(new Date("20201016232045362")); 


NaN is "Not A Number" in Javascript which I assume is where the result 
comes from. 
On Tuesday, February 9, 2021 at 3:28:39 PM UTC-5 amreus wrote:

> $tw.utils.stringifyDate(new Date("20201016232045362")); 
>
>
>
> On Monday, February 8, 2021 at 10:04:03 PM UTC-5 Soren Bjornstad wrote:
>
>> Tones, you would think, but adding the quotation marks didn't change the 
>> result, and it does appear that (single) square brackets are OK, for 
>> instance this is fine:
>>
>> \define testbrackets(one, two) $one$ | $two$
>> <>
>>
>> (Double square brackets makes the  part bleed into the *two* parameter, 
>> though, because that's one way of quoting a parameter.)
>>
>> Mark, this was an intriguing possibility, but I opened the tiddler in a 
>> text editor and it actually says:
>>
>> created: NaNNaNNaNNaNNaNNaNNaN
>>
>> So it does appear to actually be the text that TiddlyWiki saved in the 
>> field.
>>
>> Maybe the only way to answer this one is by diving into the source code 
>> to see what special logic happens when the created field is set. Not that 
>> it really matters a whole lot. Just my overactive drive to understand 
>> exactly why everything doesn't work speaking here. :-)
>>
>> On Sunday, February 7, 2021 at 11:00:38 PM UTC-6 Mark S. wrote:
>>
>>> If you clear the created field in a tiddler, save, and then open it 
>>> again, you'll see the NaNa... displayed. So this seems to be what the field 
>>> displays when it is empty or contains text it can't interpret. You can 
>>> change !!created to !!myfield and then indeed see the literal contents of 
>>> your macro displayed.
>>>
>>> On Sunday, February 7, 2021 at 9:29:43 AM UTC-8 Soren Bjornstad wrote:
>>>
>>>> While trying to create a button that resets the *created* date on a 
>>>> tiddler, I absentmindedly tried the following:
>>>>
>>>> \define now-timestamp() <>
>>>> <$button set="!!created" setTo=<>>
>>>> Created Now
>>>> 
>>>>
>>>> Now, I'm aware this snippet doesn't work and can't be expected to 
>>>> because the contents of *now-timestamp* aren't wikified when the macro 
>>>> call is being used as a transcluded widget-attribute value. I've since 
>>>> produced a correct version. However, I'm still confused about the result 
>>>> of 
>>>> clicking the button: the *created* field was set to 
>>>> NaNNaNNaNNaNNaNNaNNaN. I'm puzzled by what kind of calculation the 
>>>> *setTo* attribute of the $button widget is doing that's able to create 
>>>> a bunch of concatenated NaNs. I would have expected to simply get the 
>>>> literal text <> in the field.
>>>>
>>>> Is there something special about the *created* field in this regard?
>>>>
>>>

-- 
You received this message because you are subscribed to the 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/901e4905-7635-4235-8825-b338da4f6695n%40googlegroups.com.


[tw5] Re: created field containing repeated NaN's?

2021-02-09 Thread amreus
 $tw.utils.stringifyDate(new Date("20201016232045362")); 



On Monday, February 8, 2021 at 10:04:03 PM UTC-5 Soren Bjornstad wrote:

> Tones, you would think, but adding the quotation marks didn't change the 
> result, and it does appear that (single) square brackets are OK, for 
> instance this is fine:
>
> \define testbrackets(one, two) $one$ | $two$
> <>
>
> (Double square brackets makes the  part bleed into the *two* parameter, 
> though, because that's one way of quoting a parameter.)
>
> Mark, this was an intriguing possibility, but I opened the tiddler in a 
> text editor and it actually says:
>
> created: NaNNaNNaNNaNNaNNaNNaN
>
> So it does appear to actually be the text that TiddlyWiki saved in the 
> field.
>
> Maybe the only way to answer this one is by diving into the source code to 
> see what special logic happens when the created field is set. Not that it 
> really matters a whole lot. Just my overactive drive to understand exactly 
> why everything doesn't work speaking here. :-)
>
> On Sunday, February 7, 2021 at 11:00:38 PM UTC-6 Mark S. wrote:
>
>> If you clear the created field in a tiddler, save, and then open it 
>> again, you'll see the NaNa... displayed. So this seems to be what the field 
>> displays when it is empty or contains text it can't interpret. You can 
>> change !!created to !!myfield and then indeed see the literal contents of 
>> your macro displayed.
>>
>> On Sunday, February 7, 2021 at 9:29:43 AM UTC-8 Soren Bjornstad wrote:
>>
>>> While trying to create a button that resets the *created* date on a 
>>> tiddler, I absentmindedly tried the following:
>>>
>>> \define now-timestamp() <>
>>> <$button set="!!created" setTo=<>>
>>> Created Now
>>> 
>>>
>>> Now, I'm aware this snippet doesn't work and can't be expected to 
>>> because the contents of *now-timestamp* aren't wikified when the macro 
>>> call is being used as a transcluded widget-attribute value. I've since 
>>> produced a correct version. However, I'm still confused about the result of 
>>> clicking the button: the *created* field was set to 
>>> NaNNaNNaNNaNNaNNaNNaN. I'm puzzled by what kind of calculation the 
>>> *setTo* attribute of the $button widget is doing that's able to create 
>>> a bunch of concatenated NaNs. I would have expected to simply get the 
>>> literal text <> in the field.
>>>
>>> Is there something special about the *created* field in this regard?
>>>
>>

-- 
You received this message because you are subscribed to the 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/1b6f8ac0-547d-4b79-aeff-f39e92cd0a5fn%40googlegroups.com.


[tw5] Re: Prevent emdash replacing 2 dashes?

2021-02-06 Thread amreus
Thank you, Soren.  Turning the *dash* option off for the entire wiki seems 
to be working fine.  If I actually ever need a mdash or ndash, I can use 
 and 

On Monday, November 23, 2020 at 10:07:05 PM UTC-5 Soren Bjornstad wrote:

>
> The promotion of -- to – is caused by a parse rule, called *dash*. If 
> you're willing to turn it off for this entire wiki, you can find the option 
> in Control Panel/Info/Advanced/Parsing (note that you have to reload the 
> page to see the change).
>
> Otherwise...normally, you can disable parse rules on a tiddler-by-tiddler 
> basis with the *\rules except* pragma, like:
>
> ```
> \rules except dash
>
> This will be two hyphens: --
> ```
>
> I could not get this to work in combination with the $wikify widget 
> though, either by just putting the widget inside a tiddler with a rules 
> pragma or by using a macro to concatenate the pragma to the command before 
> passing it in to $wikify. Maybe there is a way to use pragmas with $wikify 
> that I'm missing, but if so it doesn't appear to be documented.
>
> On Sunday, November 22, 2020 at 12:27:15 PM UTC-6 amreus wrote:
>
>>
>> I'm playing with an idea of a command-line builder where I can build the 
>> command line using a form and copy the command to the clipboard. 
>>
>> Most commands accept 2 dashes for long options but in my example 
>> (attached) the double-dashes get converted to an emdash. Can this be 
>> prevented?
>>
>> Thanks.
>>
>>

-- 
You received this message because you are subscribed to the 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/ae482fa9-dc92-4645-9c60-8655708c7845n%40googlegroups.com.


[tw5] Re: confirmed working on private server (vps)

2021-02-05 Thread amreus
Just an update.  A recent update to Firefox has killed this concept for 
me.  Firefox now blocks pop-ups more strictly.  Even though the pop-ups are 
generated from a bookmark, they are considered originating from the site 
you are bookmarking and are blocked.  Not sure if there's some setting to 
go back to the previous behavior other than allowing all pop-ups which 
isn't something I want to do. 

Tangentially related, I am tired of the trend with  browsers becoming 
gigantic, bloated memory hogs while taking away useful features and options 
that limit how people access the Internet. 

On Thursday, October 29, 2020 at 6:49:49 PM UTC-4 TW Tones wrote:

> Amreus,
>
> It is somewhat trivial to build a search that focuses on tiddlers prefixed 
> $:/bookmark anyway, then the results in the search are restricted to actual 
> bookmarks.
>
> Tones
>
>
> On Friday, 30 October 2020 08:39:01 UTC+11, amreus wrote:
>>
>> In the long run and particularly for the case of sharing bookmark 
>> tiddlers, I think the web site titles need to be detached from tiddler 
>> titles.  I don't like the idea of modifying titles to make them unique.  
>> Also, sites may change their titles at any time where the site location 
>> remains stable.  We are bookmarking the location not the site name.   It 
>> makes some sense to me to use the url as part of the unique identifier, and 
>> prefix tiddler titles with a system prefix such as $:/bookmark/.
>>
>> It may be less convenient this way to write filters and perform a search, 
>> but its' just that - less convenient which is different than impossible.  
>>
>> On Thursday, October 29, 2020 at 1:23:54 AM UTC-4 Atronoush wrote:
>>
>>> If you look at  https://github.com/buggyj/tiddlyclip
>>> you will see tiddlyclip smart enough to detect the duplicated title. If 
>>> you bookmark the same webpage with different content it append the new text 
>>> to previous bookmark tiddler
>>> If the content is different it adds an ordinal number to title. 
>>>
>>> On Thursday, October 29, 2020 at 12:18:39 AM UTC+3:30 amreus wrote:
>>>
>>>> I think there is a problem though with using the web site title as the 
>>>> tiddler title. As you know, web site titles are not unique but tiddler 
>>>> titles need to be unique.  For bookmarks, it is the url that should be 
>>>> used 
>>>> as the unique id of the bookmark.
>>>>
>>>> So what's the solution to that? (Just looking for opinions.)
>>>>
>>>>
>>>>
>>>> On Wednesday, October 28, 2020 at 4:37:50 PM UTC-4 amreus wrote:
>>>>
>>>>> Sanitizing the characters [ ] { } | from the tiddler title is in the 
>>>>> dev branch, I just neglected to mention it.  
>>>>>
>>>>>
>>>>>
>>>>> On Wednesday, October 28, 2020 at 4:22:03 PM UTC-4 Atronoush wrote:
>>>>>
>>>>>> Good improvement amreus!
>>>>>>
>>>>>>  Like Donald I also support the proposed idea on GitHub repo!
>>>>>>
>>>>>> One issue is about the title is used for tiddler, it is good to 
>>>>>> resolve the issue of nasty character in tiddler title.
>>>>>>
>>>>>> Atro
>>>>>>
>>>>>> On Wednesday, October 28, 2020 at 10:43:20 PM UTC+3:30 amreus wrote:
>>>>>>
>>>>>>> Yes, please check out the dev branch 
>>>>>>> <https://github.com/amreus/bookmarking-to-tiddlywiki/tree/dev> -  
>>>>>>> that is the branch where I pushed some updates, including updated 
>>>>>>> readme.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Wednesday, October 28, 2020 at 10:06:06 AM UTC-4 
>>>>>>> digit...@gmail.com wrote:
>>>>>>>
>>>>>>>> edit to above I see the url is added a field.
>>>>>>>
>>>>>>>

-- 
You received this message because you are subscribed to the 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/31cb70dd-9a42-418f-b433-393a91d7c4f7n%40googlegroups.com.


Re: [tw5] Setting to define additional system prefix?

2021-02-04 Thread amreus
> It isn't yet possible to add additional system tiddler prefixes, we're 
just discussing whether it's worth introducing it as a feature. 

Hi Jeremy,

I have to admit my use case comes from being disorganized and lazy more 
than some grand design.  :shrug:

Because TW make it easy to create views, I tend to work in perpetual 
experimentation mode.  I'm always trying variations of tiddlers to see what 
works best instead of planning out in any sort of detail what I want the 
result to be.  Part of this is simply due to the way my brain works.  I 
need to get thoughts recorded as quickly as possible or many times those 
thoughts are lost.  Once an idea is recorded I can review and organize (or 
not) at a later time.  TW is great for that. I always have a wiki open in a 
browser tab to take notes which is accessible with just a couple 
key-strokes. 

So what I end up doing, as you guessed, is using the / character as a 
shortcut for the prefix $:/plugins/amreus/...  since typing $:/ is less 
efficient. I started using the / character as a temporary prefix to mean 
"system tiddler" with the intention of renaming them later.  Fact is no one 
but myself is probably ever going to see my personal wiki so the renaming 
doesn't get done often, or ever. 

My other use case is my templates as you also guessed.   In my Project/Task 
wiki I have entities such as Projects, Tasks, Items, Supplies, Vendors, 
Contacts, and a couple more.  I set up a bunch of templates using the title 
prefix "/template"  For example, when viewing a Project tiddler, there is a 
/view-template/project.  And when a Project is viewed in a list, the $list 
widget uses the template attribute set to "/template/project".   Currently 
I have a couple dozen templates. At this point, it's going to be easier to 
change the meaning of "isSystemTiddler" than it is going to be to properly 
rename my tiddlers. 

To facilitate my bad workflow, I changed the "isSystemTiddler" function to 
the following:

return title && /^(\$:\/|\/)/.test(title)

Which says a system tiddler is one that begins with $:/ or /


On Wednesday, February 3, 2021 at 12:19:04 PM UTC-5 jeremy...@gmail.com 
wrote:

> Hi Tones
>
>
> Can you document how we make use of this information to add additional 
> "system tiddler" prefixes?
>
>
> It isn't yet possible to add additional system tiddler prefixes, we're 
> just discussing whether it's worth introducing it as a feature.
>
> I have wanted to do this for some time and could use the "(" prefix, to 
> name template tiddlers eg; (print-view) (table-row) 
>
>
> Yes, I can imagine that might be a popular prefix if the feature were 
> added.
>
> Best wishes
>
> Jeremy.
>
>
> Regards
> Tones
>
> On Monday, 1 February 2021 at 21:14:26 UTC+11 jeremy...@gmail.com wrote:
>
>> I think it would be feasible to have some kind of hidden setting for 
>> customising the criteria of what constitutes a system tiddler, and it could 
>> be pretty useful in some situations. For example, the $:/ sequence is 
>> awkward to type, kind of intentionally as it’s supposed to act like a big, 
>> obvious label. But one could imagine that if one were working with lots of 
>> custom transclusion templates that it would be convenient to add, say, a 
>> dash as an alternative system tiddler prefix. Then one could write things 
>> like {{$:/core/images/down-arrow||-big}} instead 
>> of {{$:/core/images/down-arrow||$:/big}}
>>
>> There is a single point in the JS code where we perform the system 
>> tiddler check:
>>
>> exports.isSystemTiddler = function(title) {
>> return title && title.indexOf("$:/") === 0;
>> };
>>
>>
>>
>> https://github.com/Jermolene/TiddlyWiki5/blob/12f18474755c94362eef7191eafb532bafb743b1/core/modules/wiki.js#L206-L208
>>
>> Best wishes
>>
>> Jeremy.
>>
>>
>> On 29 Jan 2021, at 22:51, amreus  wrote:
>>
>>
>> Can we define an alternative or additional string that is treated similar 
>> to a "system" prefix?
>>
>> For example, I'd like to start tiddler titles with a '/' and have them 
>> hidden by default and from lists and search like a system tiddler, but also 
>> keep them separate from the official system hierarchy.  Also, the 
>> "[is[system]]" filter would not see titles with this prefix.
>>
>> I know this is possible, but it would require modifying a number of 
>> system tiddlers.  A setting to define such a prefix would be cool.
>>
>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "TiddlyWiki" group.
>> To unsubscrib

Re: [tw5] Setting to define additional system prefix?

2021-02-01 Thread amreus
Thanks Jeremy, that's perfect. 

On Monday, February 1, 2021 at 5:14:26 AM UTC-5  wrote:

> I think it would be feasible to have some kind of hidden setting for 
> customising the criteria of what constitutes a system tiddler, and it could 
> be pretty useful in some situations. For example, the $:/ sequence is 
> awkward to type, kind of intentionally as it’s supposed to act like a big, 
> obvious label. But one could imagine that if one were working with lots of 
> custom transclusion templates that it would be convenient to add, say, a 
> dash as an alternative system tiddler prefix. Then one could write things 
> like {{$:/core/images/down-arrow||-big}} instead 
> of {{$:/core/images/down-arrow||$:/big}}
>
> There is a single point in the JS code where we perform the system tiddler 
> check:
>
> exports.isSystemTiddler = function(title) {
> return title && title.indexOf("$:/") === 0;
> };
>
>
>
> https://github.com/Jermolene/TiddlyWiki5/blob/12f18474755c94362eef7191eafb532bafb743b1/core/modules/wiki.js#L206-L208
>
> Best wishes
>
> Jeremy.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/d5aa2cbf-a9c0-4e8b-a806-eb86fa9615ddn%40googlegroups.com.


[tw5] Re: Setting to define additional system prefix?

2021-01-30 Thread amreus
I guess mainly I'd like to define a character sequence that, when used as a 
title prefix, is excluded from the default sidebar search results. The rest 
I can do with filters. 




On Friday, January 29, 2021 at 11:25:58 PM UTC-5 PMario wrote:

> hmm, 
> The problem would be, that you can't see and open a tiddler that, if it 
> would be invisible for every internal filter. 
> How do you want to edit them? .. What if you saved a tiddler with a typo 
> in the title. It would be impossible to find it again.
>
> Could you describe your usecase a little bit closer? 
>
> -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/0634b29f-60ff-4d4c-be1f-7be176df713en%40googlegroups.com.


[tw5] Re: Bag Tag?

2021-01-29 Thread amreus
Yes, I did mean field and not tag. :|

I just saw the "bag" field in a few of my tiddlers and wasn't sure how they 
got there.  

On Friday, January 29, 2021 at 2:13:41 PM UTC-5 TiddlyTweeter wrote:

> PMario wrote:
>
>> The "bag - field" is internally used by the TiddlyWeb adaptor. ... "bags" 
>> and "recipes" where used by TiddlySpace, which doesn't exist anymore. .. 
>>
>
> Ha! I just tried adding a field called "*bag*" to a TW in the editor. It 
> won't accept it. I assume we are honoring TiddlySpace legacy in that 
> behavior?
>
> Best wishes, TT
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8d306fdf-3ee7-491c-bf73-e8e358800babn%40googlegroups.com.


[tw5] Setting to define additional system prefix?

2021-01-29 Thread amreus

Can we define an alternative or additional string that is treated similar 
to a "system" prefix?

For example, I'd like to start tiddler titles with a '/' and have them 
hidden by default and from lists and search like a system tiddler, but also 
keep them separate from the official system hierarchy.  Also, the 
"[is[system]]" filter would not see titles with this prefix.

I know this is possible, but it would require modifying a number of system 
tiddlers.  A setting to define such a prefix would be cool.


-- 
You received this message because you are subscribed to the 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/16123d35-5ce3-49d8-9063-4ea93fc5bccan%40googlegroups.com.


[tw5] Bag Tag?

2021-01-29 Thread amreus

Just curious: what is the "bag" tag used for?


-- 
You received this message because you are subscribed to the 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/9ee62418-9e9b-4f64-ae63-ab521179fe6dn%40googlegroups.com.


[tw5] Re: macro for 'if field exists then A else B else C' ???

2021-01-04 Thread amreus
Hopefully this is helpful.  I also find the syntax arcane and still 
struggle with constructing code like the following. 

\define makeimg()
<$vars 
  imgurl="http://covers.librarything.com/devkey/dev-key/medium/isbn/;
  fallback="[[Normal Link|http://google.com]];
  isbn={{{[{!!isbn}!is[blank]else{!!isbn13}]}}} 
>
<$list filter=<> emptyMessage=<>>
  <$image source={{{[addsuffix]}}}/>


\end

<>


On Sunday, January 3, 2021 at 2:39:18 PM UTC-5 dix...@gmail.com wrote:

> Thank you very much for your help!
>
> I guess I need to give up on this particular idea. There are only so many 
> hours I can spend struggling with something like this before I am simply 
> ready to ditch TiddlyWiki altogether. I really struggle with the syntax. 
> Depending on the context, I may need one, two or three curly braces, or 
> maybe '<' - or maybe '<<' - and I can't find any rhyme or reason for these 
> contexts. The documents seem to be written for someone familiar with 
> multiple programming languages. That's not me.
>
> I just need a simple if/then/else and that seems to require a lot of 
> strange workarounds. I guess I'll look for that elsewhere...
>
> On Sunday, January 3, 2021 at 11:20:57 AM UTC-6 saq.i...@gmail.com wrote:
>
>> Wrap the image part in a <$list> widget that tests whether isbn is blank. 
>> You can use the emptyMessage attribute to show the plain URL instead when 
>> there is no isbn.
>>
>> On Sunday, January 3, 2021 at 4:10:44 PM UTC+1 dix...@gmail.com wrote:
>>
>>> Yes, but I need a plain URL, not an image link, so wouldn't be able to 
>>> use <$image ...
>>>
>>> On Sunday, January 3, 2021 at 9:08:08 AM UTC-6 saq.i...@gmail.com wrote:
>>>
 The last example does that, it falls back to an entirely different URL 
 if no ISBN fields exist. 

 On Sunday, January 3, 2021 at 3:59:03 PM UTC+1 dix...@gmail.com wrote:

> This looks nice! It appears to put all the right code in the right 
> place. Now if only librarything servers would quit dying on me...
>
> Are there any other widgets with :filter and :else options that I 
> could use to do something similar w/ a link? Specifically, use isbn or 
> isbn13 in link, but if they don't exist show this *other* link? I've been 
> using [ext[ link format, but need to do some if/then...
>
> On Sunday, January 3, 2021 at 8:38:38 AM UTC-6 saq.i...@gmail.com 
> wrote:
>
>> Here is an example on falling back to the generic image if no ISBN 
>> fields are defined
>>
>> \define makeimg()
>> <$vars isbn={{{[{!!isbn}!is[blank]else{!!isbn13}]}}}>
>> <$image source={{{ [[
>> http://covers.librarything.com/devkey/dev-key-goes-here/medium/isbn/]addsuffix]
>>  
>> :filter[!is[blank]] :else[[generic image URL]] }}}/>
>> 
>> \end
>>
>> <>
>>
>

-- 
You received this message because you are subscribed to the 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/d8c5b55c-4c92-4737-b630-15c89db21d37n%40googlegroups.com.


[tw5] Prevent emdash replacing 2 dashes?

2020-11-22 Thread amreus

I'm playing with an idea of a command-line builder where I can build the 
command line using a form and copy the command to the clipboard. 

Most commands accept 2 dashes for long options but in my example (attached) 
the double-dashes get converted to an emdash. Can this be prevented?

Thanks.

-- 
You received this message because you are subscribed to the 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/7f07ce60-ccec-4545-ab93-697d3a19a5d0n%40googlegroups.com.


Delete Old Files.json
Description: application/json


[tw5] Re: The-Book Chapter 10

2020-11-21 Thread amreus
Correct, thanks - I botched the link. 

On Friday, November 20, 2020 at 7:33:44 PM UTC-5 Alfonso Arciniega wrote:

> https://github.com/kewapo/The-Tiddlywiki-Manual
>
> This is the repository of TheBook, last updated in February 2020.
>
>

-- 
You received this message because you are subscribed to the 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/f6a2436b-f4b9-4452-8d38-34fc19f720e6n%40googlegroups.com.


[tw5] Re: The-Book Chapter 10

2020-11-20 Thread amreus
I believe this is the source  of the 
book.  

On Friday, November 20, 2020 at 7:49:02 AM UTC-5 Ste wrote:

> It was mentioned somewhere on here recently!
> https://my-tw-notes.droppages.com/TheBook.pdf
>
> On Thursday, 19 November 2020 at 18:28:25 UTC dieg...@gmail.com wrote:
>
>> Hello! 
>>
>> Just a re-ping on this project! Does anyone know?
>>
>> On Saturday, July 25, 2020 at 5:22:51 PM UTC-5 dieg...@gmail.com wrote:
>>
>>> Hello!
>>>
>>> I just want to checkup on this wonderful project! Has it been completed?
>>>
>>> On Wednesday, January 15, 2020 at 2:37:37 AM UTC-6, Luis Gonzalez wrote:

 After the Christmas stop I continue writing The-Book. I think is 
 important to include a little chapter with some architectural aspects of 
 Tiddlywiki.
 The attached pages contains the beginning.I saw the Tiddlywiki Hangout 
 10 to fill the pages.


 * PLEASE:*

 * All experts in Tiddlywiki, check the table. If there is missing or 
 bad information, please tell me.
 * What more information do you think should be included in this 
 chapter?




 Thanks for your help.
 The-Book keep moving forward.

>>>

-- 
You received this message because you are subscribed to the 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/2454da1b-d37f-40f6-a82e-df24309df915n%40googlegroups.com.


[tw5] Re: command line backup

2020-10-31 Thread amreus
An important addendum to using `curl` - be sure to check the downloaded 
files.  If a wiki is not available, curl will simply save the "not found" 
page instead of the actual wiki.



On Saturday, October 31, 2020 at 4:27:44 PM UTC-4 springer wrote:

> Amreus, thanks for this curl tip (which I used with MacOS terminal).
> With over a dozen tiddlyspot sites, I was able to crank out these backups, 
> and your tip will be useful for other purposes too!
>
> -Springer
>
> On Friday, October 30, 2020 at 4:31:39 AM UTC-4 amreus wrote:
>
>> Quick command line backup:
>>
>> > curl http://yoursite.tiddlyspot.com > yoursite.html
>>
>> curl is available on most operating systems by default, including Windows.
>>
>>
>> On Friday, October 30, 2020 at 4:06:44 AM UTC-4 Eric Shulman wrote:
>>
>>> On Thursday, October 29, 2020 at 10:54:01 PM UTC-7, AndrewMc wrote:
>>>>
>>>> is there an equivalent way to download TW classic (2.x) wikis?
>>>>
>>>
>>> Prior to the recent TiddlySpot crisis, the normal way to download a copy 
>>> of your TiddlySpot
>>> was to go to http://yoursite.tiddlyspot.com/download
>>>
>>> However, the download link is not currently available.
>>>
>>> As a work-around:
>>>
>>> 1) open your TiddlySpot (e.g., http://yoursite.tiddlyspot.com)
>>> 2) create a new tiddler containing:
>>> [[click me|http://yoursite.tiddlyspot.com]]
>>> 3) *right click* on the "click me" link that is displayed
>>> 4) Choose "Save link as..."
>>> 5) If your browser is set to "always ask where to save", then you can 
>>> choose a local folder and enter a destination filename
>>>
>>> Note that "save link as..." is not the same function as "save as..."
>>>
>>> -e
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ce045420-eab9-48a3-97f4-75106a954eaan%40googlegroups.com.


[tw5] command line backup

2020-10-30 Thread amreus
Quick command line backup:

> curl http://yoursite.tiddlyspot.com > yoursite.html

curl is available on most operating systems by default, including Windows.


On Friday, October 30, 2020 at 4:06:44 AM UTC-4 Eric Shulman wrote:

> On Thursday, October 29, 2020 at 10:54:01 PM UTC-7, AndrewMc wrote:
>>
>> is there an equivalent way to download TW classic (2.x) wikis?
>>
>
> Prior to the recent TiddlySpot crisis, the normal way to download a copy 
> of your TiddlySpot
> was to go to http://yoursite.tiddlyspot.com/download
>
> However, the download link is not currently available.
>
> As a work-around:
>
> 1) open your TiddlySpot (e.g., http://yoursite.tiddlyspot.com)
> 2) create a new tiddler containing:
> [[click me|http://yoursite.tiddlyspot.com]]
> 3) *right click* on the "click me" link that is displayed
> 4) Choose "Save link as..."
> 5) If your browser is set to "always ask where to save", then you can 
> choose a local folder and enter a destination filename
>
> Note that "save link as..." is not the same function as "save as..."
>
> -e
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/00681c9d-8978-42c1-acc8-990a5496c3dcn%40googlegroups.com.


[tw5] Re: New Google Group: View Starred Topics?

2020-10-29 Thread amreus
Quick update - there is now a "Starred conversations" item on the left in 
the new interface.


-- 
You received this message because you are subscribed to the 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/48ed2fb9-1da4-43eb-8e1e-de9f2599b18an%40googlegroups.com.


[tw5] Re: confirmed working on private server (vps)

2020-10-29 Thread amreus
In the long run and particularly for the case of sharing bookmark tiddlers, 
I think the web site titles need to be detached from tiddler titles.  I 
don't like the idea of modifying titles to make them unique.  Also, sites 
may change their titles at any time where the site location remains 
stable.  We are bookmarking the location not the site name.   It makes some 
sense to me to use the url as part of the unique identifier, and prefix 
tiddler titles with a system prefix such as $:/bookmark/.

It may be less convenient this way to write filters and perform a search, 
but its' just that - less convenient which is different than impossible.  

On Thursday, October 29, 2020 at 1:23:54 AM UTC-4 Atronoush wrote:

> If you look at  https://github.com/buggyj/tiddlyclip
> you will see tiddlyclip smart enough to detect the duplicated title. If 
> you bookmark the same webpage with different content it append the new text 
> to previous bookmark tiddler
> If the content is different it adds an ordinal number to title. 
>
> On Thursday, October 29, 2020 at 12:18:39 AM UTC+3:30 amreus wrote:
>
>> I think there is a problem though with using the web site title as the 
>> tiddler title. As you know, web site titles are not unique but tiddler 
>> titles need to be unique.  For bookmarks, it is the url that should be used 
>> as the unique id of the bookmark.
>>
>> So what's the solution to that? (Just looking for opinions.)
>>
>>
>>
>> On Wednesday, October 28, 2020 at 4:37:50 PM UTC-4 amreus wrote:
>>
>>> Sanitizing the characters [ ] { } | from the tiddler title is in the 
>>> dev branch, I just neglected to mention it.  
>>>
>>>
>>>
>>> On Wednesday, October 28, 2020 at 4:22:03 PM UTC-4 Atronoush wrote:
>>>
>>>> Good improvement amreus!
>>>>
>>>>  Like Donald I also support the proposed idea on GitHub repo!
>>>>
>>>> One issue is about the title is used for tiddler, it is good to resolve 
>>>> the issue of nasty character in tiddler title.
>>>>
>>>> Atro
>>>>
>>>> On Wednesday, October 28, 2020 at 10:43:20 PM UTC+3:30 amreus wrote:
>>>>
>>>>> Yes, please check out the dev branch 
>>>>> <https://github.com/amreus/bookmarking-to-tiddlywiki/tree/dev> -  
>>>>> that is the branch where I pushed some updates, including updated readme.
>>>>>
>>>>>
>>>>>
>>>>> On Wednesday, October 28, 2020 at 10:06:06 AM UTC-4 digit...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> edit to above I see the url is added a field.
>>>>>
>>>>>

-- 
You received this message because you are subscribed to the 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/f2359592-f419-4543-8204-826a0a74b039n%40googlegroups.com.


[tw5] Re: confirmed working on private server (vps)

2020-10-28 Thread amreus
I think there is a problem though with using the web site title as the 
tiddler title. As you know, web site titles are not unique but tiddler 
titles need to be unique.  For bookmarks, it is the url that should be used 
as the unique id of the bookmark.

So what's the solution to that? (Just looking for opinions.)



On Wednesday, October 28, 2020 at 4:37:50 PM UTC-4 amreus wrote:

> Sanitizing the characters [ ] { } | from the tiddler title is in the dev 
> branch, I just neglected to mention it.  
>
>
>
> On Wednesday, October 28, 2020 at 4:22:03 PM UTC-4 Atronoush wrote:
>
>> Good improvement amreus!
>>
>>  Like Donald I also support the proposed idea on GitHub repo!
>>
>> One issue is about the title is used for tiddler, it is good to resolve 
>> the issue of nasty character in tiddler title.
>>
>> Atro
>>
>> On Wednesday, October 28, 2020 at 10:43:20 PM UTC+3:30 amreus wrote:
>>
>>> Yes, please check out the dev branch 
>>> <https://github.com/amreus/bookmarking-to-tiddlywiki/tree/dev> -  that 
>>> is the branch where I pushed some updates, including updated readme.
>>>
>>>
>>>
>>> On Wednesday, October 28, 2020 at 10:06:06 AM UTC-4 digit...@gmail.com 
>>> wrote:
>>>
>>>> edit to above I see the url is added a field.
>>>
>>>

-- 
You received this message because you are subscribed to the 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/96f843fc-7359-4e49-9423-936e8ccb1ebfn%40googlegroups.com.


[tw5] Re: confirmed working on private server (vps)

2020-10-28 Thread amreus
Sanitizing the characters [ ] { } | from the tiddler title is in the dev 
branch, I just neglected to mention it.  



On Wednesday, October 28, 2020 at 4:22:03 PM UTC-4 Atronoush wrote:

> Good improvement amreus!
>
>  Like Donald I also support the proposed idea on GitHub repo!
>
> One issue is about the title is used for tiddler, it is good to resolve 
> the issue of nasty character in tiddler title.
>
> Atro
>
> On Wednesday, October 28, 2020 at 10:43:20 PM UTC+3:30 amreus wrote:
>
>> Yes, please check out the dev branch 
>> <https://github.com/amreus/bookmarking-to-tiddlywiki/tree/dev> -  that 
>> is the branch where I pushed some updates, including updated readme.
>>
>>
>>
>> On Wednesday, October 28, 2020 at 10:06:06 AM UTC-4 digit...@gmail.com 
>> wrote:
>>
>>> edit to above I see the url is added a field.
>>
>>

-- 
You received this message because you are subscribed to the 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/995f0c10-ca3f-4caf-bbf3-660d410712d3n%40googlegroups.com.


[tw5] Re: confirmed working on private server (vps)

2020-10-28 Thread amreus
Yes, please check out the dev branch 
<https://github.com/amreus/bookmarking-to-tiddlywiki/tree/dev> -  that is 
the branch where I pushed some updates, including updated readme.



On Wednesday, October 28, 2020 at 10:06:06 AM UTC-4 digit...@gmail.com 
wrote:

> edit to above I see the url is added a field.

-- 
You received this message because you are subscribed to the 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/10a9ac45-5c46-4f10-9460-fe114887ea4bn%40googlegroups.com.


[tw5] Re: so: personal DreamHost for TW users?

2020-10-27 Thread amreus
@surya - I looked at the file I had named surya-diy for contact 
information. I found it had the gcomments plugin installed so I posted my 
email through that.  I wonder if it could possibly have worked?


On Monday, October 26, 2020 at 7:02:01 PM UTC-4 Surya wrote:

> Hello,
> I just saw the disaster :-O
> My wiki with a lot of knowledge is gone... And saved nowhere else...
> But... really unbeleavable luckily... I saw now, that you, amreus, saved 
> my wiki.
> @amreus, I cannot write a private message. If you can write one to me, 
> could you please be so nice to tell me your mail-adress? So I could write 
> you then my mail-adress for getting my wiki from you??
> That would be an unbeleavable luck
> Thanks a lot in advance!!!
>
> And then...: Is there any other possibility to upload a TW for public use?
>
> Surya
>
> amreus schrieb am Sonntag, 25. Oktober 2020 um 00:03:04 UTC+2:
>
>> I downloaded 128 public tiddlyspot wikis about a week ago.  They were for 
>> my personal use and I wasn't planning on sharing them, but would make them 
>> available if the site doesn't come back.  Hopefully the site can be 
>> restored. I've attached the list I have. 
>>
>>
>>
>>
>>
>>
>> On Saturday, October 24, 2020 at 11:53:11 AM UTC-4 hww...@gmail.com 
>> wrote:
>>
>>>
>>> Ciao TT:
>>>
>>> I gather you are a fan of DreamHost.  If you have a moment I would 
>>> appreciate a brief comment on how easy/difficult it might be to set up a 
>>> personal account that could host a single TW file.
>>>
>>> I've browsed their site a bit and it looks appealing, but I could not 
>>> find anything that reassures me specifically with respect to TW.
>>>
>>> Cheers,
>>> Hans
>>>
>>> On Saturday, October 24, 2020 at 11:10:17 AM UTC-4 TiddlyTweeter wrote:
>>>
>>>> Ciao Eric
>>>>
>>>> I will write to Dreamhost about this immediately.
>>>>
>>>> TT
>>>>
>>>>
>>>> On Saturday, 24 October 2020 15:58:27 UTC+2, Eric Shulman wrote:
>>>>>
>>>>> On Saturday, October 24, 2020 at 1:40:41 AM UTC-7, Eric Shulman wrote:
>>>>>>
>>>>>> I've sent email directly to Simon and Daniel Baird to let them know 
>>>>>> about the problem.
>>>>>>
>>>>>
>>>>> I just received a reply from Simon Baird... and he says: "It's not a 
>>>>> simple fix".
>>>>>
>>>>> Here's his blogspot posting explaining the situation: 
>>>>> http://tiddlyspot.blogspot.com
>>>>>
>>>>> -e
>>>>>
>>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/351a4570-7827-4792-ae29-535229855da8n%40googlegroups.com.


[tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-26 Thread amreus
> Please have a look at https://github.com/buggyj/tiddlyclip 

I read the page - still don't know what it's for.

> 1. Is it possible to prevent overwriting an existing tiddler by adding a 
prefix number like 1, 2, ...? 

Yes it's on my short list of things to do.  

> 2.Is it possible to have extra fields, especially Text field? I mean 
while a user is allowed to add a special tag, he/she can add some text! 

Possible.  One aspect I like about using a bookmarklet is it is its' 
simplicity.  It's more accessible to the user for making customizations. 
Easier and more understandable than hacking a browser plugin.

> 3. What do you think is one can select part of text or image in a webpage 
and bookmarking-to-tiddlywiki can add it as tiddler body (text)? 

Also possible if I understand what you mean.  Regular copy and paste always 
works.  Do you mean pre-select text? 

Thanks for asking these questions. You gave me an idea that maybe I can use 
a tiddler in the wiki as customization, or configuration tiddler for the 
form.  


On Monday, October 26, 2020 at 9:26:30 AM UTC-4 Atronoush wrote:

> amreus,
>  Please have a look at https://github.com/buggyj/tiddlyclip
>  You can get some good idea to develop TiddlywikiBookmarklet
>
> Atro
>
> On Sunday, October 4, 2020 at 11:50:09 PM UTC+3:30 amreus wrote:
>
>> Just playing with an idea I might have read about on this forum.  It's 
>> not completely  functioning at moment, but enough of it is that I'm certain 
>> it can be made to work.
>>
>> I made a browser bookmarklet that opens a popup window to your local node 
>> tiddlywiki, and appends to the wiki address the url and title of a web 
>> site. (Basically sends a HTTP GET request to your wiki, passing the site 
>> url and title in the query string.)
>>
>> The wiki has a tiddler that parses the request back into a url and title 
>> variable, which can then be used to create tiddlers, etc. 
>>
>> I tried to write up some instructions here 
>> <http://amreus.tiddlyspot.com/#markit>. Apologies if I'm terse. Please 
>> ask if you have questions or feedback.
>>
>> Thanks for looking.
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the 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/d48d97d2-1344-4dc1-bd6e-fef28d7ff2b6n%40googlegroups.com.


Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-26 Thread amreus
2 initial thoughts..

1. This will only work with the TiddlyWiki node server. It does not work 
with the Bob server because it has a different API.
2. Be sure to use 127.0.0.1:8080 and not localhost:8080 in the bookmarklet. 
It matters to avoid the cross-site scripting issue.

I made some small changes to the files on github to remove the alert, but 
show the xhr.status in the popup.  The popup will close on success but 
remain open on an error.

If you still have errors, open the dev console (press F12 with the popup 
focused) before pressing the Save button and show the console text here. 
Since I am not getting any errors in either Firefox or Chrome, it's hard to 
know what is going on. Thanks.


On Monday, October 26, 2020 at 3:03:06 AM UTC-4 Atronoush wrote:

> The same error on Firefox!
>
> On Sun, Oct 25, 2020 at 11:41 PM amreus  wrote:
>
>> "Testing? We don't need no stinking Testing."
>>
>> Seriously, though I use Firefox and will need to try it using Chrome.  I 
>> don't have it installed but do have a portable version I can try. 
>>
>> If you know how to open the Chrome developer console, it would be helpful 
>> to see if there are any errors generated when you hot the "Save" button.
>>
>>
>>
>>
>> On Sunday, October 25, 2020 at 3:40:34 PM UTC-4 Atronoush wrote:
>>
>>> amreus
>>>  Thank you for sharing. I created a new wiki tiddlywiki mywiki --init 
>>> serverand then created an extra folder files in mywiki folder with 
>>> form.html and func.js as you advised.
>>>  Running new wiki using  tiddlywiki mywiki --listen csrf-disable=yes  
>>> everything 
>>> was fine
>>>  Now from TWMark bookmarks with bookmark.js, I tried to add a page to my 
>>> TW in Chrome 83.
>>>  The form opens and let me add tag and save!
>>>  But I got this error:
>>>
>>> localhost: 8080 says
>>> xhr.status: 0
>>>
>>>
>>>
>>> On Sun, Oct 25, 2020 at 8:50 PM amreus  wrote:
>>>
>>>> Just wanted to post the latest code of my bookmarking-to-tw tests.  
>>>> Briefly, it works by using a bookmark that opens a popup with a form that 
>>>> is populated with the current site title and url, allows editing of 
>>>> fields, 
>>>> then sends the data as a new tiddler in a TiddlyWiki running on a node 
>>>> server.  It's a 2-click solution.
>>>>
>>>> There are few parts to the setup, but the files are small and hopefully 
>>>> understandable:
>>>>
>>>>1. A bookmarklet
>>>>2. A static html form
>>>>3. Javascript functions
>>>>4. Server options
>>>>
>>>>
>>>> 1. The bookmarklet is placed in your browser's toolbar. It opens a 
>>>> pop-up window getting its contents from the static html form. Because the 
>>>> origin of the popup is the same as the wiki server, there are no 
>>>> cross-site 
>>>> scripting issues. The site title and url are passed to the html file as 
>>>> part of the url using  the u= and t= parameters. 
>>>>
>>>> 2. A static html file used for a popup window.  I named mine form.html. 
>>>> This is a html file which is opened by the bookmarklet. The static file 
>>>> contains a form, and includes the javascript functions, and buttons to 
>>>> submit or cancel.  A javascript function is used to parse the parameters 
>>>> from the url and populate the forms. The file lives in the files/ 
>>>> folder under your node wiki location.
>>>>
>>>> 3.The javascript file (funcs.js in this case)contains helper functions 
>>>> that send the form data to the node server using the WebServer API 
>>>> <https://tiddlywiki.com/#WebServer%20API>.
>>>>
>>>> 4. Run the server using the *csrf-disable* option set to *yes*.  
>>>>
>>>> It's cool to see it working, but there's lot's of room for improvement. 
>>>> For example I'd like to grab some meta tags from the html as well as just 
>>>> the title and url.  
>>>>
>>>> I put the files on github: 
>>>> https://github.com/amreus/bookmarking-to-tiddlywiki 
>>>>
>>>> Let me know if you have any questions or thoughts. I'm just a hobbyist 
>>>> and all my knowledge comes from Stackoverflow, so any improvements would 
>>>> be 
>>>> appreciated.
>>>>
>>>> Thanks for looking.
>>>>
>>>>
>>>> 

Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-25 Thread amreus
I just tried in Chrome - worked as expected.   I'm not sure how to 
troubleshoot from here.   I'll start by reviewing my instructions. I might 
not get back to things until later in the week. 

On Sunday, October 25, 2020 at 3:40:34 PM UTC-4 Atronoush wrote:

> amreus
>  Thank you for sharing. I created a new wiki tiddlywiki mywiki --init 
> serverand then created an extra folder files in mywiki folder with 
> form.html and func.js as you advised.
>  Running new wiki using  tiddlywiki mywiki --listen csrf-disable=yes  
> everything 
> was fine
>  Now from TWMark bookmarks with bookmark.js, I tried to add a page to my 
> TW in Chrome 83.
>  The form opens and let me add tag and save!
>  But I got this error:
>
> localhost: 8080 says
> xhr.status: 0
>
>
>
> On Sun, Oct 25, 2020 at 8:50 PM amreus  wrote:
>
>> Just wanted to post the latest code of my bookmarking-to-tw tests.  
>> Briefly, it works by using a bookmark that opens a popup with a form that 
>> is populated with the current site title and url, allows editing of fields, 
>> then sends the data as a new tiddler in a TiddlyWiki running on a node 
>> server.  It's a 2-click solution.
>>
>> There are few parts to the setup, but the files are small and hopefully 
>> understandable:
>>
>>1. A bookmarklet
>>2. A static html form
>>3. Javascript functions
>>4. Server options
>>
>>
>> 1. The bookmarklet is placed in your browser's toolbar. It opens a pop-up 
>> window getting its contents from the static html form. Because the origin 
>> of the popup is the same as the wiki server, there are no cross-site 
>> scripting issues. The site title and url are passed to the html file as 
>> part of the url using  the u= and t= parameters. 
>>
>> 2. A static html file used for a popup window.  I named mine form.html. 
>> This is a html file which is opened by the bookmarklet. The static file 
>> contains a form, and includes the javascript functions, and buttons to 
>> submit or cancel.  A javascript function is used to parse the parameters 
>> from the url and populate the forms. The file lives in the files/ folder 
>> under your node wiki location.
>>
>> 3.The javascript file (funcs.js in this case)contains helper functions 
>> that send the form data to the node server using the WebServer API 
>> <https://tiddlywiki.com/#WebServer%20API>.
>>
>> 4. Run the server using the *csrf-disable* option set to *yes*.  
>>
>> It's cool to see it working, but there's lot's of room for improvement. 
>> For example I'd like to grab some meta tags from the html as well as just 
>> the title and url.  
>>
>> I put the files on github: 
>> https://github.com/amreus/bookmarking-to-tiddlywiki 
>>
>> Let me know if you have any questions or thoughts. I'm just a hobbyist 
>> and all my knowledge comes from Stackoverflow, so any improvements would be 
>> appreciated.
>>
>> Thanks for looking.
>>
>>
>> On Sunday, October 4, 2020 at 8:45:53 PM UTC-4 joshua@gmail.com 
>> wrote:
>>
>>> I've been tinkering with batch importing from Chrome an dFirefox, but 
>>> that did not solve the "once I have them all in TW what to do going 
>>> forward" with my TWBookmarks ideas. I will have to come back to this, 
>>> thanks!
>>>
>>> I think this is a great start! Here is the pertinent Docs on 
>>> Tiddlywiki.com:
>>>
>>> https://tiddlywiki.com/#WebServer:WebServer%20%5B%5BWebServer%20API%5D%5D%20%5B%5BWebServer%20API%3A%20Put%20Tiddler%5D%5D%20%5B%5BTiddlyWeb%20JSON%20tiddler%20format%5D%5D
>>>
>>> Best,
>>> Joshua Fontny
>>>
>>> On Sunday, October 4, 2020 at 1:20:09 PM UTC-7 amreus wrote:
>>>
>>>> Just playing with an idea I might have read about on this forum.  It's 
>>>> not completely  functioning at moment, but enough of it is that I'm 
>>>> certain 
>>>> it can be made to work.
>>>>
>>>> I made a browser bookmarklet that opens a popup window to your local 
>>>> node tiddlywiki, and appends to the wiki address the url and title of a 
>>>> web 
>>>> site. (Basically sends a HTTP GET request to your wiki, passing the site 
>>>> url and title in the query string.)
>>>>
>>>> The wiki has a tiddler that parses the request back into a url and 
>>>> title variable, which can then be used to create tiddlers, etc. 
>>>>
>>>> I tried to write up some instructions here 
>>>> <http://am

Re: [tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-25 Thread amreus
"Testing? We don't need no stinking Testing."

Seriously, though I use Firefox and will need to try it using Chrome.  I 
don't have it installed but do have a portable version I can try. 

If you know how to open the Chrome developer console, it would be helpful 
to see if there are any errors generated when you hot the "Save" button.




On Sunday, October 25, 2020 at 3:40:34 PM UTC-4 Atronoush wrote:

> amreus
>  Thank you for sharing. I created a new wiki tiddlywiki mywiki --init 
> serverand then created an extra folder files in mywiki folder with 
> form.html and func.js as you advised.
>  Running new wiki using  tiddlywiki mywiki --listen csrf-disable=yes  
> everything 
> was fine
>  Now from TWMark bookmarks with bookmark.js, I tried to add a page to my 
> TW in Chrome 83.
>  The form opens and let me add tag and save!
>  But I got this error:
>
> localhost: 8080 says
> xhr.status: 0
>
>
>
> On Sun, Oct 25, 2020 at 8:50 PM amreus  wrote:
>
>> Just wanted to post the latest code of my bookmarking-to-tw tests.  
>> Briefly, it works by using a bookmark that opens a popup with a form that 
>> is populated with the current site title and url, allows editing of fields, 
>> then sends the data as a new tiddler in a TiddlyWiki running on a node 
>> server.  It's a 2-click solution.
>>
>> There are few parts to the setup, but the files are small and hopefully 
>> understandable:
>>
>>1. A bookmarklet
>>2. A static html form
>>3. Javascript functions
>>4. Server options
>>
>>
>> 1. The bookmarklet is placed in your browser's toolbar. It opens a pop-up 
>> window getting its contents from the static html form. Because the origin 
>> of the popup is the same as the wiki server, there are no cross-site 
>> scripting issues. The site title and url are passed to the html file as 
>> part of the url using  the u= and t= parameters. 
>>
>> 2. A static html file used for a popup window.  I named mine form.html. 
>> This is a html file which is opened by the bookmarklet. The static file 
>> contains a form, and includes the javascript functions, and buttons to 
>> submit or cancel.  A javascript function is used to parse the parameters 
>> from the url and populate the forms. The file lives in the files/ folder 
>> under your node wiki location.
>>
>> 3.The javascript file (funcs.js in this case)contains helper functions 
>> that send the form data to the node server using the WebServer API 
>> <https://tiddlywiki.com/#WebServer%20API>.
>>
>> 4. Run the server using the *csrf-disable* option set to *yes*.  
>>
>> It's cool to see it working, but there's lot's of room for improvement. 
>> For example I'd like to grab some meta tags from the html as well as just 
>> the title and url.  
>>
>> I put the files on github: 
>> https://github.com/amreus/bookmarking-to-tiddlywiki 
>>
>> Let me know if you have any questions or thoughts. I'm just a hobbyist 
>> and all my knowledge comes from Stackoverflow, so any improvements would be 
>> appreciated.
>>
>> Thanks for looking.
>>
>>
>> On Sunday, October 4, 2020 at 8:45:53 PM UTC-4 joshua@gmail.com 
>> wrote:
>>
>>> I've been tinkering with batch importing from Chrome an dFirefox, but 
>>> that did not solve the "once I have them all in TW what to do going 
>>> forward" with my TWBookmarks ideas. I will have to come back to this, 
>>> thanks!
>>>
>>> I think this is a great start! Here is the pertinent Docs on 
>>> Tiddlywiki.com:
>>>
>>> https://tiddlywiki.com/#WebServer:WebServer%20%5B%5BWebServer%20API%5D%5D%20%5B%5BWebServer%20API%3A%20Put%20Tiddler%5D%5D%20%5B%5BTiddlyWeb%20JSON%20tiddler%20format%5D%5D
>>>
>>> Best,
>>> Joshua Fontny
>>>
>>> On Sunday, October 4, 2020 at 1:20:09 PM UTC-7 amreus wrote:
>>>
>>>> Just playing with an idea I might have read about on this forum.  It's 
>>>> not completely  functioning at moment, but enough of it is that I'm 
>>>> certain 
>>>> it can be made to work.
>>>>
>>>> I made a browser bookmarklet that opens a popup window to your local 
>>>> node tiddlywiki, and appends to the wiki address the url and title of a 
>>>> web 
>>>> site. (Basically sends a HTTP GET request to your wiki, passing the site 
>>>> url and title in the query string.)
>>>>
>>>> The wiki has a tiddler that parses the request back into a url and 
>>>&g

[tw5] Re: Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-25 Thread amreus
Just wanted to post the latest code of my bookmarking-to-tw tests.  
Briefly, it works by using a bookmark that opens a popup with a form that 
is populated with the current site title and url, allows editing of fields, 
then sends the data as a new tiddler in a TiddlyWiki running on a node 
server.  It's a 2-click solution.

There are few parts to the setup, but the files are small and hopefully 
understandable:

   1. A bookmarklet
   2. A static html form
   3. Javascript functions
   4. Server options


1. The bookmarklet is placed in your browser's toolbar. It opens a pop-up 
window getting its contents from the static html form. Because the origin 
of the popup is the same as the wiki server, there are no cross-site 
scripting issues. The site title and url are passed to the html file as 
part of the url using  the u= and t= parameters. 

2. A static html file used for a popup window.  I named mine form.html. 
This is a html file which is opened by the bookmarklet. The static file 
contains a form, and includes the javascript functions, and buttons to 
submit or cancel.  A javascript function is used to parse the parameters 
from the url and populate the forms. The file lives in the files/ folder 
under your node wiki location.

3.The javascript file (funcs.js in this case)contains helper functions that 
send the form data to the node server using the WebServer API 
<https://tiddlywiki.com/#WebServer%20API>.

4. Run the server using the *csrf-disable* option set to *yes*.  

It's cool to see it working, but there's lot's of room for improvement. For 
example I'd like to grab some meta tags from the html as well as just the 
title and url.  

I put the files on github: 
https://github.com/amreus/bookmarking-to-tiddlywiki 

Let me know if you have any questions or thoughts. I'm just a hobbyist and 
all my knowledge comes from Stackoverflow, so any improvements would be 
appreciated.

Thanks for looking.


On Sunday, October 4, 2020 at 8:45:53 PM UTC-4 joshua@gmail.com wrote:

> I've been tinkering with batch importing from Chrome an dFirefox, but that 
> did not solve the "once I have them all in TW what to do going forward" 
> with my TWBookmarks ideas. I will have to come back to this, thanks!
>
> I think this is a great start! Here is the pertinent Docs on 
> Tiddlywiki.com:
>
> https://tiddlywiki.com/#WebServer:WebServer%20%5B%5BWebServer%20API%5D%5D%20%5B%5BWebServer%20API%3A%20Put%20Tiddler%5D%5D%20%5B%5BTiddlyWeb%20JSON%20tiddler%20format%5D%5D
>
> Best,
> Joshua Fontny
>
> On Sunday, October 4, 2020 at 1:20:09 PM UTC-7 amreus wrote:
>
>> Just playing with an idea I might have read about on this forum.  It's 
>> not completely  functioning at moment, but enough of it is that I'm certain 
>> it can be made to work.
>>
>> I made a browser bookmarklet that opens a popup window to your local node 
>> tiddlywiki, and appends to the wiki address the url and title of a web 
>> site. (Basically sends a HTTP GET request to your wiki, passing the site 
>> url and title in the query string.)
>>
>> The wiki has a tiddler that parses the request back into a url and title 
>> variable, which can then be used to create tiddlers, etc. 
>>
>> I tried to write up some instructions here 
>> <http://amreus.tiddlyspot.com/#markit>. Apologies if I'm terse. Please 
>> ask if you have questions or feedback.
>>
>> Thanks for looking.
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the 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/6fe00ec2-40f0-4ad7-8d21-e17cee230d0fn%40googlegroups.com.


[tw5] Re: Enable CORS on local node server?

2020-10-25 Thread amreus
In my previous post, I meant "expectations" not "exceptions."  As in "The 
fact that the API didn't do what I expected does not mean it's a bug."


-- 
You received this message because you are subscribed to the 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/b4655349-74c6-4b01-9f78-162ee05a20fdn%40googlegroups.com.


[tw5] Re: Enable CORS on local node server?

2020-10-25 Thread amreus
Apologies Jed - it just didn't meet my exceptions.  Hope I didn't waste too 
much of your time. 

But after some thought, it turns out for my purpose (bookmarking directly 
to a wiki via a bookmarklet) there is no need to enable CORS. TiddlyWiki's 
default node server works just fine. I'll document in another topic. 

On Sunday, October 18, 2020 at 4:29:12 AM UTC-4 inmy...@gmail.com wrote:

> This isn't a bug in Bob, it works as intended.
>
> If the behaviour isn't what you want or expect you can put a feature 
> request on GitHub that clearly states your request. The guidelines for bugs 
> and feature requests are here https://ooktech-public.gitlab.io/guidelines/
>
> On Saturday, October 17, 2020 at 2:26:34 AM UTC+2 amreus wrote:
>
>> I've been testing this using Jed's BobWin.exe on Windows. It works the 
>> same without the need to modify the server so I think I'm going to target 
>> Bob as the server. instead of the TiddlyWiki node server. 
>>
>> (There's currently a bug in bob 
>> <https://github.com/OokTech/TW5-Bob/issues/159> that the created and 
>> modified fields are incorrect.)
>>
>> Here's a basic bookmarklet for a bob server:
>>
>> javascript: (
>>   function () {
>> var data = { tiddlers: {'0': {'fields': {'title': window.location.
>> href,'caption': document.title ;
>> var tid = JSON.stringify(data);
>> var xhr = new XMLHttpRequest();
>> const wikiname = 'bookmarks';
>> xhr.timeout = 1;
>> xhr.onreadystatechange = function () {
>>   console.log('xhr.readyState: ' + xhr.readyState);
>>   console.log('xhr.status: ' + xhr.status);
>>   console.log('xhr.responseText: ' + xhr.responseText);
>>   console.log('xhr.statusText: ' + xhr.statusText);
>> };
>> xhr.open('POST', `http://127.0.0.1:8080/api/push/${wikiname}`);
>> xhr.send(tid);
>>   })();
>>
>>
>>
>> On Monday, October 12, 2020 at 5:40:45 AM UTC-4 amreus wrote:
>>
>>> Thank you. I could use a lot of help with everything. I'm not a 
>>> programmer - I  just play around with things sometimes. The javascript is 
>>> all very hacky and it would be nice to offer the cors as an option instead 
>>> of having it hard-coded.  I can share what I have on github if you or 
>>> anyone else is interested. 
>>>
>>> I have not tried anything other than Firefox on Windows 10.
>>>
>>> Here's an image of the fields I am grabbing.  I decided to hide the 
>>> tiddlers as system tiddlers and use the caption field for display. Also 
>>> changed to using the URL as the unique identifier instead of the html title 
>>> tag. 
>>>
>>> There is a major downside - since you can't catch CORS errors in 
>>> javascript, I'm not sure how to notify the user if the bookmarking fails 
>>> for that reason.  Specifically there is a problem with bookmarking Github 
>>> pages - they are blocking the javascript and I get an error: " Content 
>>> Security Policy: The page’s settings blocked the loading of a resource at 
>>> inline (“script-src”)." I'm not sure if that can be overcome yet.
>>>
>>> But over-all I'm happy with how well it works.  Just browse and click to 
>>> bookmark.  Then use all of the tools available in TiddlyWiki to organize 
>>> your bookmarks. It's slightly less convenient than the built-in bookmarks 
>>> library but vastly more powerful. 
>>>
>>> On Sunday, October 11, 2020 at 9:01:23 PM UTC-4 joshua@gmail.com 
>>> wrote:
>>>
>>>> Excellent work! I've been following you progress. I will definitely use 
>>>> something like this in my Bookmarks plugin.
>>>>
>>>> Has this been tested in multiple browsers? I also really like how this 
>>>> opens up the possibility to write tiddlers to a wiki-tab while your 
>>>> browser 
>>>> has another tab or content in view. Mahalo (thanks)!
>>>>
>>>> Best,
>>>> Joshua Fontany
>>>> On Sunday, October 11, 2020 at 2:10:21 AM UTC-7 amreus wrote:
>>>>
>>>>> Thanks Joshua,
>>>>>
>>>>> I did figure enough of it it out to get a working bookmarklet. I had 
>>>>> to add the right headers to the server.js file and put handler file. 
>>>>>
>>>>> I'm not an expert but I think it is safe enough.  The code is a 
>>>>> bookmarklet which calls the WebServer API .  The result is I can press my 
>>>>> bookmarklet button on a

[tw5] Re: so: personal DreamHost for TW users?

2020-10-24 Thread amreus
I downloaded 128 public tiddlyspot wikis about a week ago.  They were for 
my personal use and I wasn't planning on sharing them, but would make them 
available if the site doesn't come back.  Hopefully the site can be 
restored. I've attached the list I have. 






On Saturday, October 24, 2020 at 11:53:11 AM UTC-4 hww...@gmail.com wrote:

>
> Ciao TT:
>
> I gather you are a fan of DreamHost.  If you have a moment I would 
> appreciate a brief comment on how easy/difficult it might be to set up a 
> personal account that could host a single TW file.
>
> I've browsed their site a bit and it looks appealing, but I could not find 
> anything that reassures me specifically with respect to TW.
>
> Cheers,
> Hans
>
> On Saturday, October 24, 2020 at 11:10:17 AM UTC-4 TiddlyTweeter wrote:
>
>> Ciao Eric
>>
>> I will write to Dreamhost about this immediately.
>>
>> TT
>>
>>
>> On Saturday, 24 October 2020 15:58:27 UTC+2, Eric Shulman wrote:
>>>
>>> On Saturday, October 24, 2020 at 1:40:41 AM UTC-7, Eric Shulman wrote:

 I've sent email directly to Simon and Daniel Baird to let them know 
 about the problem.

>>>
>>> I just received a reply from Simon Baird... and he says: "It's not a 
>>> simple fix".
>>>
>>> Here's his blogspot posting explaining the situation: 
>>> http://tiddlyspot.blogspot.com
>>>
>>> -e
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3aaeadca-061b-42b3-9367-9a12c7d429e9n%40googlegroups.com.
abcmusic
adithyab
alexandru
aliases
aliastids
anwiki
archipel
azure13
backwall
batchmanipulator
bigpic
biologia1
bjtools
brainimaging
braintest
btswiki
cbmg
ceebeetree
chateaudoex
chemotaxis
cie10
configsfields
conlang
contextplugin
coronavirusfree
covid19hs
cythere
d3jsv5trial
dbi
demosite-d3
devpad
drilldown
dynamiccontainment
editormagic
ekicyou
elearningdesignbook
elfactorfred
englishclub
everythingfpaulwilson
fa5-free-svg
fields2table
fredgrott
ftvs
gameoflife
gcomments
gearhead
giffmex
gsd5
guiatiddlywiki
history-today
howhowhow
inmysocks
ischi
iwalton
j.d
kanav
keeboord
kyorecoba
leeand00
logs
mat1
mayamel
megath
mgsd
mgtd-alpha
monkeygtd
mptw
mptw2
mwiktowy
names
nowah
ocefpaf
ogoshi
oxfordquantummatter2020
pacoriviere
pespot
plaintabs
printriver
processingwiki
pythonwiki
quicktid
rangeslider
redcookbook
richlinks
rsignell
sambahsa
samchen
selecatbio
shareme
sideeditor
sistan
slidesnstories
solar-flair
stretchtext
surya-diy
syge
tb5
tesis
the-infection
thedaisyfield
tiddlerbundletest
tiddlertoddler
tiddlychatter
tiddlyfolio
tiddlypedia
tiddlystuff
tiddlytables
tiddlytouch
tiddlyvault
tiddlywiki5
today-history
tractatus.net
tw-abc
tw-mode
tw-regexp
tw5bookmarklets
tw5breadcrumbs
tw5magick
twederation
twfr
twguidedoc
twhelp
varsfields
videodrama
wikinow
wills
zemox
zhongweng


[tw5] Re: Enable CORS on local node server?

2020-10-16 Thread amreus
I've been testing this using Jed's BobWin.exe on Windows. It works the same 
without the need to modify the server so I think I'm going to target Bob as 
the server. instead of the TiddlyWiki node server. 

(There's currently a bug in bob 
<https://github.com/OokTech/TW5-Bob/issues/159> that the created and 
modified fields are incorrect.)

Here's a basic bookmarklet for a bob server:

javascript: (
  function () {
var data = { tiddlers: {'0': {'fields': {'title': window.location.href,
'caption': document.title ;
var tid = JSON.stringify(data);
var xhr = new XMLHttpRequest();
const wikiname = 'bookmarks';
xhr.timeout = 1;
xhr.onreadystatechange = function () {
  console.log('xhr.readyState: ' + xhr.readyState);
  console.log('xhr.status: ' + xhr.status);
  console.log('xhr.responseText: ' + xhr.responseText);
  console.log('xhr.statusText: ' + xhr.statusText);
};
xhr.open('POST', `http://127.0.0.1:8080/api/push/${wikiname}`);
xhr.send(tid);
  })();



On Monday, October 12, 2020 at 5:40:45 AM UTC-4 amreus wrote:

> Thank you. I could use a lot of help with everything. I'm not a programmer 
> - I  just play around with things sometimes. The javascript is all very 
> hacky and it would be nice to offer the cors as an option instead of having 
> it hard-coded.  I can share what I have on github if you or anyone else is 
> interested. 
>
> I have not tried anything other than Firefox on Windows 10.
>
> Here's an image of the fields I am grabbing.  I decided to hide the 
> tiddlers as system tiddlers and use the caption field for display. Also 
> changed to using the URL as the unique identifier instead of the html title 
> tag. 
>
> There is a major downside - since you can't catch CORS errors in 
> javascript, I'm not sure how to notify the user if the bookmarking fails 
> for that reason.  Specifically there is a problem with bookmarking Github 
> pages - they are blocking the javascript and I get an error: " Content 
> Security Policy: The page’s settings blocked the loading of a resource at 
> inline (“script-src”)." I'm not sure if that can be overcome yet.
>
> But over-all I'm happy with how well it works.  Just browse and click to 
> bookmark.  Then use all of the tools available in TiddlyWiki to organize 
> your bookmarks. It's slightly less convenient than the built-in bookmarks 
> library but vastly more powerful. 
>
> On Sunday, October 11, 2020 at 9:01:23 PM UTC-4 joshua@gmail.com 
> wrote:
>
>> Excellent work! I've been following you progress. I will definitely use 
>> something like this in my Bookmarks plugin.
>>
>> Has this been tested in multiple browsers? I also really like how this 
>> opens up the possibility to write tiddlers to a wiki-tab while your browser 
>> has another tab or content in view. Mahalo (thanks)!
>>
>> Best,
>> Joshua Fontany
>> On Sunday, October 11, 2020 at 2:10:21 AM UTC-7 amreus wrote:
>>
>>> Thanks Joshua,
>>>
>>> I did figure enough of it it out to get a working bookmarklet. I had to 
>>> add the right headers to the server.js file and put handler file. 
>>>
>>> I'm not an expert but I think it is safe enough.  The code is a 
>>> bookmarklet which calls the WebServer API .  The result is I can press my 
>>> bookmarklet button on any page and have a tiddler created from the web page 
>>> info. Kind of cool but I'm not sure how useful it really is.  I think I'm 
>>> motivated by curiosity and the challenge more than the utility. 
>>>
>>> Here's the bookmarklet as of now:
>>>
>>>   function () {
>>> var e = encodeURIComponent;
>>> var t = document.title;
>>> var u = window.location.href;
>>> var data = JSON.stringify({ "tags": "Link", "url": u });
>>> var xhr = new XMLHttpRequest();
>>> xhr.open('PUT', 'http://127.0.0.1:8080/recipes/default/tiddlers/' + 
>>> t);
>>> xhr.setRequestHeader('x-requested-with', 'TiddlyWiki');
>>> xhr.onreadystatechange = function () {
>>>   if (xhr.readyState === 4) {
>>> console.log('xhr.status: ' + xhr.status);
>>> console.log('xhr.responseText: ' + xhr.responseText);
>>>   }
>>> };
>>> xhr.send(data);
>>>   })();
>>>
>>> On Saturday, October 10, 2020 at 11:18:36 PM UTC-4 joshua@gmail.com 
>>> wrote:
>>>
>>>>
>>>> CORS errors are a problem when the javascript you are running is being 
>>>> run from within the Browser, but is trying to access a resource that is 
>>>> 

Re: [tw5] Announcing TiddlyMarker v0.1.0-alpha for Firefox

2020-10-15 Thread amreus
Oh, and thank you for creating this plugin!


On Thursday, October 15, 2020 at 8:02:16 PM UTC-4 amreus wrote:

> I made and quickly deleted a post asking about using a prefix ore template 
> for tiddler naming.  
>
> I found the answer in the tiddlymarks options page. You can construct the 
> fields as you wish in the Formatting section. Here is an example of using a 
> system tiddler for the bookmark tiddler:
>
> [image: 2020-10-15_195926.png]
>
>
>
> On Monday, June 8, 2020 at 2:57:24 AM UTC-4 Yestin Harrison wrote:
>
>> Well, 0.3.0 is live on AMO. Besides fixing a rather nasty bug that 
>> rendered the popup inoperable under certain circumstances, I took it 
>> as an opportunity to make the download dialog opt-in (default off), 
>> and add an explanatory label to the server URL. 
>>
>> As far as large features are concerned, there's one primary issue – 
>> there are rather strict requirements on what execution context can 
>> trigger the popup. This is ostensibly to protect users from surprising 
>> behaviour, but the long and of it is that as soon as I await something 
>> (such as making sure a tab is opened and then loaded, as would be the 
>> case for a context menu item to bookmark a link), I no longer have the 
>> ability to bring up the popup. That is to say, anything that depends 
>> on a resource that is not the current tab would have to either 
>> unconditionally run in “quick mode” with no ability for the user to 
>> edit anything, or instantiate some different mechanism within the page 
>> (i.e. port the popup to instantiate in a content script). 
>>
>> The latter would work with some effort, but it has the unfortunate 
>> property that it would all be for *just* links. The lovely thing about 
>> the context menu API is that among its supported contexts are native 
>> browser bookmarks, which would be *incredibly* convenient for porting 
>> over existing bookmarks. Frustratingly enough, though, doing anything 
>> meaningful with those is just out of reach. With no corresponding page 
>> context to run in, and no way to signal anything important before 
>> bringing up the popup in a manner programmatically indistinguishable 
>> from an ordinary click on the extension button (!), it would have no 
>> way of presenting any user interface. 
>>
>> I've already had to hack around this strict behaviour to get the popup 
>> to be whatsoever conditional, but I believe that's the most I can do 
>> there. If there are any JS gurus reading who know some reason what I 
>> wrote might be wrong, please do let me know – I'd love to implement 
>> something like this if the extension APIs allowed me to. 
>>
>> With the disappointing technical bits out of the way, some good news: 
>> page previews are actually incredibly easy to get from the tabs API, 
>> so some form of support for that would be doable. I'm mulling over 
>> ways to make favicon formatting more customisable. One potential 
>> solution is to just expose a snapshot of the whole tab data structure 
>> to both formatting functions and throw the user a link to MDN if they 
>> want to mess around. Another is to split the favicon title into its 
>> own formatting function, and evaluate it at slightly different points 
>> than where the current two are, so it could be intercepted when the 
>> popup is brought up. 
>>
>> Either way, the addon is in quite a healthy state at the moment, and 
>> should get even handier and more flexible very soon. 
>>
>

-- 
You received this message because you are subscribed to the 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/72d44374-457c-4c81-b50b-9ab983117d22n%40googlegroups.com.


Re: [tw5] Announcing TiddlyMarker v0.1.0-alpha for Firefox

2020-10-15 Thread amreus
I made and quickly deleted a post asking about using a prefix ore template 
for tiddler naming.  

I found the answer in the tiddlymarks options page. You can construct the 
fields as you wish in the Formatting section. Here is an example of using a 
system tiddler for the bookmark tiddler:

[image: 2020-10-15_195926.png]



On Monday, June 8, 2020 at 2:57:24 AM UTC-4 Yestin Harrison wrote:

> Well, 0.3.0 is live on AMO. Besides fixing a rather nasty bug that
> rendered the popup inoperable under certain circumstances, I took it
> as an opportunity to make the download dialog opt-in (default off),
> and add an explanatory label to the server URL.
>
> As far as large features are concerned, there's one primary issue –
> there are rather strict requirements on what execution context can
> trigger the popup. This is ostensibly to protect users from surprising
> behaviour, but the long and of it is that as soon as I await something
> (such as making sure a tab is opened and then loaded, as would be the
> case for a context menu item to bookmark a link), I no longer have the
> ability to bring up the popup. That is to say, anything that depends
> on a resource that is not the current tab would have to either
> unconditionally run in “quick mode” with no ability for the user to
> edit anything, or instantiate some different mechanism within the page
> (i.e. port the popup to instantiate in a content script).
>
> The latter would work with some effort, but it has the unfortunate
> property that it would all be for *just* links. The lovely thing about
> the context menu API is that among its supported contexts are native
> browser bookmarks, which would be *incredibly* convenient for porting
> over existing bookmarks. Frustratingly enough, though, doing anything
> meaningful with those is just out of reach. With no corresponding page
> context to run in, and no way to signal anything important before
> bringing up the popup in a manner programmatically indistinguishable
> from an ordinary click on the extension button (!), it would have no
> way of presenting any user interface.
>
> I've already had to hack around this strict behaviour to get the popup
> to be whatsoever conditional, but I believe that's the most I can do
> there. If there are any JS gurus reading who know some reason what I
> wrote might be wrong, please do let me know – I'd love to implement
> something like this if the extension APIs allowed me to.
>
> With the disappointing technical bits out of the way, some good news:
> page previews are actually incredibly easy to get from the tabs API,
> so some form of support for that would be doable. I'm mulling over
> ways to make favicon formatting more customisable. One potential
> solution is to just expose a snapshot of the whole tab data structure
> to both formatting functions and throw the user a link to MDN if they
> want to mess around. Another is to split the favicon title into its
> own formatting function, and evaluate it at slightly different points
> than where the current two are, so it could be intercepted when the
> popup is brought up.
>
> Either way, the addon is in quite a healthy state at the moment, and
> should get even handier and more flexible very soon.
>

-- 
You received this message because you are subscribed to the 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/2dd8c6ef-3ab5-428a-94bc-9106b7e3e1e2n%40googlegroups.com.


Re: [tw5] Announcing TiddlyMarker v0.1.0-alpha for Firefox

2020-10-15 Thread amreus
Yeston,

Thanks for creating this plugin - it's working very well so far. 

I would prefer to hide the bookmark tiddlers under a system prefix such as 
`$:/bookmark/` and use `window.location.href` as the unique identifier 
instead of using the the web page title as the tiddler title. 

Would it be possible to have a user-defined prefix or maybe a template for 
the tiddler titles? I would like to choose a prefix, including using a 
system ($:/) prefix when creating the title of the tiddlers.  One reason 
being that if 2 sites have the same title you can not bookmark both sites. 
This has already happened to me with only about 2 dozen site bookmarked. 




On Monday, June 8, 2020 at 2:57:24 AM UTC-4 Yestin Harrison wrote:

> Well, 0.3.0 is live on AMO. Besides fixing a rather nasty bug that
> rendered the popup inoperable under certain circumstances, I took it
> as an opportunity to make the download dialog opt-in (default off),
> and add an explanatory label to the server URL.
>
> As far as large features are concerned, there's one primary issue –
> there are rather strict requirements on what execution context can
> trigger the popup. This is ostensibly to protect users from surprising
> behaviour, but the long and of it is that as soon as I await something
> (such as making sure a tab is opened and then loaded, as would be the
> case for a context menu item to bookmark a link), I no longer have the
> ability to bring up the popup. That is to say, anything that depends
> on a resource that is not the current tab would have to either
> unconditionally run in “quick mode” with no ability for the user to
> edit anything, or instantiate some different mechanism within the page
> (i.e. port the popup to instantiate in a content script).
>
> The latter would work with some effort, but it has the unfortunate
> property that it would all be for *just* links. The lovely thing about
> the context menu API is that among its supported contexts are native
> browser bookmarks, which would be *incredibly* convenient for porting
> over existing bookmarks. Frustratingly enough, though, doing anything
> meaningful with those is just out of reach. With no corresponding page
> context to run in, and no way to signal anything important before
> bringing up the popup in a manner programmatically indistinguishable
> from an ordinary click on the extension button (!), it would have no
> way of presenting any user interface.
>
> I've already had to hack around this strict behaviour to get the popup
> to be whatsoever conditional, but I believe that's the most I can do
> there. If there are any JS gurus reading who know some reason what I
> wrote might be wrong, please do let me know – I'd love to implement
> something like this if the extension APIs allowed me to.
>
> With the disappointing technical bits out of the way, some good news:
> page previews are actually incredibly easy to get from the tabs API,
> so some form of support for that would be doable. I'm mulling over
> ways to make favicon formatting more customisable. One potential
> solution is to just expose a snapshot of the whole tab data structure
> to both formatting functions and throw the user a link to MDN if they
> want to mess around. Another is to split the favicon title into its
> own formatting function, and evaluate it at slightly different points
> than where the current two are, so it could be intercepted when the
> popup is brought up.
>
> Either way, the addon is in quite a healthy state at the moment, and
> should get even handier and more flexible very soon.
>

-- 
You received this message because you are subscribed to the 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/9e967760-d3d0-40cf-a686-d3d265efcaf0n%40googlegroups.com.


[tw5] Re: Enable CORS on local node server?

2020-10-12 Thread amreus
Thank you. I could use a lot of help with everything. I'm not a programmer 
- I  just play around with things sometimes. The javascript is all very 
hacky and it would be nice to offer the cors as an option instead of having 
it hard-coded.  I can share what I have on github if you or anyone else is 
interested. 

I have not tried anything other than Firefox on Windows 10.

Here's an image of the fields I am grabbing.  I decided to hide the 
tiddlers as system tiddlers and use the caption field for display. Also 
changed to using the URL as the unique identifier instead of the html title 
tag. 

There is a major downside - since you can't catch CORS errors in 
javascript, I'm not sure how to notify the user if the bookmarking fails 
for that reason.  Specifically there is a problem with bookmarking Github 
pages - they are blocking the javascript and I get an error: " Content 
Security Policy: The page’s settings blocked the loading of a resource at 
inline (“script-src”)." I'm not sure if that can be overcome yet.

But over-all I'm happy with how well it works.  Just browse and click to 
bookmark.  Then use all of the tools available in TiddlyWiki to organize 
your bookmarks. It's slightly less convenient than the built-in bookmarks 
library but vastly more powerful. 

On Sunday, October 11, 2020 at 9:01:23 PM UTC-4 joshua@gmail.com wrote:

> Excellent work! I've been following you progress. I will definitely use 
> something like this in my Bookmarks plugin.
>
> Has this been tested in multiple browsers? I also really like how this 
> opens up the possibility to write tiddlers to a wiki-tab while your browser 
> has another tab or content in view. Mahalo (thanks)!
>
> Best,
> Joshua Fontany
> On Sunday, October 11, 2020 at 2:10:21 AM UTC-7 amreus wrote:
>
>> Thanks Joshua,
>>
>> I did figure enough of it it out to get a working bookmarklet. I had to 
>> add the right headers to the server.js file and put handler file. 
>>
>> I'm not an expert but I think it is safe enough.  The code is a 
>> bookmarklet which calls the WebServer API .  The result is I can press my 
>> bookmarklet button on any page and have a tiddler created from the web page 
>> info. Kind of cool but I'm not sure how useful it really is.  I think I'm 
>> motivated by curiosity and the challenge more than the utility. 
>>
>> Here's the bookmarklet as of now:
>>
>>   function () {
>> var e = encodeURIComponent;
>> var t = document.title;
>> var u = window.location.href;
>> var data = JSON.stringify({ "tags": "Link", "url": u });
>> var xhr = new XMLHttpRequest();
>> xhr.open('PUT', 'http://127.0.0.1:8080/recipes/default/tiddlers/' + t
>> );
>> xhr.setRequestHeader('x-requested-with', 'TiddlyWiki');
>> xhr.onreadystatechange = function () {
>>   if (xhr.readyState === 4) {
>> console.log('xhr.status: ' + xhr.status);
>> console.log('xhr.responseText: ' + xhr.responseText);
>>   }
>> };
>> xhr.send(data);
>>   })();
>>
>> On Saturday, October 10, 2020 at 11:18:36 PM UTC-4 joshua@gmail.com 
>> wrote:
>>
>>>
>>> CORS errors are a problem when the javascript you are running is being 
>>> run from within the Browser, but is trying to access a resource that is not 
>>> on the "same domain" as the document you are viewing.
>>>
>>> As long as you 100% make sure that your code is running on the _Server_ 
>>> (node.js), it can then make any modifications to the Wiki files you need. 
>>> This will then be picked up the next time the browser syncs with the server.
>>>
>>> Best,
>>> Joshua Fontany
>>> On Saturday, October 10, 2020 at 1:41:57 PM UTC-7 amreus wrote:
>>>
>>>> Is it possible to allow Cross Origin Resource Sharing when running a 
>>>> node wiki locally?
>>>>
>>>> I'm starting the server using the command: tiddlywiki.js  --listen
>>>>
>>>>
>>>>

-- 
You received this message because you are subscribed to the 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/a3c91c66-8265-4943-8939-0dcec991cdcdn%40googlegroups.com.


[tw5] Re: Enable CORS on local node server?

2020-10-11 Thread amreus
Thanks Joshua,

I did figure enough of it it out to get a working bookmarklet. I had to add 
the right headers to the server.js file and put handler file. 

I'm not an expert but I think it is safe enough.  The code is a bookmarklet 
which calls the WebServer API .  The result is I can press my bookmarklet 
button on any page and have a tiddler created from the web page info. Kind 
of cool but I'm not sure how useful it really is.  I think I'm motivated by 
curiosity and the challenge more than the utility. 

Here's the bookmarklet as of now:

  function () {
var e = encodeURIComponent;
var t = document.title;
var u = window.location.href;
var data = JSON.stringify({ "tags": "Link", "url": u });
var xhr = new XMLHttpRequest();
xhr.open('PUT', 'http://127.0.0.1:8080/recipes/default/tiddlers/' + t);
xhr.setRequestHeader('x-requested-with', 'TiddlyWiki');
xhr.onreadystatechange = function () {
  if (xhr.readyState === 4) {
console.log('xhr.status: ' + xhr.status);
console.log('xhr.responseText: ' + xhr.responseText);
  }
};
xhr.send(data);
  })();

On Saturday, October 10, 2020 at 11:18:36 PM UTC-4 joshua@gmail.com 
wrote:

>
> CORS errors are a problem when the javascript you are running is being run 
> from within the Browser, but is trying to access a resource that is not on 
> the "same domain" as the document you are viewing.
>
> As long as you 100% make sure that your code is running on the _Server_ 
> (node.js), it can then make any modifications to the Wiki files you need. 
> This will then be picked up the next time the browser syncs with the server.
>
> Best,
> Joshua Fontany
> On Saturday, October 10, 2020 at 1:41:57 PM UTC-7 amreus wrote:
>
>> Is it possible to allow Cross Origin Resource Sharing when running a node 
>> wiki locally?
>>
>> I'm starting the server using the command: tiddlywiki.js  --listen
>>
>>
>>

-- 
You received this message because you are subscribed to the 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/a408b474-2e66-4af1-b57e-3b95200666bcn%40googlegroups.com.


[tw5] Re: Enable CORS on local node server?

2020-10-11 Thread amreus
Thanks Joshua,

I did figure this out. I had to add some headers to the server.js and put 
handler  files.

I'm definitely not an expert in the area, but i believe it is safe. The 
Javascript code is running from a bookmarklet in my browser.  The 
bookmarklet just sends the current web page title and url to the node 
server using the WebServer API, which creates a tiddler from the data. I 
think I wanted to do it more out of curiosity than any useful purpose. 

javascript: (
  function () {
var data = JSON.stringify({ "tags": "Link", "url": window.location.href 
});
var xhr = new XMLHttpRequest();
xhr.open('PUT', 'http://127.0.0.1:8080/recipes/default/tiddlers/' + 
document.title);
xhr.onreadystatechange = function () {
  if (xhr.readyState === 4) {
console.log('xhr.status: ' + xhr.status);
console.log('xhr.responseText: ' + xhr.responseText);
  }
};
xhr.send(data);
  })();

On Saturday, October 10, 2020 at 11:18:36 PM UTC-4 joshua@gmail.com 
wrote:

>
> CORS errors are a problem when the javascript you are running is being run 
> from within the Browser, but is trying to access a resource that is not on 
> the "same domain" as the document you are viewing.
>
> As long as you 100% make sure that your code is running on the _Server_ 
> (node.js), it can then make any modifications to the Wiki files you need. 
> This will then be picked up the next time the browser syncs with the server.
>
> Best,
> Joshua Fontany
> On Saturday, October 10, 2020 at 1:41:57 PM UTC-7 amreus wrote:
>
>> Is it possible to allow Cross Origin Resource Sharing when running a node 
>> wiki locally?
>>
>> I'm starting the server using the command: tiddlywiki.js  --listen
>>
>>
>>

-- 
You received this message because you are subscribed to the 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/a54f58f2-36e5-4dde-8d74-96acf179122fn%40googlegroups.com.


[tw5] Enable CORS on local node server?

2020-10-10 Thread amreus
Is it possible to allow Cross Origin Resource Sharing when running a node 
wiki locally?

I'm starting the server using the command: tiddlywiki.js  --listen


-- 
You received this message because you are subscribed to the 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/2a722c72-6362-4c5d-96e7-e49848ae6cfdn%40googlegroups.com.


Re: [tw5] A HOWTO: My approach to modals now involves a transclusion template

2020-10-10 Thread amreus
One small note - You  can use the "tc-tiddlylink" class instead if you want 
to match the style TiddlyWiki uses for links. 


On Saturday, October 10, 2020 at 12:49:16 PM UTC-4 Atronoush wrote:

> Hi Charlie,
>  Many thanks for this. Your approach to use specific titles (e.g A HOWTO) 
> makes it simple to search and find the topic in Google forum.
> I highly recommend to setup a *HowTo Wiki* and just give a link here, 
> this way one can simply find these great stuff later for further use.
> Also after a while we have a repo of useful tips and tricks in Tiddlywiki.
>
> --Atro
>
> On Sat, Oct 10, 2020 at 5:46 AM Charlie Veniot  wrote:
>
>> G'day,
>>
>> I've refined my approach a bit re modals.  (Previous approach:  
>> https://groups.google.com/forum/?oldui=1#!searchin/tiddlywiki/veniot/tiddlywiki/87evWxmped0/81kc1V-yBQAJ
>> )
>>
>> Now, I make use of a transclusion template.  See 2 images below, and find 
>> related tiddlers in my TiddlyWiki:  
>> https://intertwingularityslicendice.neocities.org/CJ_ProductReviews.html
>>
>> Cheers !
>>
>>
>> [image: ModalWindow.png]
>>
>>
>>
>> [image: TiddlyWiki Modals.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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/e3013433-f3fe-4c68-978d-22d739b0d8a5o%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/4f22d32e-ceec-4f12-9e74-695afcf05b0cn%40googlegroups.com.


[tw5] Bookmark to a TiddlyWiki Bookmarklet proof-of-concept.

2020-10-04 Thread amreus
Just playing with an idea I might have read about on this forum.  It's not 
completely  functioning at moment, but enough of it is that I'm certain it 
can be made to work.

I made a browser bookmarklet that opens a popup window to your local node 
tiddlywiki, and appends to the wiki address the url and title of a web 
site. (Basically sends a HTTP GET request to your wiki, passing the site 
url and title in the query string.)

The wiki has a tiddler that parses the request back into a url and title 
variable, which can then be used to create tiddlers, etc. 

I tried to write up some instructions here 
. Apologies if I'm terse. Please ask 
if you have questions or feedback.

Thanks for looking.




-- 
You received this message because you are subscribed to the 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/1e9f0e9e-9c57-4e0b-a991-85dee10df985n%40googlegroups.com.


[tw5] Re: Breaking up very long runs in a filter?

2020-10-02 Thread amreus
Just to add a hopefully helpful example.  You can store filters not only as 
macros, but in fields and data tiddlers.

While learning and experimenting with some wikis I was inconsistent in my 
use of tags.  I used a data tiddler to define filters until I got things 
cleaned up and simplified.

filter data-tidder:

title:filters
tasks:[tag[task]] [tag[Task]] [tag[Item]]

use:

<$list filter="[subfilter{filters##tasks}!tag[Done]]" 
template="task-template"/>


Live example 


On Wednesday, September 30, 2020 at 8:53:13 PM UTC-4 joshua@gmail.com 
wrote:

> As Tony mentioned, subfilters have to be "complete filter runs", not just 
> a series of operators. Try this, with the enclosing square-brackets:
>
> \define obsname()
> [contains:ascend.observation.name
> {$:/ascend/state/observation.name.selected}]
> \end
>
> "subfilter" in your main filter will then pass each individual 
> title to the subfilter as input, returning all that pass.
>
> Best,
> Joshua F
>
> On Wednesday, September 30, 2020 at 4:47:41 PM UTC-7 Cade Roux wrote:
>
>> You have an example I can look at somewhere?  I just tried to extract one 
>> of the filters and it doesn't appear to be working - probably because of 
>> the curlybracket reference to the value of another tiddler set by the 
>> dropdowns?
>>
>> \define obsname()
>> contains:ascend.observation.name
>> {$:/ascend/state/observation.name.selected}
>> \end
>>
>> Then I tried to use it as subfilter in the filter where that 
>> original filter was and the filter no longer works as expected.
>>
>> I think I need to make up a toy version of this wiki so people can see it 
>> in action.
>>
>> Thanks,
>>
>> Cade
>>
>> On Wednesday, September 30, 2020 at 6:22:25 PM UTC-5 joshua@gmail.com 
>> wrote:
>>
>>> You can define sections of that filter as macro definitions, and then 
>>> call them with "subfilter".
>>>
>>> I.e. "[all[tiddlers+shadows]tag[MyTag]subfilter 
>>> subfilter sort[]]" 
>>>
>>> Define them at the start of the tiddler which is using the filter, or 
>>> define them in other tiddlers and import using the "\import 
>>> filter-to-import" Pragma at the top of the text field where the filters 
>>> will be used.
>>>
>>> Best,
>>> Joshua Fontany
>>> On Wednesday, September 30, 2020 at 10:41:23 AM UTC-7 Cade Roux wrote:
>>>
 What is the best technique to break up very long runs in a filter 
 (preferably to different lines)?  Can't use whitespace since that 
 separates 
 runs.  I have a filter that is currently 382 characters.

 It selects a subset of tiddlers on one field, then four other fields 
 individually have to have tags matching four dropdowns which allow the 
 user 
 to filter, and then it is sorted.  Some of that can be mitigated with 
 shorted field names, but it still is unwieldy in most editors.

 Thanks,

 Cade

>>>

-- 
You received this message because you are subscribed to the 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/7fba6dda-d926-4b22-9d28-0d98266fbfa8n%40googlegroups.com.


[tw5] Re: ViewTemplate Filter?

2020-09-27 Thread amreus
Yep that got it - sometimes it helps just asking the question.


On Sunday, September 27, 2020 at 8:35:50 PM UTC-4 amreus wrote:

> Hmm, I think the button may need to store the name of the current tiddler 
> somewhere to use in the view template filter. I'll try that tomorrow. 
>
>
> On Sunday, September 27, 2020 at 8:23:13 PM UTC-4 amreus wrote:
>
>> Good evening,
>>
>> I made a preview button for the view toolbar. It works but... it shows a 
>> preview for all tiddlers in the story.  Can make it preview only the text 
>> of the tiddler on which the button is clicked?
>>
>>
>> http://amreus.tiddlyspot.com/#preview-button:preview-button%20preview-viewtemplate
>>
>> Thanks.
>>
>>

-- 
You received this message because you are subscribed to the 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/efa1e273-577d-410c-9448-54a5fdf8d975n%40googlegroups.com.


[tw5] Re: ViewTemplate Filter?

2020-09-27 Thread amreus
Hmm, I think the button may need to store the name of the current tiddler 
somewhere to use in the view template filter. I'll try that tomorrow. 


On Sunday, September 27, 2020 at 8:23:13 PM UTC-4 amreus wrote:

> Good evening,
>
> I made a preview button for the view toolbar. It works but... it shows a 
> preview for all tiddlers in the story.  Can make it preview only the text 
> of the tiddler on which the button is clicked?
>
>
> http://amreus.tiddlyspot.com/#preview-button:preview-button%20preview-viewtemplate
>
> Thanks.
>
>

-- 
You received this message because you are subscribed to the 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/7c60d4fa-383b-46eb-a16d-aaff09d1b2b3n%40googlegroups.com.


[tw5] ViewTemplate Filter?

2020-09-27 Thread amreus
Good evening,

I made a preview button for the view toolbar. It works but... it shows a 
preview for all tiddlers in the story.  Can make it preview only the text 
of the tiddler on which the button is clicked?

http://amreus.tiddlyspot.com/#preview-button:preview-button%20preview-viewtemplate

Thanks.

-- 
You received this message because you are subscribed to the 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/3049cfd1-1d89-4d59-9fbd-f8789c73b99an%40googlegroups.com.


[tw5] Re: How to increaase the size of a button image?

2020-09-27 Thread amreus
By trial-and-error I found setting the font-size will size the svg icons as 
well. Not sure if it's correct but it works.  See link above for a image 
clipboard gallery.


On Sunday, September 27, 2020 at 5:40:41 PM UTC-4 amreus wrote:

> Hello,
>
> I made this image clipper: 
> http://amreus.tiddlyspot.com/#Images%20Gallery%20Clipboard
>
> How can I increase the size of the images?  I assume using a Stylesheet 
> but I don't know the correct classes or rules to use. css is still sort of 
> a mystery to me at this stage.
>
> Thanks.
>
>

-- 
You received this message because you are subscribed to the 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/3f74025b-298a-421e-9471-c995702c6a5an%40googlegroups.com.


[tw5] How to increaase the size of a button image?

2020-09-27 Thread amreus
Hello,

I made this image clipper: 
http://amreus.tiddlyspot.com/#Images%20Gallery%20Clipboard

How can I increase the size of the images?  I assume using a Stylesheet but 
I don't know the correct classes or rules to use. css is still sort of a 
mystery to me at this stage.

Thanks.

-- 
You received this message because you are subscribed to the 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/0d26719e-0c31-4ccd-813a-20e12559958an%40googlegroups.com.


[tw5] Re: Dollar sign ($) in widget attributes?

2020-09-27 Thread amreus
On further inspection, is it the action widgets and the macrocall widget 
which use the $attribute.  The rest do not.  That's easier to remember.


-- 
You received this message because you are subscribed to the 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/6d309ef2-4274-4190-aedc-3b6d461a9ff7n%40googlegroups.com.


[tw5] Dollar sign ($) in widget attributes?

2020-09-27 Thread amreus

I see some widget's attributes start with a $ and some don't.  Does the $ 
have special meaning?





-- 
You received this message because you are subscribed to the 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/9e26e082-25f6-468e-b868-a9debf149099n%40googlegroups.com.


[tw5] Re: Filter Operator Categories

2020-09-25 Thread amreus
Thanks for the resource. It clarifies some some of the differences I was 
struggling with that I hadn't yet identified for myself. 

On Friday, September 25, 2020 at 2:24:38 PM UTC-4 clutterstack wrote:

> Haha, that's great. There's information here that can help avert huge 
> amounts of baffling trial and error, starting with that heads-up about the 
> very existence of the different categories of "filter". Nice resource, 
> worth getting in front of the eyeballs of anyone learning to use TW filters 
> sooner rather than later.
>
> On Saturday, September 19, 2020 at 2:21:37 PM UTC-4 inmy...@gmail.com 
> wrote:
>
>> The quick version: I made a wiki that describes the different filter 
>> operator categories and lets you look through the operators by different 
>> categories. The wiki is here; 
>> https://ooktech-tw.gitlab.io/filter-operator-notes/
>>
>> I am not sure how useful this will be for anyone else.
>>
>> For another project I wrote a parser for tiddlywiki style filters, and 
>> part of that I had to make a more detailed description of the different 
>> operator types than just 'construction' and 'selection'.
>>
>> I came up with 6 categories that I hope are the fundamental types of 
>> operators, construction, filtering, transformation, replacement, list, and 
>> list replacement.
>>
>> There are also categories defined by what inputs operators use and by the 
>> purpose of the operator, but I haven't finished all of that yet.
>>
>

-- 
You received this message because you are subscribed to the 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/aea18c68-955d-41f0-9e4a-c6075cafb8edn%40googlegroups.com.


[tw5] Re: Javascript Human Friendly Date Parser?

2020-09-15 Thread amreus
While trying to understand why dates are handled as they are in TIddyWiki, 
I found out it is not TiddlyWiki but Javascript that is the problem.

View this thread 
<https://stackoverflow.com/questions/7556591/is-the-javascript-date-object-always-one-day-off>
 
for some craziness (https://stackoverflow.com/a/31732581)

On Saturday, September 12, 2020 at 11:18:20 PM UTC-4 TW Tones wrote:

> Re parsing an input;
>
> There is a facility in the current pre release keyboard-driven-input Macro 
> <https://tiddlywiki.com/prerelease/#keyboard-driven-input%20Macro>
>
> This allows actions to be executed from an input field, say with enter. 
> This may provide the opportunity to do post entry processing. Effectively 
> allowing you to make more sophisticated parsing take place on a per input 
> basis.
>
> Thus you could pass the value to other functions, if available for the 
> result.
>
> Regards
> Tony
>
>
>
> On Sunday, 13 September 2020 01:45:25 UTC+10, amreus wrote:
>>
>>
>> Ruby has this great library called Chronic that parses strings into Ruby 
>> Date objects. It handles date strings that are human friendly as well as in 
>> rigid formats.
>>
>> You can see some usage examples here: https://github.com/mojombo/chronic
>>
>> Has anyone already made such a parser for TiddyWiki5? Does anyone know if 
>> a similar library exists for Javascript which could be used?
>>
>> Why?  I have a textbox for rapid list item entry.  Instead of picking a 
>> due-date for example, I just want to include the due-date as part of the 
>> text and have a macro parse it out from the title and add it as a date 
>> field. An example entry in my textbox might look like this:
>>
>> Schedule a fire system test due:"oct 1 8am"
>>
>>

-- 
You received this message because you are subscribed to the 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/51007ad5-b70c-44fc-80bf-35df960aacabn%40googlegroups.com.


[tw5] Re: Upgrading my TW

2020-09-15 Thread amreus

Using the filter tab in AdvancedSearch, export all your plugin tiddlers as 
json. A proper plugin will contain all your tiddlers under your namespace, 
i.e

$:/plugins/bobj/tiddler1
$:/plugins/bobj/tiddler2 

The filter to get all your plugin tiddlers might look like:

[prefix[$:/plugins/bobj]]

Have your users import the exported json file.  They can even import over 
the network (in Windows at least) if you host the json file online (Github 
works.)




On Tuesday, September 15, 2020 at 3:15:18 AM UTC-4 PMario wrote:

> Hi, 
>
> They should make a backup of their own version first 
>
>  - They can download "your new version.html" 
>  - Open it in the browser
>  - Open the file explorer
>  - Drag & Drop import "their" version into "your" version
>  - There will be an import dialog.
>  - They can decide which tiddlers to import
>  Done!
>
> 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/1fa934fc-38d6-45e9-bab2-8b2201d8da64n%40googlegroups.com.


[tw5] Re: Dynamic css and transcluding

2020-09-13 Thread amreus
Mario. This is the greatest example, thanks.

I've made a similar example here 

.

In short this is customizing the view of a tiddler's fields via a template, 
and applying a style based on the tiddler's tags. Elegant and powerful  

Internally I have been using the terms "inline template" or (borrowing from 
Ruby on Rails)  "partial" template because the template is showing just a 
part of the tiddler. I'm not sure if that's a helpful way to think of it.

But thanks again for the example.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ecc698a6-11c6-4a1a-a545-d78a58b50cf0n%40googlegroups.com.


[tw5] Re: TiddlyWiki toolmap submissions

2020-09-13 Thread amreus
Hi Dave,

Tobias Beer's GSD5 wiki has a datepicker 
 that can 
be dropped into a wiki.  The stylesheet must also be added.  I think it 
ought to be on the list.

-- 
You received this message because you are subscribed to the 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/a63816ea-054f-44ed-a1cc-8219067f9e5en%40googlegroups.com.


[tw5] Re: Javascript Human Friendly Date Parser?

2020-09-12 Thread amreus
Thanks I'll read it.

On Saturday, September 12, 2020 at 5:23:12 PM UTC-4, PMario wrote:
>
> Hi, 
>
> This thread may be of interest. 
> https://groups.google.com/forum/#!topic/tiddlywiki/Kyw0LMSRdj4
>
> -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/300e5124-c2aa-4825-8b31-45ba8884d612o%40googlegroups.com.


[tw5] Re: Javascript Human Friendly Date Parser?

2020-09-12 Thread amreus
I'm using a phrase that is used by some of the authors of the libraries. 
You'll have to ask them the question.


On Saturday, September 12, 2020 at 5:26:58 PM UTC-4 PMario wrote:

> On Saturday, September 12, 2020 at 8:44:00 PM UTC+2, amreus wrote:
>
> Thanks for the list.  A better phrase would have been "natural language" 
>> date parser.
>>
>
> That's interesting. How many "natural languages" does it support?
>
> -m
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9284d5cb-5b6e-4adb-a8e7-00258a52c653n%40googlegroups.com.


[tw5] Re: Javascript Human Friendly Date Parser?

2020-09-12 Thread amreus
I've tried that date picker - it jumps back a day due after selecting the 
date. But not always.  From what I  gather it has to do with the timezone 
and TiddlyWiki dates being UTC. 

-- 
You received this message because you are subscribed to the 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/db234774-7df1-495c-a6ef-4c506243d971n%40googlegroups.com.


[tw5] Re: Javascript Human Friendly Date Parser?

2020-09-12 Thread amreus
Saq,

Thanks for the list.  A better phrase would have been "natural language" 
date parser.

Dates in TiddlyWiki appear to be under-supported.  Would you agree, or am I 
missing something?  I know about the 3 Date filter operators.  But there 
seems to be a gap between the date storage format and the ability to enter 
dates in a convenient way. I have not even found a proper working date/time 
picker, which should come built-in imo.  

I don't even know where to start.  Do you have a github or anything I could 
browse for clues?

Thank you.

On Saturday, September 12, 2020 at 1:19:32 PM UTC-4 saq.i...@gmail.com 
wrote:

> Here is a list of JavaScript data parser libaries that I compiled a while 
> back (so it may be out of date):
>
>- https://sugarjs.com/dates/
>- https://github.com/holistics/js/tree/master/packages/date-parser
>- https://github.com/wanasit/chrono
>- https://github.com/datejs/Datejs
>- https://github.com/juttle/moment-parser
>
> My use case was very similar to yours. Ultimately I wasn't happy with any 
> of the existing options and rolled my own, which sadly isn't in a state to 
> be shared any time soon.
>
> Hope this helps,
> 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/2433bebe-5491-4afe-9e21-7ea9a2a6a584n%40googlegroups.com.


[tw5] Javascript Human Friendly Date Parser?

2020-09-12 Thread amreus

Ruby has this great library called Chronic that parses strings into Ruby 
Date objects. It handles date strings that are human friendly as well as in 
rigid formats.

You can see some usage examples here: https://github.com/mojombo/chronic

Has anyone already made such a parser for TiddyWiki5? Does anyone know if a 
similar library exists for Javascript which could be used?

Why?  I have a textbox for rapid list item entry.  Instead of picking a 
due-date for example, I just want to include the due-date as part of the 
text and have a macro parse it out from the title and add it as a date 
field. An example entry in my textbox might look like this:

Schedule a fire system test due:"oct 1 8am"

-- 
You received this message because you are subscribed to the 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/7418ef02-f309-42ab-a61a-63dcfdb82a11n%40googlegroups.com.


[tw5] Re: Filter simplification?

2020-09-10 Thread amreus
Following up with a relevant link.

https://ooktech.com/jed/ExampleWikis/FilterLogicExamples/



On Wednesday, August 26, 2020 at 8:22:48 PM UTC-4 TW Tones wrote:

> Amreus,
>
> Filters are a little different to standard boolean logic since they start 
> from a premise of generating a list of tiddler titles
>
> The following is a quick and untested response, please experiment.
>
> In your example
> [is[current]has[birt_date]] [is[current]has[birt_plac]]
> The result will be two values (title of the current tiddler) if both 
> fields have a value, but since the value is the same, the current tiddler 
> title it will be de-duplicated to one tiddler title.
>
> Perhaps one could write this as
> [(A!!B) or (A!!C)] where A is just a qualifier as to which B and which C 
> to use. The result returned will be blank for false or A for true.
>
> There are no parenthesis for order since the order is left to right. 
> Filters operate on the output of the previous step or each run is an AND.
> [[title1]] [[Title2]] represents both two titles and two runs like 
> [prefix[title1]] [prefix[Title2]] and the results of both runs are joined 
> and de-duplicated
>
> In the Doco Maths https://tiddlywiki.com/#Mathematics%20Operators it 
> explains how to stop de-duplication for undertaking maths.
>
> Back to your original question
> [{!!birt_date}] [{!!birt_plac}] will list the content of the fields if 
> they have a value, A is implicit in the "!!fieldname"
>
> You can also get the value of a field, if no value it will not return a 
> value 
> [is[current]get[birt_date]] [is[current]get[birt_plac]]
>
> but I'm not sure how to write [A and (B or C)] in filter.
>
> I think you already have? '[is[current]has[birt_date]] 
> [is[current]has[birt_plac]]'
> However The Test for A is not really a test, just a reference to a 
> particular tiddler
>
> Personally I suggest learning the filter syntax from the angle of its 
> original purpose, titles, since tiddlers are the atomic unit in tiddlywiki, 
> you will then start to discover ways to emulate other logical operations.
>
> Some quick examples
> [is[current]has[birt_date]has[birt_plac]] title returned only if they 
> both have a value
>
> [is[current]has[birt_date]] +[is[current]has[birt_plac]] title returned 
> only if first then second is true, the second is free to refer to anything 
> so you needs to specify current if thats what you want
>
> Rather than return the title you can now use then and else to set the 
> output
>
> [is[current]has[birt_date]then[yes]else[no]]  
>
> Finally;
> Remember with the list widget the output of a filter, if true or a list is 
> generated to apply it for each title to the contents of the list.
>
> Sometimes if the list is used to display content only we may use 
> +[limit[1]] so if anything satisfies the filter it will display the content 
> once.
>
> Regards
> Tony
>
>
> On Thursday, 27 August 2020 07:44:12 UTC+10, amreus wrote:
>>
>> Good evening. 
>>
>> Just a question of curiosity.  Can this filter be simplified? For 
>> example, can all[current] be "factored out" so it does not need to 
>> appear twice?  
>>
>> [is[current]has[birt_date]] [is[current]has[birt_plac]]
>>
>> In Boolean, I think this would be [(A and B) or (A and C)] == [A and (B 
>> or C)], but I'm not sure how to write [A and (B or C)] in filter. 
>>
>

-- 
You received this message because you are subscribed to the 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/7b8c6e78-9701-49fc-a3c1-18d556a55011n%40googlegroups.com.


[tw5] New Google Group: View Starred Topics?

2020-09-10 Thread amreus
Good morning,

I don't see how I can view the topics I have starred. Can someone point me 
in the right direction?  Am I going to have to bookmark each one in my 
browser instead?


-- 
You received this message because you are subscribed to the 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/c3543715-843b-44a0-b35a-d317ca1b4223n%40googlegroups.com.


[tw5] Named filters?

2020-09-10 Thread amreus

I am experimenting with task manager as if the world needs another...  
http://amreus.tiddlyspot.com/

The different views require many similar but different filters, but most of 
them have a common part that might be named "active tasks" and which may 
look like the following:

tag[Task]!tag[Done]!tag[Trash]

I want to create a few "named" filters that I can use so I can use them by 
name and only need to edit them in one place.

Does anything exist?  I assume this can be done using global macros but I 
wanted to ask about suggestions as I get started.  Thanks.

-- 
You received this message because you are subscribed to the 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/c5501cec-8ef0-4866-94f6-bc4c293b9383n%40googlegroups.com.


[tw5] Re: Sort tiddlers by substring?

2020-09-06 Thread amreus
Eric,

Outstanding.  Thanks for sharing your expertise.

I happen to be using 5.1.23-prerelease, so the new sortsub filter works 
perfectly.  Also thank you for the example of splitting sub-strings using 
split and rest, as well as the technique for creating a temporary list, 
sorting that, and then deconstructing the list.  It's a mini master-class.

On Sunday, September 6, 2020 at 5:45:35 AM UTC-4 amreus wrote:

> Heh, thank. That is exactly my current solution.
>
> I am wondering if there could be a new filter (or option) in the "nsort" 
> family of filters which would ignore any non-number characters.  I looked 
> at the Javascript functions in sort.js and the sortTIddlers function in 
> wiki.js for a clue but I need to study that a bit more to understand how 
> sorting works. 
>
> My initial thought would be to use Javascript's String.replace() to remove 
> any non-numeric characters from the titles and then pass them on to nsort. 
>
> Thanks.
> On Saturday, September 5, 2020 at 6:05:30 PM UTC-4 Mark S. wrote:
>
>> You will likely save yourself hours of headaches if you create separate 
>> fields for id and name.
>>
>>
>> On Saturday, September 5, 2020 at 2:10:56 PM UTC-7, amreus wrote:
>>>
>>> My "people" tiddlers consist of the person's name and an ID number to 
>>> make them unique. How can I sort the tiddlers by the ID number?
>>>
>>> example title: *Karl Roger Stanton (I234)*
>>>
>>> Thanks.
>>>
>>

-- 
You received this message because you are subscribed to the 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/0d1da7da-167a-42c2-b0d5-e31e01641f52n%40googlegroups.com.


[tw5] Re: Sort tiddlers by substring?

2020-09-06 Thread amreus
Heh, thank. That is exactly my current solution.

I am wondering if there could be a new filter (or option) in the "nsort" 
family of filters which would ignore any non-number characters.  I looked 
at the Javascript functions in sort.js and the sortTIddlers function in 
wiki.js for a clue but I need to study that a bit more to understand how 
sorting works. 

My initial thought would be to use Javascript's String.replace() to remove 
any non-numeric characters from the titles and then pass them on to nsort. 

Thanks.
On Saturday, September 5, 2020 at 6:05:30 PM UTC-4 Mark S. wrote:

> You will likely save yourself hours of headaches if you create separate 
> fields for id and name.
>
>
> On Saturday, September 5, 2020 at 2:10:56 PM UTC-7, amreus wrote:
>>
>> My "people" tiddlers consist of the person's name and an ID number to 
>> make them unique. How can I sort the tiddlers by the ID number?
>>
>> example title: *Karl Roger Stanton (I234)*
>>
>> Thanks.
>>
>

-- 
You received this message because you are subscribed to the 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/ad5841f2-eabe-4bbe-b328-31f2cf1ca354n%40googlegroups.com.


[tw5] Sort tiddlers by substring?

2020-09-05 Thread amreus
My "people" tiddlers consist of the person's name and an ID number to make 
them unique. How can I sort the tiddlers by the ID number?

example title: *Karl Roger Stanton (I234)*

Thanks.

-- 
You received this message because you are subscribed to the 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/27d22c48-793d-4bfe-929f-bbd818f02be0n%40googlegroups.com.


[tw5] Re: Importing a tiddler written with python?

2020-08-30 Thread amreus
Just a suggestion: I wouldn't build the json string manually. I would use a 
python dict and add the key/value pairs, then let the JSON library 
serialize it as a json string. 

It's the same idea I use only in Ruby for converting my gedcom files to 
tiddlers.


On Thursday, August 27, 2020 at 4:24:38 PM UTC-4, Jimmy Sweeney wrote:
>
> Hi there,
>
> Would anyone have any clues why this file 
> 
>  
> isn't importing nice and cleanly into my TiddlyWiki? It imports but not 
> nice and clean like dragging and dropping a tiddler from another TiddlyWiki 
> site does.
>
> I'm trying to create a python script that creates tiddler files. I input 
> the ISBN (a book ID number essentially) and spits out a tiddler file with 
> the title, author, cover image, etc.
>
> Anyway, I based my format on the format of a Tiddler 
>  that I 
> exported from tiddlywiki.com .
>
> What magic ingredients am I missing?
>
>
>

-- 
You received this message because you are subscribed to the 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/36f1e0ce-e14f-4e5f-a53a-1c20141a02a4o%40googlegroups.com.


[tw5] Re: Search the values of fields where field names are generated?

2020-08-29 Thread amreus
Yes Eric that is exactly what I meant.  It's basically a location search 
for common gedcom tags (which are not the same as TiddlyWiki tags.)  

Thanks so much for the examples. 

I have been reading about macros but I still don't think I grasp them fully 
yet. However, though experimentation I have come up with the following 2 
examples which give me better control over the title lists. The first works 
fine. I prefer the 2nd example as it's more general.  I think it can 
generalize even more into a macro named "location-search" maybe. Something 
similar to <>

First Example:

\define searchflds()
<$list filter="[search:$(flds)$[California]]">


\end

<$vars flds={{{ [fields[]regexp[_plac$]join[,]] }}}>
<>


Second Example:

\define search-filter(term) [search:$(flds)$[$term$]]

<$vars flds={{{ [fields[]regexp[_plac$]join[,]] }}}>
<$list filter=<> >
<$link>{{!!caption}} {{||year-span}}




On Saturday, August 29, 2020 at 2:40:50 PM UTC-4 Eric Shulman wrote:

> On Saturday, August 29, 2020 at 11:24:46 AM UTC-7, Eric Shulman wrote:
>>
>> \define searchflds() {{{ [search:$(flds)$[query]] }}}
>>
>> <$list filter="[fields[]regexp[_plac$]]" variable="flds">
>> <>
>> 
>>
>  
> Addendum:
>
> The above code will work, but... it searches for each field name 
> separately.  As a result, if there are multiple fieldnames in the same 
> tiddler that contain the query text, that tiddler will be listed multiple 
> times.
>
> Your intuition to use "join[,]" to construct a list of fields is actually 
> the better approach.  Thus:
> \define searchflds() {{{ [search:$(flds)$[query]] }}}
>
> <$vars flds={{{ [fields[]regexp[_plac$]join[,]] }}}>
> <>
> 
>
> Notes:
> * the $vars finds all fieldnames ending in "_plac" and assembles a 
> comma-separated list
> * the searchflds macro then uses that list of fieldnames to find the 
> occurrences of "query" within any of those fields
>
> Because the search is looking in all of the "_plac" fieldnames at the same 
> time, any matching tiddlers are only listed once.
>
> -e
>

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


[tw5] Re: Search the values of fields where field names are generated?

2020-08-29 Thread amreus
Here's is the actual filter. I thought maybe the join is more correct with 
the search operator:

[image: 2020-08-29_140459.png]

On Saturday, August 29, 2020 at 2:01:16 PM UTC-4 amreus wrote:

> I thought to reverse it also - that is search all fields for the term and 
> then filter the titles by the selected fields, but I didn't have any luck 
> with that filter syntax.  It's  possible I just haven't typed the filters 
> correctly.
>
>
>
> On Saturday, August 29, 2020 at 1:56:14 PM UTC-4 amreus wrote:
>
>> It is true I am still having difficulty with the appropriate contexts and 
>> meanings of the various types and amounts of brackets.
>>
>> But alas, it did not work.
>>
>>
>>
>> On Saturday, August 29, 2020 at 1:51:08 PM UTC-4 Mark S. wrote:
>>
>>> It will probably work if you just change <> to  inside the 
>>> internal filter. Inside of filters, variables use single angle brackets. 
>>> Outside filters, double angle brackets.
>>>
>>>
>>> On Saturday, August 29, 2020 at 10:31:20 AM UTC-7, amreus wrote:
>>>>
>>>>
>>>> I would like to search all my tiddler's fields that match a regexp 
>>>> /_plac$/ 
>>>>
>>>> Something like this not-valid syntax:
>>>>
>>>> <$list filter="[fields[]regexp[_plac$]]" variable="flds">
>>>> {{{
>>>>   [search:<>[query]]
>>>> }}}
>>>> 
>>>>
>>>> Is possible? 
>>>> Thanks.
>>>>
>>>

-- 
You received this message because you are subscribed to the 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/8c466ee6-d93d-47e9-9e0a-b20d29b4d690n%40googlegroups.com.


[tw5] Re: Search the values of fields where field names are generated?

2020-08-29 Thread amreus
I thought to reverse it also - that is search all fields for the term and 
then filter the titles by the selected fields, but I didn't have any luck 
with that filter syntax.  It's  possible I just haven't typed the filters 
correctly.



On Saturday, August 29, 2020 at 1:56:14 PM UTC-4 amreus wrote:

> It is true I am still having difficulty with the appropriate contexts and 
> meanings of the various types and amounts of brackets.
>
> But alas, it did not work.
>
>
>
> On Saturday, August 29, 2020 at 1:51:08 PM UTC-4 Mark S. wrote:
>
>> It will probably work if you just change <> to  inside the 
>> internal filter. Inside of filters, variables use single angle brackets. 
>> Outside filters, double angle brackets.
>>
>>
>> On Saturday, August 29, 2020 at 10:31:20 AM UTC-7, amreus wrote:
>>>
>>>
>>> I would like to search all my tiddler's fields that match a regexp 
>>> /_plac$/ 
>>>
>>> Something like this not-valid syntax:
>>>
>>> <$list filter="[fields[]regexp[_plac$]]" variable="flds">
>>> {{{
>>>   [search:<>[query]]
>>> }}}
>>> 
>>>
>>> Is possible? 
>>> Thanks.
>>>
>>

-- 
You received this message because you are subscribed to the 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/8eb59ca4-6141-4439-8475-fb71db1f1930n%40googlegroups.com.


[tw5] Re: Search the values of fields where field names are generated?

2020-08-29 Thread amreus
It is true I am still having difficulty with the appropriate contexts and 
meanings of the various types and amounts of brackets.

But alas, it did not work.



On Saturday, August 29, 2020 at 1:51:08 PM UTC-4 Mark S. wrote:

> It will probably work if you just change <> to  inside the 
> internal filter. Inside of filters, variables use single angle brackets. 
> Outside filters, double angle brackets.
>
>
> On Saturday, August 29, 2020 at 10:31:20 AM UTC-7, amreus wrote:
>>
>>
>> I would like to search all my tiddler's fields that match a regexp 
>> /_plac$/ 
>>
>> Something like this not-valid syntax:
>>
>> <$list filter="[fields[]regexp[_plac$]]" variable="flds">
>> {{{
>>   [search:<>[query]]
>> }}}
>> 
>>
>> Is possible? 
>> Thanks.
>>
>

-- 
You received this message because you are subscribed to the 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/b0ab6063-ad19-4523-b215-ed1f1686bae0n%40googlegroups.com.


[tw5] Re: Split a Date, show as text not link?

2020-08-29 Thread amreus
Excellent discussion and examples. Thanks to everyone who replied. 

I wonder why the textwidget requires the text= part if it only has one 
parameter?  Writing

<$text {{{[[2020-06-26]split[-]first[]]}}}/> 

wouldn't be a bad option.


On Friday, August 28, 2020 at 6:54:37 AM UTC-4 PMario wrote:

> On Friday, August 28, 2020 at 1:03:24 AM UTC+2, TW Tones wrote:
>>
>> Amreus, Et Al...
>>
>> I do think there ought to be some sort of shortcut syntax for non-linked 
>>> text in filtered transclusion.  I wouldn't have a preference yet as to how 
>>> it might look.
>>>
>>
>> I totally agree with this, but rather than say "non-linked text". I would 
>> say plain text. Its such a fundamental need, the long winded text widget is 
>> a pain when reading code.
>>
>> Just as a suggestion what it triple single quotes delimited it?
>>
>> '''{{{[[2020-06-26]split[-]first[]]}}}'''
>>
>
> There is a discussion at github about this exact problem. Discussion about 
> a possible solution starts here: 
> https://github.com/Jermolene/TiddlyWiki5/issues/4816#issuecomment-673971149 
> .. .You'll also need to read the following posts from Jeremy. 
>
> So there is a chance that we get a fix. .. You may want to +1 your 
> favorites at the github issues page. 
>
> -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/2a19ac3b-2a69-40f8-ac42-8e396be75350n%40googlegroups.com.


[tw5] Re: Template or macro or other?

2020-08-29 Thread amreus
I wanted to say thanks to everyone and even if I do not always reply to 
every post, I do read everything and try to learn.  The explanations and 
examples are extremely helpful. So thank you again!


On Thursday, August 27, 2020 at 1:18:00 PM UTC-4 PMario wrote:

> Hi
> I needed to fix some typos in the last post.
> -m
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5d987e41-9fa4-4d10-93b4-37b9661b7e67n%40googlegroups.com.


[tw5] Search the values of fields where field names are generated?

2020-08-29 Thread amreus

I would like to search all my tiddler's fields that match a regexp /_plac$/ 

Something like this not-valid syntax:

<$list filter="[fields[]regexp[_plac$]]" variable="flds">
{{{
  [search:<>[query]]
}}}


Is possible? 
Thanks.

-- 
You received this message because you are subscribed to the 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/8f3d44da-be9c-41ab-84cb-4241e184bd59n%40googlegroups.com.


[tw5] Filter simplification?

2020-08-26 Thread amreus
Good evening. 

Just a question of curiosity.  Can this filter be simplified? For example, 
can all[current] be "factored out" so it does not need to appear twice?  

[is[current]has[birt_date]] [is[current]has[birt_plac]]

In Boolean, I think this would be [(A and B) or (A and C)] == [A and (B or 
C)], but I'm not sure how to write [A and (B or C)] in filter. 

-- 
You received this message because you are subscribed to the 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/dec703f5-d219-4111-8579-ea5ddb9dc6fbn%40googlegroups.com.


[tw5] Re: Split a Date, show as text not link?

2020-08-26 Thread amreus
Ah cool. Thanks to you both. 

I do think there ought to be some sort of shortcut syntax for non-linked 
text in filtered transclusion.  I wouldn't have a preference yet as to how 
it might look.


On Wednesday, August 26, 2020 at 4:19:50 PM UTC-4 saq.i...@gmail.com wrote:

> <$text text={{{[[2020-06-26]split[-]first[]]}}} /> 
>
> On Wednesday, August 26, 2020 at 10:08:37 PM UTC+2 amreus wrote:
>
>>
>> Seems silly because I did this a couiple days ago but can't remember what 
>> I did.
>>
>> Basically I want this {{{[[2020-06-26]split[-]first[]]}}} but the year 
>> as text not a link.  The year is coming from a field tho.
>>
>> tia.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/217d6e56-fbea-4ede-897d-43f4de2505d2n%40googlegroups.com.


[tw5] Template or macro or other?

2020-08-26 Thread amreus

Working on my genealogy wiki where each person is a tiddler.  Obviously my 
wiki has lists of people all over the place - parents list, lists of 
children, siblings, etc.

In my lists I want to link to the person, but also show some other fields 
such as year of birth. Something similar to:

Bill Henderson (1912 - 1974)

Now to the question.  To accomplish this, there appear to be 2 obvious ways 
to generate the output:

1) {{||someTemplate}}
2) <$list filter="..."><>>>

Not knowing the internals of TiddlyWiki, I might assume using a macro would 
be more efficient since it only deals with exactly what is passed whereas 
the template transclusion would parse the entire tiddler each time? Is my 
intuition correct?  Are there better ways to do this? Is there a best way? 
Thanks.





-- 
You received this message because you are subscribed to the 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/eb993063-a54c-464c-b7d0-ce4759ab0f0bn%40googlegroups.com.


[tw5] Split a Date, show as text not link?

2020-08-26 Thread amreus

Seems silly because I did this a couiple days ago but can't remember what I 
did.

Basically I want this {{{[[2020-06-26]split[-]first[]]}}} but the year as 
text not a link.  The year is coming from a field tho.

tia.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e6f463e5-e4f9-4f9e-ac08-a7fff89bf0cfn%40googlegroups.com.


[tw5] Re: Calling the tiddlywiki --rendertiddlers command directly on a .html TW

2020-08-23 Thread amreus
 Not sure this is exactly on topic, but may serve as an example workflow.  
Below is an example of a Makefile I have been using to build a single-file 
genealogy wiki from multiple files.  The command line uses "--load" to 
handle several types of tidders including html, json, and tid, and then 
renders them all out as a single-html file.

I am a Windows user and I have "node" installed via the "scoop" package 
manager, as well as "make", "git",  and many other tools.  The Makefile 
uses the version of the TW command that I have checked out in my local copy 
of the main TW wiki.


TW = C:/Users/Amreus/Code/Repos/Jermolene/tiddlywiki5/tiddlywiki.js
GEDCOM = C:\Users\Amreus\genealogy\master-gedcom\gene.ged
TIDS := $(wildcard tiddlers/*.tid)

.PHONY: clean gene

gene.html: empty.html gene.json twig.json $(TIDS)
  node $(TW) --verbose \
--load empty.html \
--load gene.json \
--load twig.json \
--load tiddlers \
--output . \
--render $$:/core/save/all gene.html text/plain

empty.html:
  curl https://tiddlywiki.com/empty.html > empty.html

gene.json: gene.ged ged2tw5-2.rb
  ruby ged2tw5-2.rb gene.ged > gene.json

clean:
  del gene.html


On Saturday, August 22, 2020 at 4:09:12 AM UTC-4 bmad...@gmail.com wrote:

> Thanks Tony.
>
> I tried the --render command recently and it didnt function as expected. 
> So switched back to rendertiddlers. Maybe its time to try that again.
>
> I have automated the export of my TW into a static webpage (every week or 
> so). This is automatically pushed to https://adithyab.in using github 
> page.
> Can the same be done from inside the TW?
>
> Cheers,
> Adithya
>
> On Saturday, August 22, 2020 at 12:04:37 PM UTC+5:30 TW Tones wrote:
>
>> Adithya
>>
>> I think the answer is firmly no, but since I don't use commands against 
>> tiddlywiki but tend to operate inside wikis, I can assure you can achieve 
>> the same inside tiddlywiki by other means. In the pre-release there is a 
>> method to zip files so generated from within the interactive tiddlywiki. It 
>> is possible from inside the browser for both server and single file wikis.
>>
>> What are you using this command to achieve? - you have now answered.?
>> Do you know this is deprecated now and you should use 
>> https://tiddlywiki.com/#RenderCommand ?
>>
>> I posted recently on using the export facility for this.
>>
>> Regards
>> Tony
>>
>>
>> On Saturday, 22 August 2020 14:12:16 UTC+10, Adithya B wrote:
>>>
>>> Hi,
>>>
>>> Is it possible to use the tiddlywiki --rendertiddlers command on a 
>>> single-file html TW?
>>>
>>> I have been using the -load and -rendertiddlers commands seperately 
>>> using an node server. 
>>>
>>> I prefer to keep my TW as a single file for now. There is a usecase in 
>>> mind which can work if the command can be used directly.
>>>
>>> Cheers,
>>> Adithya
>>>
>>

-- 
You received this message because you are subscribed to the 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/a4eef0db-48f7-46d7-859a-5ef06709b2cfn%40googlegroups.com.


[tw5] Re: File in directory

2020-08-22 Thread amreus
Just throwing the Timimi browser extension in the ring since it also has 
the ability to launch scripts, although I have not experimented nor had a 
need for it. 

https://ibnishak.github.io/Timimi/#Launching%20scripts%20using%20timimi



On Saturday, August 22, 2020 at 10:45:15 AM UTC-4, Man GuyDude wrote:
>
>
> is it possible for tiddly-wiki to get a list of files in a directory i 
> know you can embed files on the local system but is there a way to get a 
> list of files in a folder or is there a way to reference local files in a 
> relative sense? 
>
> another alternative i could do would be if i could keep the list of files 
> in a text file that a separate program updates and then tiddly wiki parses 
> that info somehow so i can reference the files in the folders i don't know 
> how to parse the data into tiddler only how to embed the file i want the 
> actual data
>
> an answer to anyone of these would solve my problem
>

-- 
You received this message because you are subscribed to the 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/668611fc-8a80-4b25-b4e9-ca74b81cfa7ao%40googlegroups.com.


[tw5] Re: Ideas for an UN-official community plugin library

2020-08-16 Thread amreus
I disagree.  Conflicts are 100% in the realm of library managers and must 
be considered.

On Sunday, August 16, 2020 at 5:15:04 PM UTC-4 Mat wrote:

> @amreus - while the conversation has admittedly gone off on a tangent, 
> your question is definitely off topic. Pleaes start a new thread instead.
>
> <:-)
>

-- 
You received this message because you are subscribed to the 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/b6bd7419-850b-4295-9577-3d4971b4d18bn%40googlegroups.com.


[tw5] Re: Ideas for an UN-official community plugin library

2020-08-16 Thread amreus
Is there a need for namespacing for plugins?  

For example, if 2 plugins both define a css class with the same name, which 
gets used?  Or if 2 plugins define a macro with the same name, what 
happens?  Does the last loaded macro take precedence?

If this is an issue it would it need to be addressed sooner rather than 
later?


On Sunday, August 16, 2020 at 1:54:18 PM UTC-4 PMario wrote:

> On Sunday, August 16, 2020 at 6:00:47 PM UTC+2, Mark S. wrote:
>>
>> I might point out that Linux operates this way.
>>
>> When you install Linux, almost any variety, you also get a package 
>> manager. With the package manager you have access to 1000s of different 
>> software products. You just search, select, and install the software that 
>> you want without having to search the web, download, find dependencies, 
>> etc. The versions you get may not be the latest versions, but that's 
>> usually OK. If people need the latest, then they go to the original source.
>>
>
> I think we can't compare "apt" or other installation managers with a 
> public overview of TW plugins. We don't have any security measures built 
> in. None of our packages can be validated. ... So everyone can clone and 
> modify a plugin and republish a potentially evel version with the same 
> name. .. At the moment our users don't have a possibility to validate 
> anything. 
>
> That's an other element, which I think about for quite some time. ... At 
> the moment our system is "kind of" OK, because we can trust the community 
> members, that create plugins. ... But if TW grows considerably, we will 
> need to think about some more security too. 
>
> With the proposed system, it would be possible to implement a "community 
> review" system. Similar to video 8. 
>
> A second measure could be, that we publish a plugin hash overview on the 
> community page. So everyone can check if an installed plugin has the same 
> hash as the one installed in a wiki. The hash validation could be done with 
> a browser plugin. ... But that's probably a completely different thread, 
> which would need contribution from security experts. 
>
> just some thoughts
> -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/589ece88-13e5-46b6-b009-0685dcc10199n%40googlegroups.com.


[tw5] Re: Help with WikiText Macro

2020-08-15 Thread amreus
Or

[{{!name}is[blank]then{!!title}]]

which reads slightly better, imo.

Thanks for the discussion - I was next wanting to know how to show some 
info in a macro only if a field exists and is not blank. I think this will 
be useful.



On Saturday, August 15, 2020 at 2:56:42 PM UTC-4 Mark S. wrote:

>
>
> On Saturday, August 15, 2020 at 11:49:27 AM UTC-7, Eric Shulman wrote:
>>
>> On Saturday, August 15, 2020 at 11:42:38 AM UTC-7, Mark S. wrote:
>>>
>>> On Saturday, August 15, 2020 at 11:36:52 AM UTC-7, Eric Shulman wrote:

 The "else" filter only works if the preceding filter produces NO 
 result... but if the {!!name} field exists, it has a value...  it's just 
 blank text.

 But that's not the puzzling situation. If *name* doesn't exist, then 
>>> there is NO output. I hadn't even checked the case where *name* exists 
>>> but is empty.
>>>
>>
>> My *guess* is that {!!name} actually produces a blank value even if the 
>> field doesn't exist.
>>
>>
> So, we can do :
>
> [{!!name}!is[blank]else{!!title}]
>
>
> This seems to work whether name exists or is merely empty.
>
> Thanks!
>

-- 
You received this message because you are subscribed to the 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/407d19a9-1528-48dd-a4cb-88f252f8cbcfn%40googlegroups.com.


  1   2   >