[tw5] Re: [TW5] New Plugin: Simple Search

2020-08-26 Thread Thomas Elmiger
Hi imleg... 
I copied Apple Spotlight search: You can use the same shortcut to open and 
to close the search layer.
imleg...@gmail.com schrieb am Donnerstag, 27. August 2020 um 03:46:36 UTC+2:

> How to dismiss the search bar by keyboard shortcut ? For now, I need to 
> click a blank area to dismiss it. I want to use keyboard shortcuts to do it
>
>
> On Sunday, November 4, 2018 at 11:06:39 PM UTC+8, Thomas Elmiger wrote:
>
>> Hi folks,
>>
>> The new *Simple Search* plugin provides a *nice and simple user 
>> interface* for searching your wikis using the *TW standard search.* It 
>> is designed for mobile and desktop screens.
>>
>> The plugin hides the search input field in the sidebar and displays a new 
>> button in the page toolbar instead. 
>>
>>
>> At the click/tap of the button, a layer appears and the focus is set to 
>> the search field. Clicking/tapping a search result or anywhere outside the 
>> search box makes the layer disappear. 
>>
>>
>> [image: simple-search-mobile.png]
>>
>>
>> You can try it here: 
>>
>>- https://tid.li/tw5/test/search-5-1-18pre.html – development wiki, 
>>no plugin
>>- https://tid.li/tw5/hacks.html – alternative design, search icon in 
>>top right toolbar (close sidebar: still there)
>>
>> And of course also on https://tid.li/tw5/plugins.html from where you can 
>> install the plugin via drag and drop.
>>
>> The readme tab of the plugin contains *options/settings* for
>>
>>- animation duration – make sure to use a significantly lower value 
>>(e.g. 150) than the original TW setting (400)
>>- border colour – make the search box stand out in any design, light 
>>or dark
>>- where to show the button – page toolbar in the sidebar or top right 
>>bar (you might want to modify other design aspects if you use the latter)
>>- edit mode – if you want to change the search tiddler, you can 
>>activate the edit icon
>>
>> Last but not least there is a new way to measure the popularity of my 
>> plugins: Inspired by others who did the same, for the first time I 
>> published the coordinates for financially rewarding my laborious works :)
>> Of course the plugin is *free and open source* as always (MIT license 
>> included). No need to pay for anything! But if you absolutely want, you can.
>>
>> As valuable as payments: Promotion (tell your friends) and feedback in 
>> any form! Here in the forum or via direct message (click answer here, 
>> choose *private* option/tell your friends via twitter or e-mail). Thank 
>> you!
>>
>> Now, please make a backup, install, reload and have fun searching.
>>
>> Cheers,
>> Thomas
>>
>

-- 
You received this message because you are subscribed to the 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/f3ec8edb-bddf-4b95-9f13-551dbb2fccaan%40googlegroups.com.


[tw5] Re: how to search ignore the path ?

2020-08-26 Thread TW Tones
Eric,

My bad, but if you look at the example, and no search string specified my 
example is correct, if searching for "note" but only wanting tiddlers 
containing note in the title.

This is because the default search also searches more than the title.

Actually they look like paths to files rather than typical tiddlers.

Regards
Tony

On Thursday, 27 August 2020 10:50:04 UTC+10, Eric Shulman wrote:
>
> On Wednesday, August 26, 2020 at 5:33:55 PM UTC-7, TW Tones wrote:
>>
>> Further to Erics interactive search you can use a filter like this;
>> [search:title[note]]
>> The contains operator is not the one, because it searches for a title in 
>> a list, search is for a string in a field, in this case limited to title.
>>
>
> The above search would NOT give the results they are after.  Rather, it 
> would yield the same results as the generic sidebar search...
> it would find ALL tiddlers whose title includes the indicated text 
> ("note") *anywhere* in the title.  They specifically said they did NOT
> want that result, but rather only match the last resulting title, 
> "HowToNote", for which the [suffix[Note]] filter is the correct solution.
>
> -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/fd82b23a-f662-4b88-bcac-a9b95608928bo%40googlegroups.com.


[tw5] Re: Template or macro or other?

2020-08-26 Thread TW Tones
Amreus

>From experience I can say don't worry about the more efficient just design 
for understanding. You can look at more efficient methods later if you get 
performance problems (unlikely)

I write all my templates and macros to operate on current tiddler and if I 
am listing, I typically let the currentTiddler variable change; I then have 
templates always contain

{{||templatename}} which acts on current tiddler.

In your examples
<>>>
is incorrect
<$macrocall $name=formatting_macro paramname=<>/>
will work
However you can use just 
<>
and inside it refer to $(currentTiddler)$ rather than pass it.

I am not sure your intuition is correct, it is inside the list that you are 
iterating multiple times, its when you call the macro or transclude the 
template that what it contains is evaluated, and only that. 

Regards
Tony


On Thursday, 27 August 2020 07:21:01 UTC+10, amreus wrote:
>
>
> 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/98134053-c1ad-487e-9006-7e1988b1b8b4o%40googlegroups.com.


[tw5] Re: Variable scope question

2020-08-26 Thread TW Tones
Werner,

The exact detail needs to be worked out but I agree with Saq its all doable 
in wikitext. I also use the HTML table tags rather than tiddlywiki table 
markup. As long as you do not break the rules of html tables its easy to 
have a variable number or rows or columns in a table if you wrap that 
element in another and use a list to iterate the items. Boarders and 
setting column title sis a little more tricky but doable

Rather than rowspan you can iterate the cells but display: none; and other 
methods.

Also remember you can use the count widget or count operator to determine 
how many items in a set and use the range operator to iterate them once you 
know.

Effectively you nest list widgets within table elements.

Regards
Tony


On Thursday, 27 August 2020 05:16:30 UTC+10, Werner wrote:
>
> Good evening guys, me again.
>
> I understand that the scope of a variable is defined by the enclosing 
> <$vars> <$set> or <$wikify> widgets. I also understand that any new <$set> 
> widget opens up a new scope, where a variable  defined in an outer 
> scope would be overridden. I am facing a problem where I would need to 
> access out-of-scope variables (or come up with a completely different 
> approach).
>
> I am still working on a set of double-nested JSON data (using Josh 
> Fontany's JSONmangler plugin). I want to display the content of the data in 
> a table using table cells spanning multiple rows like . 
> The problem here is, the rowspan is defined by the number of elements in 
> the lowest nested level and I would need it before rendering the table and 
> looping through the array elements fetching the data. So typically, in a 
> garden variety programming language, I would do something as follows:
>
> totalRows = 0
> Loop through Level1
>nestedRows= Level2.count()
>totalRows += nestedRows
> End Loop
>
> Could anybody enlighten me, if a construct like this is possible in TW and 
> how I would achieve it?
>
> Two fallback options: 
> - storing the number of elements in the JSON structure (yuck - feels like 
> cheating).
> - throwing the whole JSON data structure at an JS macro. Positive side 
> effect: I would have to dive into it and learn something new.
>
> Thanks for helping me out on this.
> Best, Werner
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the 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/5e5c7190-a70f-4401-9e33-160fd090cc6fo%40googlegroups.com.


[tw5] Re: [TW5] New Plugin: Simple Search

2020-08-26 Thread Zhe Lee
How to dismiss the search bar by keyboard shortcut ? For now, I need to 
click a blank area to dismiss it. I want to use keyboard shortcuts to do it

On Sunday, November 4, 2018 at 11:06:39 PM UTC+8, Thomas Elmiger wrote:
>
> Hi folks,
>
> The new *Simple Search* plugin provides a *nice and simple user interface* 
> for searching your wikis using the *TW standard search.* It is designed 
> for mobile and desktop screens.
>
> The plugin hides the search input field in the sidebar and displays a new 
> button in the page toolbar instead. 
>
>
> At the click/tap of the button, a layer appears and the focus is set to 
> the search field. Clicking/tapping a search result or anywhere outside the 
> search box makes the layer disappear. 
>
>
> [image: simple-search-mobile.png]
>
>
> You can try it here: 
>
>- https://tid.li/tw5/test/search-5-1-18pre.html – development wiki, no 
>plugin
>- https://tid.li/tw5/hacks.html – alternative design, search icon in 
>top right toolbar (close sidebar: still there)
>
> And of course also on https://tid.li/tw5/plugins.html from where you can 
> install the plugin via drag and drop.
>
> The readme tab of the plugin contains *options/settings* for
>
>- animation duration – make sure to use a significantly lower value 
>(e.g. 150) than the original TW setting (400)
>- border colour – make the search box stand out in any design, light 
>or dark
>- where to show the button – page toolbar in the sidebar or top right 
>bar (you might want to modify other design aspects if you use the latter)
>- edit mode – if you want to change the search tiddler, you can 
>activate the edit icon
>
> Last but not least there is a new way to measure the popularity of my 
> plugins: Inspired by others who did the same, for the first time I 
> published the coordinates for financially rewarding my laborious works :)
> Of course the plugin is *free and open source* as always (MIT license 
> included). No need to pay for anything! But if you absolutely want, you can.
>
> As valuable as payments: Promotion (tell your friends) and feedback in any 
> form! Here in the forum or via direct message (click answer here, choose 
> *private* option/tell your friends via twitter or e-mail). Thank you!
>
> Now, please make a backup, install, reload and have fun searching.
>
> Cheers,
> Thomas
>

-- 
You received this message because you are subscribed to the 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/031d37e8-9726-45a0-bb92-e7cd560a506eo%40googlegroups.com.


[tw5] Re: [TW5] New Plugin: Simple Search

2020-08-26 Thread Zhe Lee
Hi, how to show the search result in reverse chronological order? I want 
the most recently changed tiddler at first. Havent found related settings.
On Sunday, November 4, 2018 at 11:06:39 PM UTC+8, Thomas Elmiger wrote:
>
> Hi folks,
>
> The new *Simple Search* plugin provides a *nice and simple user interface* 
> for searching your wikis using the *TW standard search.* It is designed 
> for mobile and desktop screens.
>
> The plugin hides the search input field in the sidebar and displays a new 
> button in the page toolbar instead. 
>
>
> At the click/tap of the button, a layer appears and the focus is set to 
> the search field. Clicking/tapping a search result or anywhere outside the 
> search box makes the layer disappear. 
>
>
> [image: simple-search-mobile.png]
>
>
> You can try it here: 
>
>- https://tid.li/tw5/test/search-5-1-18pre.html – development wiki, no 
>plugin
>- https://tid.li/tw5/hacks.html – alternative design, search icon in 
>top right toolbar (close sidebar: still there)
>
> And of course also on https://tid.li/tw5/plugins.html from where you can 
> install the plugin via drag and drop.
>
> The readme tab of the plugin contains *options/settings* for
>
>- animation duration – make sure to use a significantly lower value 
>(e.g. 150) than the original TW setting (400)
>- border colour – make the search box stand out in any design, light 
>or dark
>- where to show the button – page toolbar in the sidebar or top right 
>bar (you might want to modify other design aspects if you use the latter)
>- edit mode – if you want to change the search tiddler, you can 
>activate the edit icon
>
> Last but not least there is a new way to measure the popularity of my 
> plugins: Inspired by others who did the same, for the first time I 
> published the coordinates for financially rewarding my laborious works :)
> Of course the plugin is *free and open source* as always (MIT license 
> included). No need to pay for anything! But if you absolutely want, you can.
>
> As valuable as payments: Promotion (tell your friends) and feedback in any 
> form! Here in the forum or via direct message (click answer here, choose 
> *private* option/tell your friends via twitter or e-mail). Thank you!
>
> Now, please make a backup, install, reload and have fun searching.
>
> Cheers,
> Thomas
>

-- 
You received this message because you are subscribed to the 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/9539d997-8827-4fff-b37c-65ab15253482o%40googlegroups.com.


[tw5] Re: how to search ignore the path ?

2020-08-26 Thread Eric Shulman
On Wednesday, August 26, 2020 at 5:33:55 PM UTC-7, TW Tones wrote:
>
> Further to Erics interactive search you can use a filter like this;
> [search:title[note]]
> The contains operator is not the one, because it searches for a title in a 
> list, search is for a string in a field, in this case limited to title.
>

The above search would NOT give the results they are after.  Rather, it 
would yield the same results as the generic sidebar search...
it would find ALL tiddlers whose title includes the indicated text ("note") 
*anywhere* in the title.  They specifically said they did NOT
want that result, but rather only match the last resulting title, 
"HowToNote", for which the [suffix[Note]] filter is the correct solution.

-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/f3cfd1cf-8d75-492e-ad59-378ef99fbc59o%40googlegroups.com.


[tw5] Re: how to open all the results after tag filter?

2020-08-26 Thread TW Tones
叶术

After installing my re-imagine tags package (Not finished) but attached.

You could use a tag pill in the tags or with `<>`

You will get multiple options appearing on the tag pill including open all 
and close all.

Regards
Tony

On Thursday, 27 August 2020 01:35:07 UTC+10, 叶术 wrote:
>
> hello all,
>
> I want to open all the results after tag filter, so that I can have a 
> quick look.
>
> But now, I can only get a list of title after tag filter.
>
> Is there any solution?
>

-- 
You received this message because you are subscribed to the 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/0b93ce9c-7d69-41f3-8ca4-e4aaa0d20bb9o%40googlegroups.com.


reimagin-tags.json
Description: application/json


[tw5] Re: TiddlyWiki Cloud Tutorial for using on multiple devices

2020-08-26 Thread TW Tones
Jimmy,

I second what Mat said

> Jimmy - warmly welcome! And you're joining the Tiddly spirit right away, 
> sharing stuff - wonderful!


There are many ways to access and share Tiddlywiki some are server or app 
based, others are manual or procedural. Personally I use a GitHub or PHP 
(and tw-receiver)  hosted tiddlywiki  but I would prefer an internet facing 
"Bob" server for multi-user and multi-access.

Your instructions are each to follow and very helpful, even free dropbox is 
enough to host a lot of tiddlywiki.

Question?

   - Do you have to be careful accessing the same dropbox wiki from two 
   devices at once?

Thanks to much for you contribution.

Perhaps your notes could go here;
https://tiddlywiki.com/#TiddlyWiki%20Cloud


Regards
Tone


On Wednesday, 26 August 2020 23:24:20 UTC+10, Jimmy Sweeney wrote:
>
> Hello all,
>
> I am brand new to TiddlyWiki and I am loving it so far. I got started a 
> couple of days ago and have learned a ton about the potential uses and 
> features.
>
> The one issue I had with getting started was finding a way to sync my 
> tiddlywiki file between devices (like an iPhone and a computer.) I started 
> with Note Self  but was having some issues with it 
> and it was acting a bit buggy. I considered making my raspberry pi a server 
> to host my file so that I could access it across devices (that's a bit 
> above my pay grade - would still like to know how to do that though). 
>
> Anyway, I realized was that I just needed a simple way to sync devices. 
> There's all sorts of cool stuff in this community but I hard time finding 
> other people who wanted to do the same thing that I was trying to do. 
> Please, let me know if I am wrong though.
>
> I finally settled on using TiddlyWiki Cloud 
> . As simple as 
> this route is, I still had to stumble my way through figuring it out. So I 
> put together a quick tutorial on how to set it up so that you can work on 
> your TiddlyWiki on any device. Let me know if anyone already has done this 
> but I couldn't find it anywhere. Hopefully this will be useful to other new 
> users.
>
> 
> *TiddlyWiki Cloud Tutorial for working on your TiddlyWiki on multiple 
> devices.*
>
>1. Make sure you have a Dropbox account.  (It's 
>free). Follow the instructions on their site for setting up an account.
>2. Go to https://tiddlywiki.com/
>3. Click the big blue "Download Empty" box.
>4. Find the empty.html file in your file explorer (probably in your 
>downloads folder) and rename it to something like "mynewtiddlywiki.html".
>5. Log in to Dropbox.
>6. Upload the "mynewtiddlywiki.html" file into your dropbox.
>7. Go to https://twcloud.github.io/
>8. Click on the first option - tw5-dropbox.
>9. Click on Full Dropbox Access - this probably prompts you allow to 
>the app access - click on allow or yes or whatever.
>10. You should then see your tiddlywiki file highlighted in yellow. 
>Click on it.
>11. This will open up your tiddlywiki file. You are ready to start 
>making tiddlers!
>12. Bookmark this page https://twcloud.github.io/tw5-dropbox/ on your 
>browser and your phone so that you can create and edit tiddlers on both 
>devices. You can access your tiddlywiki file from anywhere, in fact, as 
>long as you go here https://twcloud.github.io/tw5-dropbox/ and log 
>into your dropbox account.
>13. I'd just reccommend backing up your tiddlywiki file every now and 
>then on to a hard drive as well (just so that it doesn't only live on 
>Dropbox.)
>
> I find I can easily work on my tiddlywiki from my iPhone. You can also 
> check out Quine  if you have an iOS 
> device. I believe you can have it set up to sync with your tiddlywiki file 
> on dropbox. I haven't looked into that yet, myself.
>
> -
>
> Cheers! And looking forward to being part of the community!
>

-- 
You received this message because you are subscribed to the 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/cfa5453a-980c-4e99-ad56-176892543a8bo%40googlegroups.com.


[tw5] Re: how to search ignore the path ?

2020-08-26 Thread TW Tones
Zhe,

Further to Erics interactive search you can use a filter like this;

[search:title[note]]

The contains operator is not the one, because it searches for a title in a 
list, search is for a string in a field, in this case limited to title.

Regards
Tony

On Wednesday, 26 August 2020 22:20:53 UTC+10, Zhe Lee wrote:
>
> I search note in my wiki 
> here is my result: 
>
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_10.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_11.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_12.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_14.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_15.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_16.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_3.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_4.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_5.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_6.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_7.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_8.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_9.tid 
> 
> /home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList.tid 
> 
> D:\python_project\origami_note\origami_wiki\tiddlers\$__StoryList_1.tid 
> 
> D:\python_project\origami_note\origami_wiki\tiddlers\$__StoryList_2.tid 
> 
> HowToNote 
>
> What I need is just the last one. I want the search just match the title, 
> how to set it? 
>
> Seems no setting about the search.
>

-- 
You received this message because you are subscribed to the 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/b612236b-ac3f-4b4a-a206-ee8436642e91o%40googlegroups.com.


[tw5] Re: how to search ignore the path ?

2020-08-26 Thread Zhe Lee
Thank you. Done

On Wednesday, August 26, 2020 at 8:58:29 PM UTC+8, Eric Shulman wrote:
>
> On Wednesday, August 26, 2020 at 5:20:53 AM UTC-7, Zhe Lee wrote:
>>
>> I search note in my wiki 
>> here is my result: 
>> What I need is just the last one. I want the search just match the title, 
>> how to set it? 
>>
>
> As described here: https://tiddlywiki.com/#Searching%20in%20TiddlyWiki,
> the search field in the sidebar will result in *"a list of all the 
> tiddlers that contain that text"*
>
> To *"obtain a list of all tiddlers that meet the specific criteria"*, use 
> the $:/AdvancedSearch, Filter tab:
>
> 1) Click on the magnifying glass next to the sidebar search input field
> 2) Select the "Filter" tab
> 3) Enter filter syntax: [suffix[Note]]
>
> -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/7706fc6d-43bd-4b91-970b-0a30a95759aco%40googlegroups.com.


[tw5] Re: Filter simplification?

2020-08-26 Thread TW Tones
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/94e6db75-65d0-4870-97f2-ebfa11051dd2o%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] Re: Variable scope question

2020-08-26 Thread Saq Imtiaz
I'm a bit tired so this isn't as clear as I would like, but hopefully this 
pseudocode will point you in the correct direction for the pattern for 
getting this done with just wikitext:

\define processRow()
nestedRows = level2 +count[]
<$vars cnt={{{[add]}}}>
<$list filter="[[allrows] +[after]]" emptyMessage="<>">
<>


\end

\define processAllRows()
<$vars currentTiddler={{{[allrows] + first[]}}} cnt="0">
<>

\end

> > or set it to a variable for re-use.

On Wednesday, August 26, 2020 at 9:16:30 PM UTC+2 Werner wrote:

> Good evening guys, me again.
>
> I understand that the scope of a variable is defined by the enclosing 
> <$vars> <$set> or <$wikify> widgets. I also understand that any new <$set> 
> widget opens up a new scope, where a variable  defined in an outer 
> scope would be overridden. I am facing a problem where I would need to 
> access out-of-scope variables (or come up with a completely different 
> approach).
>
> I am still working on a set of double-nested JSON data (using Josh 
> Fontany's JSONmangler plugin). I want to display the content of the data in 
> a table using table cells spanning multiple rows like . 
> The problem here is, the rowspan is defined by the number of elements in 
> the lowest nested level and I would need it before rendering the table and 
> looping through the array elements fetching the data. So typically, in a 
> garden variety programming language, I would do something as follows:
>
> totalRows = 0
> Loop through Level1
>nestedRows= Level2.count()
>totalRows += nestedRows
> End Loop
>
> Could anybody enlighten me, if a construct like this is possible in TW and 
> how I would achieve it?
>
> Two fallback options: 
> - storing the number of elements in the JSON structure (yuck - feels like 
> cheating).
> - throwing the whole JSON data structure at an JS macro. Positive side 
> effect: I would have to dive into it and learn something new.
>
> Thanks for helping me out on this.
> Best, Werner
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the 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/9d4a7ed5-33b1-4441-bec8-76bb58ebcb5fn%40googlegroups.com.


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

2020-08-26 Thread Saq Imtiaz
<$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/9f568a0e-c663-48e6-adbe-ce7127b05e67n%40googlegroups.com.


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

2020-08-26 Thread Mat
Check out this issue discussion for a solution and chime in or give things 
a thumbs up if you agree:

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

<:-)

-- 
You received this message because you are subscribed to the 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/6db3e9b2-bb79-474b-bbab-eaa7bf15e995o%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] Variable scope question

2020-08-26 Thread 'Werner' via TiddlyWiki
Good evening guys, me again.

I understand that the scope of a variable is defined by the enclosing 
<$vars> <$set> or <$wikify> widgets. I also understand that any new <$set> 
widget opens up a new scope, where a variable  defined in an outer 
scope would be overridden. I am facing a problem where I would need to 
access out-of-scope variables (or come up with a completely different 
approach).

I am still working on a set of double-nested JSON data (using Josh 
Fontany's JSONmangler plugin). I want to display the content of the data in 
a table using table cells spanning multiple rows like . 
The problem here is, the rowspan is defined by the number of elements in 
the lowest nested level and I would need it before rendering the table and 
looping through the array elements fetching the data. So typically, in a 
garden variety programming language, I would do something as follows:

totalRows = 0
Loop through Level1
   nestedRows= Level2.count()
   totalRows += nestedRows
End Loop

Could anybody enlighten me, if a construct like this is possible in TW and 
how I would achieve it?

Two fallback options: 
- storing the number of elements in the JSON structure (yuck - feels like 
cheating).
- throwing the whole JSON data structure at an JS macro. Positive side 
effect: I would have to dive into it and learn something new.

Thanks for helping me out on this.
Best, Werner





-- 
You received this message because you are subscribed to the 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/efbb1542-9303-4eac-abde-143cbbf755can%40googlegroups.com.


[tw5] Re: How to force tag macro popup in the sidebar to overlap the story river?

2020-08-26 Thread Eric Shulman
On Wednesday, August 26, 2020 at 8:28:59 AM UTC-7, talha131 wrote:
>
> When I click on the tag pill inside More tab in the sidebar, the popup is 
> cut by the story river.
>

Have you tried
.tc-sidebar-scrollable { overflow:visible; }

This should avoid having the child tc-popup clipped to the sidebar width.

However... it might also allow other sidebar content (e.g., long tiddler 
titles) to overflow into the story river.
In this case, you might have to add "overflow:hidden;" to some of the other 
sidebar-scrollable child elements.

If you were to post a link to an online copy of your TW, I could experiment 
a bit and possibly suggest a better workaround.

-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/164fbdb0-3325-40ec-ad6e-96cf866612f2o%40googlegroups.com.


[tw5] Re: TiddlyWiki Cloud Tutorial for using on multiple devices

2020-08-26 Thread Mat
Jimmy - warmly welcome! And you're joining the Tiddly spirit right away, 
sharing stuff - wonderful!

@Arlen, could this be added to your https://twcloud.github.io/ site?

<:-)

-- 
You received this message because you are subscribed to the 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/ac5f1bd9-33c9-4860-93e1-2e1bba6d1b89o%40googlegroups.com.


[tw5] Re: how to open all the results after tag filter?

2020-08-26 Thread 'Mark S.' via TiddlyWiki
Here's a macro that might help

\define open-tag(tag)
<$button>Open all with tag ~$tag$
<$list filter="[tag[$tag$]]">
<$action-navigate />



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


\end

<>



On Wednesday, August 26, 2020 at 8:35:07 AM UTC-7, 叶术 wrote:
>
> hello all,
>
> I want to open all the results after tag filter, so that I can have a 
> quick look.
>
> But now, I can only get a list of title after tag filter.
>
> Is there any solution?
>

-- 
You received this message because you are subscribed to the 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/56d9a88e-8ca6-4706-97f2-e9c0dd48eee4o%40googlegroups.com.


[tw5] how to open all the results after tag filter?

2020-08-26 Thread 叶术
hello all,

I want to open all the results after tag filter, so that I can have a quick 
look.

But now, I can only get a list of title after tag filter.

Is there any solution?

-- 
You received this message because you are subscribed to the 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/707f9a39-5fbc-4b33-8121-ab50f61b105an%40googlegroups.com.


[tw5] TiddlyWiki Cloud Tutorial for using on multiple devices

2020-08-26 Thread Jimmy Sweeney
Hello all,

I am brand new to TiddlyWiki and I am loving it so far. I got started a 
couple of days ago and have learned a ton about the potential uses and 
features.

The one issue I had with getting started was finding a way to sync my 
tiddlywiki file between devices (like an iPhone and a computer.) I started 
with Note Self  but was having some issues with it 
and it was acting a bit buggy. I considered making my raspberry pi a server 
to host my file so that I could access it across devices (that's a bit 
above my pay grade - would still like to know how to do that though). 

Anyway, I realized was that I just needed a simple way to sync devices. 
There's all sorts of cool stuff in this community but I hard time finding 
other people who wanted to do the same thing that I was trying to do. 
Please, let me know if I am wrong though.

I finally settled on using TiddlyWiki Cloud 
. As simple as 
this route is, I still had to stumble my way through figuring it out. So I 
put together a quick tutorial on how to set it up so that you can work on 
your TiddlyWiki on any device. Let me know if anyone already has done this 
but I couldn't find it anywhere. Hopefully this will be useful to other new 
users.


*TiddlyWiki Cloud Tutorial for working on your TiddlyWiki on multiple 
devices.*

   1. Make sure you have a Dropbox account.  (It's 
   free). Follow the instructions on their site for setting up an account.
   2. Go to https://tiddlywiki.com/
   3. Click the big blue "Download Empty" box.
   4. Find the empty.html file in your file explorer (probably in your 
   downloads folder) and rename it to something like "mynewtiddlywiki.html".
   5. Log in to Dropbox.
   6. Upload the "mynewtiddlywiki.html" file into your dropbox.
   7. Go to https://twcloud.github.io/
   8. Click on the first option - tw5-dropbox.
   9. Click on Full Dropbox Access - this probably prompts you allow to the 
   app access - click on allow or yes or whatever.
   10. You should then see your tiddlywiki file highlighted in yellow. 
   Click on it.
   11. This will open up your tiddlywiki file. You are ready to start 
   making tiddlers!
   12. Bookmark this page https://twcloud.github.io/tw5-dropbox/ on your 
   browser and your phone so that you can create and edit tiddlers on both 
   devices. You can access your tiddlywiki file from anywhere, in fact, as 
   long as you go here https://twcloud.github.io/tw5-dropbox/ and log into 
   your dropbox account.
   13. I'd just reccommend backing up your tiddlywiki file every now and 
   then on to a hard drive as well (just so that it doesn't only live on 
   Dropbox.)

I find I can easily work on my tiddlywiki from my iPhone. You can also 
check out Quine  if you have an iOS device. 
I believe you can have it set up to sync with your tiddlywiki file on 
dropbox. I haven't looked into that yet, myself.

-

Cheers! And looking forward to being part of the community!

-- 
You received this message because you are subscribed to the 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/8c917d6e-aec9-41ce-b12a-ec484a41e41fn%40googlegroups.com.


[tw5] Re: how to search ignore the path ?

2020-08-26 Thread Eric Shulman
On Wednesday, August 26, 2020 at 5:20:53 AM UTC-7, Zhe Lee wrote:
>
> I search note in my wiki 
> here is my result: 
> What I need is just the last one. I want the search just match the title, 
> how to set it? 
>

As described here: https://tiddlywiki.com/#Searching%20in%20TiddlyWiki,
the search field in the sidebar will result in *"a list of all the tiddlers 
that contain that text"*

To *"obtain a list of all tiddlers that meet the specific criteria"*, use 
the $:/AdvancedSearch, Filter tab:

1) Click on the magnifying glass next to the sidebar search input field
2) Select the "Filter" tab
3) Enter filter syntax: [suffix[Note]]

-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/92453246-9b32-4ea7-9b7e-eaf064e45724o%40googlegroups.com.


[tw5] how to search ignore the path ?

2020-08-26 Thread Zhe Lee
I search note in my wiki 
here is my result: 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_10.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_11.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_12.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_14.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_15.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_16.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_3.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_4.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_5.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_6.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_7.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_8.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList_9.tid 

/home/lizhe/origami_note/origami_wiki/tiddlers/$__StoryList.tid 

D:\python_project\origami_note\origami_wiki\tiddlers\$__StoryList_1.tid 

D:\python_project\origami_note\origami_wiki\tiddlers\$__StoryList_2.tid 

HowToNote 

What I need is just the last one. I want the search just match the title, 
how to set it? 

Seems no setting about the search.

-- 
You received this message because you are subscribed to the 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/cdc730bd-08ed-4a4e-b97a-fa1b1c710eado%40googlegroups.com.


[tw5] Re: How do I indent?

2020-08-26 Thread HC Haase
 a quick way to indent in the in the text can be done with:

: indented text
or
:: indented text 

I have modified sk's *Indent *plugin to use this. you can also just use the 
plugin as is. I have attached my mod

søndag den 23. august 2020 kl. 04.30.13 UTC+2 skrev TW Tones:

> Moe,
>
> Bullets support indent as does blockquotes.
>
> Do look at using codemirror, it provides indenting/tabs, but I have not 
> tried the first line only indent (Not a style I like). Recently Saq Made 
> indenting for bullets automatic with the tab, and I have often used the 
> combination of ";" and ":" especially one or more ":" to indent.
>
> You could also use css to define a class, that has first line indent, and 
> you can build an Editor Toolbar button for it.
>
> Regards
> Tony
>
>
>
> On Sunday, 23 August 2020 05:36:45 UTC+10, Moe Gibbs wrote:
>>
>>   Just a simple indent, for the love of football! Seriously, why is 
>> something so simple so hard to find? 
>
>

-- 
You received this message because you are subscribed to the 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/f939b88a-411c-499f-ada5-755a4eaed881n%40googlegroups.com.


$ _core_ui_TextEditorToolbar_indent.json
Description: application/json


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

2020-08-26 Thread HC Haase
Dear everyone
Do to the general situation I did not have time to set aside for TW. That 
coupled with the community going in another direction than me, and my 
enthusiasm faded. I have been away for a long time so sorry for the late 
reply. I hope to be back in the TWorld again.


> thank you for your work, I found your plugin to be really useful and I 
> like the folding sections.
>

that's great to hear. I had the impression that I was the only one using my 
plugin. Happy to know you find it useful. This gives me motivation to 
continue.


Do you plan to add *freelinks* in the future as well ?
>

Yes. when I get the time. I will look into it soon. 

I am wondering how the UI of freelinks should be. a dropdown of its own or 
integrated into the link section.. hmm

>
> also just fyi, I've noticed an incompatibility between TOCgeneric 2.1.0 
> and the plugin SideEditor  2.03. the 
> googlegroups thread here 
>  if you 
> would like to investigate the issue.
>
>
thanks for the report and thanks @Mat for finding it. I will correct it 
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/3033c86b-9e6c-4fae-9c0d-50329d66c8e0o%40googlegroups.com.