[tw5] Bob - syncing tid files on WIndows 10

2020-08-27 Thread SteveH
Hi there,

Not sure what I've done to upset the apple-cart.  I used to be 'two way 
sync' my tid files, however if I change a file externally it doesn't change 
in the browser.

My setup is 


   - Firefox v 79.0 64 bit
   - Windows 10
   - Tiddlywiki v 5.1.22
   - Bobs latest version.

Hoping for suggestions...

SteveH




-- 
You received this message because you are subscribed to the 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/8187f952-1d9c-41fc-bdf9-e7d0d55a33d1o%40googlegroups.com.


[tw5] Re: Regarding list bullets

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 5:15:57 PM UTC-7, TW Tones wrote:
>
> This method will apply the styles to any list open on screen even in other 
> tiddlers, if the one containing the style is displayed.
> Can you suggest the simple method to ensure these custom styles apply only 
> in the current tiddler?, perhaps we use a section or div around the content 
> of the tiddler?
>

Indeed, it is as simple as wrapping the bullet list in a div with a named 
class, and using that class in the CSS declarations, like this:

.myBullets li {list-style-type: decimal; }
.myBullets li li {list-style-type: lower-alpha; }
.myBullets li li li {list-style-type: lower-roman; }
.myBullets li li li li {list-style-type: circle; }



# Some random Question
## Subsection 1
## Subsection 2
# Another Random Question
## Subsection 1
### Subsection 1.1
### Subsection 1.2
## Subsection 2
### Subsection 2.1
### Subsection 2.2
# One More Random Question
## Subsection 1
### Subsection 1.1
 Subsection 1.1.1
# Subsection 1.1.1


-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/a6c6760e-f4bd-4200-8148-946a507392e0o%40googlegroups.com.


Re: [tw5] Re: TW File Not Saving

2020-08-27 Thread Ken Gray
BOOM! that works!
Thanks.

On Thu, Aug 27, 2020, 4:39 PM 'Mark S.' via TiddlyWiki <
tiddlywiki@googlegroups.com> wrote:

> The backup from twexe seems to be slightly defective. What worked for me
> was to delete two tiddlers
>
> $:/UploadUrl
> $:/UploadName
>
> After that the default mechanism would work again.
>
> On Thursday, August 27, 2020 at 12:33:19 PM UTC-7, Ken Gray wrote:
>>
>> it's an export backup from twexe.
>>
>> On Thursday, August 27, 2020 at 1:32:16 PM UTC-4 Mark S. wrote:
>>
>>> How did you download or obtain the file?
>>>

>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/-Jz0pPeRF0Q/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/a6242f06-b47b-4685-9f3e-b4b4157d5bcao%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/CAF%2Bjip%3DFu_j8bDOJnYCHUZy_6kLJhq39frXR6cPCE3q18BbG3g%40mail.gmail.com.


[tw5] Re: Regarding list bullets

2020-08-27 Thread TW Tones
Eric,

This method will apply the styles to any list open on screen even in other 
tiddlers, if the one containing the style is displayed.

Can you suggest the simple method to ensure these custom styles apply only 
in the current tiddler?, perhaps we use a section or div around the content 
of the tiddler?

I have long sought an answer on this one, and not quite expert on css to 
get a good answer.

Regards
Tony

On Friday, 28 August 2020 04:45:57 UTC+10, Eric Shulman wrote:
>
> On Thursday, August 27, 2020 at 10:06:24 AM UTC-7, Millo wrote:
>>
>> an * leads to bullets while # leads to numbering. However, I want to know 
>> if I can do the following via TW:
>>
>> 1. Some random Question.
>> a. Subsection 1  
>>  i. Subsection 1.1
>> ii. Subsection 1.2
>>...
>>
>
> Yes.  Use CSS to style the numbered bullets, like this:
>
> 
> li {list-style-type: decimal; }
> li li {list-style-type: lower-alpha; }
> li li li {list-style-type: lower-roman; }
> li li li li {list-style-type: circle; }
> 
>
> # Some random Question
> ## Subsection 1
> ## Subsection 2
> # Another Random Question
> ## Subsection 1
> ### Subsection 1.1
> ### Subsection 1.2
> ## Subsection 2
> ### Subsection 2.1
> ### Subsection 2.2
> # One More Random Question
> ## Subsection 1
> ### Subsection 1.1
>  Subsection 1.1.1
> # Subsection 1.1.1
>
> Here's a link to a reference for "list-style-type":
> https://www.w3schools.com/cssref/pr_list-style-type.asp
>
> enjoy,
> -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/faaec74e-4ae0-4838-a415-f462fe63aff0o%40googlegroups.com.


[tw5] Re: Variable scope question

2020-08-27 Thread TW Tones
Saq,

You have thrown the cat amongst my pidgins here. I am keen to see If I can 
use this design to generate an end of process. There were features in the 
old TWC for each tiddler macro we are yet to recover.

If you make a tested demo example of this code pattern please share.

However I realise my own recent post to Werner allows a test for 1st and 
total count (last) to trigger  beginning and end processes.

Regards
Tones

On Thursday, 27 August 2020 06:41:16 UTC+10, Saq Imtiaz wrote:
>
> 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/b37c8818-10e1-4e21-865c-3e83b6d28412o%40googlegroups.com.


[tw5] Re: Day Number

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 4:08:23 PM UTC-7, TW Tones wrote:
>
> For clarity we would call this the "day of year number" DOY
>

Based on my recent work with time and date 
(http://TiddlyTools.com/timer.html), I have learned quite a bit about date 
nomenclature.

In fact, there is a well-defined international standard, ISO-8601 (
https://en.wikipedia.org/wiki/ISO_8601 
), that defines how 
dates are represented and referenced

Using that international standard, the "day of year number" is called the 
*"ordinal 
date"* (https://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates).

Similarly, the standard defines the "week of year" number, which is just 
referred to as the *"week number"* (
https://en.wikipedia.org/wiki/ISO_week_date).

There is also a standard for "*weekday number*" which is *"a digit d from 1 
through 7, beginning with Monday and ending with Sunday"*

Note that the TWCore date formatting (https://tiddlywiki.com/#DateFormat) that 
is used by the <> macro already supports "week number" using "WW" and 
"0WW" formatting codes.  It also supports both 4-digit and 2-digit "year 
number with respect to week number, using "w" and "wYY" formatting 
codes respectively.

-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/26eb3c0d-82d9-4b6e-8019-a3cf8238ea9ao%40googlegroups.com.


[tw5] Re: Variable scope question

2020-08-27 Thread TW Tones
Werner,

An Example of using count and range for a given set of titles. Works on 
Tiddlywiki.com

\define all-items(items)
$items$
<$list filter="[range[1,$items$]]" variable=item-number>
   <$macrocall $name=each-item item=<>/>

\end
\define each-item(item)
Item #$item$ {{{ [tag[TableOfContents]sort[]nth[$item$]] }}}
\end

<$macrocall $name=all-items items={{{ [tag[TableOfContents]count[]] }}}/>


   - First I call all-items providing the total number of items I am going 
   to process with count
  - This is done so I can use the $items$ as replaceable parameter in 
  the range operator
   - Now I can process each item number, and access the specific item using 
   the nth operator.
   - Notice the sort at the last moment (each-item) this can be changed or 
   removed (for natural order) 

But it is important to note if you do not need the number of each item that 
filters naturally process the set of titles they generate, and return to 
the "calling process" when finished.

Nested list widgets, even recursive (call them self)  will return to the 
previous level when the new filter (if) it is exhausted. In effect do until 
end of list.

Another way is to iterate a list and and determine the position of each 
item in the list, each time.

For example this macro returns the position of currentTiddler in the 
natural list of items tagged page.
\define position() <$list filter=
"[tag[page]allbeforecount[]add[1]]" variable=position><$text 
text=<>/>
In this case the position is determined for each tiddler, rather than using 
the range widget to provide the position.

Regards
Tony



On Friday, 28 August 2020 03:02:40 UTC+10, Werner wrote:
>
> Thanks, Tony, for pointing me at the range[] operator. Could you elaborate 
> a bit on how you use it. So far I've gotten by using the <$list> widget, 
> but your approach might be more efficient than mine.
>
> Here's what I'm doing when looping through JSON data
>
> <$set name="actions" filter="[all[current]indexes[Actions]sort[]]" > 
> <$set name="actionCount" filter="[split[ ]count[]]" > 
> 
> <$list variable="currentAction" filter=<> >
> ...
> 
> 
> 
>
> Speaking of tables, is there anything to be aware of, as to how TW injects 
> HTML tags? I can't seem to get  and  right in my dynamically 
> created nested table. I have delegated some code to conditionally executed 
> macros, and Chrome seems go get confused, when a  is used at a 
> position it doesn't like.
>
> EDIT: The last issue is solved. Found a cleaner way to build the table. 
> Set the  tags at the lowest level and insert s for the higher 
> levels only when needed
>
> Thanks again
> Werner
>
> Am Donnerstag, 27. August 2020 04:01:09 UTC+2 schrieb 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: 

[tw5] Re: Day Number

2020-08-27 Thread TW Tones
Ed et al.

For clarity we would call this the "day of year number" DOY

as opposed to Day of Month DOM, or Week of Year WOY
but you can also have end of day EOD Beginning of day BOD, 

>From this follows many things BOW, EOM, EOY BOQ/EOQ

Regards
Tony

On Friday, 28 August 2020 05:04:00 UTC+10, Ed Heil wrote:
>
>
> Hi,
>
> I'm interested in populating a field on a tiddler with the "day number" 
> (Jan 1 = 1, Dec 31 = 365 or 366).  There doesn't seem to be an option in 
> the now macro which will give me that number, unless I'm missing 
> something.  
>
> I was thinking this might be a good reason to create my first javascript 
> macro, but poking around the documentation, it's not entirely clear to me 
> how it's possible to create a little one-off javascript macro in a tiddler 
> to use in your wiki, the way you can create a little one-off wikitext 
> macro. 
>
> I was looking at this:
>
> https://tiddlywiki.com/dev/index.html#JavaScript%20Macros
>
> but it talks about developing javascript macros as "modules."  I'm not 
> sure how to add a new module in my wiki... I see there are existing 
> javascript macro modules which are just tiddlers in $:/core/modules/macros  
> ... they look just like some javascript in a tiddler...  could I make 
> something like that?  If so, how?
>
> I know Javascript, I just am missing some very simple first steps as to 
> how to get started on this project.
>
> Of course, if there's some way to get a day number out of the now macro, I 
> wouldn't have to worry about it. :)
>
>
>

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


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

2020-08-27 Thread TW Tones
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[]]}}}'''

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

Even nicer if we could
['varname'match[yes]] in filters, wikified and text version of the value of 
varname returned.

But you can see I would also like a shortform to replace "wikify" to 
evaluate then return text. Perhaps they could be the same thing?

Tones

-- 
You received this message because you are subscribed to the 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/b5241e9b-70ee-41df-8f00-ecc8e83ffc31o%40googlegroups.com.


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

2020-08-27 Thread TW Tones
FYI: Someone has already done an ISBN tiddler, Not sure where, sorry.

Tones

On Friday, 28 August 2020 06:24:38 UTC+10, 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/fca6251b-d5ad-4657-9f94-bcd7332c8a52o%40googlegroups.com.


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

2020-08-27 Thread 'Mark S.' via TiddlyWiki


On Thursday, August 27, 2020 at 2:24:59 PM UTC-7, Jimmy Sweeney wrote:
>
> Hi Saq - why would that be? When I export other tiddlers as json files 
> they have line breaks as "\n". 
>
>
I don't think they have line breaks in the middle of text strings, as yours 
does. Wherever there was a line break, there needs to be a \n 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/db77ea8c-d906-442a-b918-63028e9496a9o%40googlegroups.com.


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

2020-08-27 Thread dieg...@gmail.com
Hi,

When I take that raw string, save it as a .json file and upload that to 
tiddlywiki.com I can see the imported tiddler just fine! 

On Thursday, August 27, 2020 at 4:24:59 PM UTC-5 swee...@gmail.com wrote:

> Hi Saq - why would that be? When I export other tiddlers as json files 
> they have line breaks as "\n". 
>
> Thanks Eric, I fixed those two things but still no luck. 
> 
>
> On Thu, Aug 27, 2020 at 3:47 PM Saq Imtiaz  wrote:
>
>> Make sure the text field in the JSON does not contain linebreaks or other 
>> characters that need to be escaped.
>>
>> On Thursday, August 27, 2020 at 10:24:38 PM UTC+2 swee...@gmail.com 
>> 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 a topic in the 
>> Google Groups "TiddlyWiki" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/tiddlywiki/VCn3kDOmTD4/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> tiddlywiki+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/tiddlywiki/50f4ba7a-2c94-41a2-a87d-2185aaf8fe30n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> 414 5540826 <(414)%20554-0826>
>

-- 
You received this message because you are subscribed to the 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/00ba9500-5062-439a-b78f-7e96f9926578n%40googlegroups.com.


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

2020-08-27 Thread Jimmy Sweeney
Hi Saq - why would that be? When I export other tiddlers as json files they
have line breaks as "\n".

Thanks Eric, I fixed those two things but still no luck.


On Thu, Aug 27, 2020 at 3:47 PM Saq Imtiaz  wrote:

> Make sure the text field in the JSON does not contain linebreaks or other
> characters that need to be escaped.
>
> On Thursday, August 27, 2020 at 10:24:38 PM UTC+2 swee...@gmail.com 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 a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/tiddlywiki/VCn3kDOmTD4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/50f4ba7a-2c94-41a2-a87d-2185aaf8fe30n%40googlegroups.com
> 
> .
>


-- 
414 5540826

-- 
You received this message because you are subscribed to the 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/CAC8Gt89nTMbpsAxhJ9U13SfELtScCkBEpzAYWQdfBiahjToL0A%40mail.gmail.com.


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

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 1:52:18 PM UTC-7, Mat wrote:
>
> Eric Shulman wrote:
>>
>> You can also limit the effect of tv-wikilinks by using 
>> <$vars>..., like this:
>>
>> <$vars tv-wikilinks="no">
>> {{{[[2020-06-26]split[-]first[]]}}}  THIS IS NOT A LINK
>> 
>>
>
> Huh? So... tv-wikilinks  
> is some kind of "environmental variable" to control how *other *variables 
> behave?
>

Not exactly.  Most tv-* variables modify the behavior of some *widget*.  In 
this case, as written in the documentation:

*The tv-wikilinks variable controls the behaviour of the $link widget.*
 

> In that docs tiddler it is not quite clear that it can be used this way. 
>

The difference between using
\define variablename() ...
and
<$vars variablename="..."> 
...

is that the \define syntax applies to the whole tiddler in which it occurs, 
while the <$vars>... syntax has more limited scope.

Also, if a tiddler is tagged with "$:/tags/Macro", then the \define syntax 
will automatically be exported as a global macro, whereas the 
<$vars>... syntax will not.

-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/b834ccf3-c002-474b-8545-7aef0c850f7bo%40googlegroups.com.


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

2020-08-27 Thread Mat
Eric Shulman wrote:
>
> You can also limit the effect of tv-wikilinks by using <$vars>..., 
> like this:
>
> <$vars tv-wikilinks="no">
> {{{[[2020-06-26]split[-]first[]]}}}  THIS IS NOT A LINK
> 
>

Huh? So... tv-wikilinks  
is some kind of "environmental variable" to control how *other *variables 
behave? Muy interesante. In that docs tiddler it is not quite clear that it 
can be used this way. Also, I note the docs is tagged "Configuration 
Variable" but there is no such tiddler so I'm wondering if this "control of 
other variables" is a common characteristic for all such configuration 
variables?

<:-)

-- 
You received this message because you are subscribed to the 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/6cfd279b-c9dd-4c51-b2b9-7fdab5ff1c47o%40googlegroups.com.


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

2020-08-27 Thread Saq Imtiaz
Make sure the text field in the JSON does not contain linebreaks or other 
characters that need to be escaped.

On Thursday, August 27, 2020 at 10:24:38 PM UTC+2 swee...@gmail.com 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/50f4ba7a-2c94-41a2-a87d-2185aaf8fe30n%40googlegroups.com.


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

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 1:24:38 PM UTC-7, Jimmy Sweeney wrote:
>
> 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.
>

The first thing I noticed is that the "created" field is not the correct 
format.

It's supposed to be a 17-digit value, MMDDhhmmssXXX, where:
*  is the year number
* MM is the month number
* DD is the date 
* hh is the hours
* mm is the minutes
* ss is the seconds
* XXX is the milliseconds
(note that all values are zero-padded as needed)

The second thing I notice is that there is no "modified" field.
Without this field, the tiddler won't appear in the "recent" sidebar tab 
list.

Hope this helps...

-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/e23545ba-7039-4a82-b98d-20c7e21bc997o%40googlegroups.com.


[tw5] Re: TW File Not Saving

2020-08-27 Thread 'Mark S.' via TiddlyWiki
The backup from twexe seems to be slightly defective. What worked for me 
was to delete two tiddlers

$:/UploadUrl
$:/UploadName

After that the default mechanism would work again.

On Thursday, August 27, 2020 at 12:33:19 PM UTC-7, Ken Gray wrote:
>
> it's an export backup from twexe.
>
> On Thursday, August 27, 2020 at 1:32:16 PM UTC-4 Mark S. wrote:
>
>> How did you download or obtain the file?
>>
>>>
>

-- 
You received this message because you are subscribed to the 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/a6242f06-b47b-4685-9f3e-b4b4157d5bcao%40googlegroups.com.


[tw5] Re: Day Number

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 12:04:00 PM UTC-7, Ed Heil wrote:
>
> I'm interested in populating a field on a tiddler with the "day number" 
> (Jan 1 = 1, Dec 31 = 365 or 366).  There doesn't seem to be an option in 
> the now macro which will give me that number, unless I'm missing 
> something.  
> Of course, if there's some way to get a day number out of the now macro, I 
> wouldn't have to worry about it. :)
>

Here's a macro that calculates the day number (1 through 365/366) and a 
$button that stores the result in a tiddler field:

\define getDay()
\whitespace trim
<$vars =<> mm=<> dd=<>>
<$set name="dpm" filter="[divide[4]split[.]count[]match[1]]"
 value="31 29 31 30 31 30 31 31 30 31 30 31" emptyValue="31 28 31 30 31 
30 31 31 30 31 30 31">
{{{ [enlist:rawfirstbutlast[]sum[]add] }}}
\end

<$button> set days
<$wikify name="days" text=<>>
<$action-setfield days=<> />



The getDay() macro does this:
* \whitespace trim removes all whitespace from the macro output
* $vars gets the current year (), month (MM) and date (DD)
* $set name="dpm" (days per month) determines if the year is a leap year 
(i.e., evenly divisible by 4) and then defines a list of days per month
* the inline filter enlists the days per month (using :raw to include 
duplicate values)
* then it trims the list to only include the months up to, but not 
including, the current month
* and then sums those numbers and adds the date for the current month

The $button does this:
* $wikify takes the getDay() macro and converts it's output to plain text
* $action-setfield saves the plain text value to the "days" field of the 
current tiddler

enjoy,
-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/37fb371d-4468-45c1-8b9b-6bff1cc4e456o%40googlegroups.com.


[tw5] Importing a tiddler written with python?

2020-08-27 Thread Jimmy Sweeney
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/b126928c-26a6-494f-921a-08e742660382n%40googlegroups.com.


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

2020-08-27 Thread Jimmy Sweeney
Thanks Mat and Tone.

" Do you have to be careful accessing the same dropbox wiki from two 
devices at once? "
 
I haven't run into any issues yet. But I'm the only the one working on my 
TiddlyWiki. I'm guessing if two people were logged into the same dropbox 
and working on the TiddlyWiki at the same time, some issues might arise 
with saving. 

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

Sure! How do I go about doing that?

On Wednesday, August 26, 2020 at 7:44:38 PM UTC-5 TW Tones wrote:

> 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 

[tw5] Re: TW File Not Saving

2020-08-27 Thread Ken Gray
it's an export backup from twexe.

On Thursday, August 27, 2020 at 1:32:16 PM UTC-4 Mark S. wrote:

> How did you download or obtain the file?
>
>>


-- 
You received this message because you are subscribed to the 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/c7dd6abb-8107-4406-9762-db818417f158n%40googlegroups.com.


[tw5] Day Number

2020-08-27 Thread Ed Heil

Hi,

I'm interested in populating a field on a tiddler with the "day number" 
(Jan 1 = 1, Dec 31 = 365 or 366).  There doesn't seem to be an option in 
the now macro which will give me that number, unless I'm missing 
something.  

I was thinking this might be a good reason to create my first javascript 
macro, but poking around the documentation, it's not entirely clear to me 
how it's possible to create a little one-off javascript macro in a tiddler 
to use in your wiki, the way you can create a little one-off wikitext 
macro. 

I was looking at this:

https://tiddlywiki.com/dev/index.html#JavaScript%20Macros

but it talks about developing javascript macros as "modules."  I'm not sure 
how to add a new module in my wiki... I see there are existing javascript 
macro modules which are just tiddlers in $:/core/modules/macros  ... they 
look just like some javascript in a tiddler...  could I make something like 
that?  If so, how?

I know Javascript, I just am missing some very simple first steps as to how 
to get started on this project.

Of course, if there's some way to get a day number out of the now macro, I 
wouldn't have to worry about it. :)


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


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

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 10:53:30 AM UTC-7, PMario wrote:
>
> you can do this: 
> \define tv-wikilinks() no
> {{{[[2020-06-26]split[-]first[]]}}}
> and use the above in a template. So the define doesn't interfere with 
> other text that may follow. 
>

You can also limit the effect of tv-wikilinks by using <$vars>..., 
like this:

<$vars tv-wikilinks="no">
{{{[[2020-06-26]split[-]first[]]}}}  THIS IS NOT A LINK

{{{[[2020-06-26]split[-]first[]]}}}  THIS IS A LINK

-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/ac121109-a916-4cf5-85e6-ff9e76730d96o%40googlegroups.com.


[tw5] Re: Regarding list bullets

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 10:06:24 AM UTC-7, Millo wrote:
>
> an * leads to bullets while # leads to numbering. However, I want to know 
> if I can do the following via TW:
>
> 1. Some random Question.
> a. Subsection 1  
>  i. Subsection 1.1
> ii. Subsection 1.2
>...
>

Yes.  Use CSS to style the numbered bullets, like this:


li {list-style-type: decimal; }
li li {list-style-type: lower-alpha; }
li li li {list-style-type: lower-roman; }
li li li li {list-style-type: circle; }


# Some random Question
## Subsection 1
## Subsection 2
# Another Random Question
## Subsection 1
### Subsection 1.1
### Subsection 1.2
## Subsection 2
### Subsection 2.1
### Subsection 2.2
# One More Random Question
## Subsection 1
### Subsection 1.1
 Subsection 1.1.1
# Subsection 1.1.1

Here's a link to a reference for "list-style-type":
https://www.w3schools.com/cssref/pr_list-style-type.asp

enjoy,
-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/c052a86c-f707-4766-be91-d21615593725o%40googlegroups.com.


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

2020-08-27 Thread _Phi / hpx1
Thanks for the update !
Regarding Freelinks, I suppose they should have their own folding section :

> 
> >References
> > X Tagged with 
> > X Freelinks
>
>
>



On Wednesday, August 26, 2020 at 8:22:09 AM UTC+2, HC Haase wrote:
>
> 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/6efd3980-0f14-453d-b409-abd3551edf1ao%40googlegroups.com.


[tw5] Re: Overriding class style

2020-08-27 Thread PMario
Hi, 

The ControlPanel : Info : 
Advanced : Stylesheet  - menu

allows you to drag & drop sort the stylesheets. ... So the *lower in the 
list*, the *higher* the *priority*. 

-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/fe32e750-ca53-4a78-851c-1c1cd3155940o%40googlegroups.com.


[tw5] Re: Variable scope question

2020-08-27 Thread Saq Imtiaz
@werner precisely, its a recursive macro that processes each row, and calls 
the macro again with the next row, inside a new vars widget with the new 
incremented value of the variable.

The emptyMessage is triggered at the end and gives the final cumulative 
value.

On Thursday, August 27, 2020 at 6:36:01 PM UTC+2 Werner wrote:

> Thanks, Saq, so this means you are using recursion? Didn't realize this 
> was possible in TW. I will yet have to try it out and get back to you.
>
>
> Am Mittwoch, 26. August 2020 22:41:16 UTC+2 schrieb 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/681c064e-8b61-4c5e-8f88-b99a1b4cfb1fn%40googlegroups.com.


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

2020-08-27 Thread PMario
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.
>

you can do this: 

\define tv-wikilinks() no

{{{[[2020-06-26]split[-]first[]]}}}


and use the above in a template. So the define doesn't interfere with other 
text that may follow. 

-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/88a07ddd-3f2b-4a78-8cef-56e7bb88d26co%40googlegroups.com.


[tw5] Re: TW File Not Saving

2020-08-27 Thread 'Mark S.' via TiddlyWiki
How did you download or obtain the file?

>
>>>

-- 
You received this message because you are subscribed to the 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/dde3caf8-3df7-4bab-9f49-91ca62a6d4eao%40googlegroups.com.


[tw5] Re: Template or macro or other?

2020-08-27 Thread PMario
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/1ab46b8e-7160-4395-82e1-9f99dd72a1afo%40googlegroups.com.


[tw5] Regarding list bullets

2020-08-27 Thread Millo
Hey all,

I have a doubt regarding list bullets. I know that an * leads to bullets 
while # leads to numbering. However, I want to know if I can do the 
following via TW:

1. Some random Question.
 a. Subsection 1
 b. Subsection 2
  

and also can we do this:

1. Some random Question.
a. Subsection 1  
 i. Subsection 1.1
ii. Subsection 1.2
   ...



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


[tw5] Re: Variable scope question

2020-08-27 Thread 'Werner' via TiddlyWiki
Thanks, Tony, for pointing me at the range[] operator. Could you elaborate 
a bit on how you use it. So far I've gotten by using the <$list> widget, 
but your approach might be more efficient than mine.

Here's what I'm doing when looping through JSON data

<$set name="actions" filter="[all[current]indexes[Actions]sort[]]" > 
<$set name="actionCount" filter="[split[ ]count[]]" > 

<$list variable="currentAction" filter=<> >
...




Speaking of tables, is there anything to be aware of, as to how TW injects 
HTML tags? I can't seem to get  and  right in my dynamically 
created nested table. I have delegated some code to conditionally executed 
macros, and Chrome seems go get confused, when a  is used at a 
position it doesn't like.

Thanks again
Werner

Am Donnerstag, 27. August 2020 04:01:09 UTC+2 schrieb 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/83a11d52-77b1-4183-b8c9-74e34107f65ao%40googlegroups.com.


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

2020-08-27 Thread Ken Gray
I really like this.  I'm wondering though, if it is possible to get some 
editor toolbar to show up so that I can do some things like what I do with 
Code Mirror.  Not the general wiki formatting stuff (!  *  -  etc.) but the 
more complicated stuff like @@color:black;background-color:goldenrod;  Test 
Text@@  stuff.

On Friday, July 3, 2020 at 11:29:53 AM UTC-4 saq.i...@gmail.com wrote:

> Please post your feedback and any issues for Streams here or on github: 
> https://github.com/saqimtiaz/streams
>
> Demo: https://saqimtiaz.github.io/sq-tw/streams.html
> Before posting a bug report please make sure you have the latest version 
> of the plugin from the above link.
>
> Previous thread and background: 
> https://groups.google.com/forum/?oldui=1#!topic/tiddlywiki/KeVDndcnY0g%5B1-25%5D
>
> I am focusing only on bug reports for now until I have greater 
> availability. However, all feedback will be considered when further 
> development takes places. 
>
> The code needs a full review for consistency after the last major 
> refactoring in which fields were renamed among other changes, before new 
> features can be added.
>

-- 
You received this message because you are subscribed to the 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/27106b2e-2a2a-4279-8772-a5c1c0b53277n%40googlegroups.com.


[tw5] Re: Variable scope question

2020-08-27 Thread 'Werner' via TiddlyWiki
Thanks, Saq, so this means you are using recursion? Didn't realize this was 
possible in TW. I will yet have to try it out and get back to you.

Am Mittwoch, 26. August 2020 22:41:16 UTC+2 schrieb 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/dca174b6-9de4-44bf-95ec-0d0a286fbd08o%40googlegroups.com.


[tw5] Re: TW File Not Saving

2020-08-27 Thread Ken Gray
Currently, I'm using Firefox on Windows 10 and am using the standard out of 
the box saving solutions (i.e. the "save" button).  Single file btw.
It doesn't save at all anywhere and doesn't even register that it was saved 
(thus the save icon not returning to standard colour).

On Thursday, August 27, 2020 at 12:05:51 PM UTC-4 Mark S. wrote:

> You're not telling us any of the information that would help diagnose your 
> situation.
>
> What browser are you using?
> What platform are you on?
> Are you using node.js or single-file TW?
> What saving mechanism are you using?
>
> If you don't know what I mean by "saving mechanism", then you are probably 
> using the default save mechanism. Each time you clicked the icon a copy of 
> your file was downloaded to your download directory. Unfortunately, without 
> a mechanism, each download will have it's own unique file name.
>
> Good luck!
>
>
>
>
> On Thursday, August 27, 2020 at 8:18:33 AM UTC-7, Ken Gray wrote:
>>
>> Dang but I can't get get this thing to either Save or AutoSave.  It says 
>> it's saving when I click the icon but the 'red' doesn't clear and it 
>> doesn't save.
>>
>> Any ideas on how I can trouble shoot this and/or fix it?
>>
>> 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/0f6a02ee-6a0d-4d4c-be3a-4473d1ddcd6cn%40googlegroups.com.


[tw5] Re: Overriding class style

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 8:54:30 AM UTC-7, Mat wrote:
>
> Keep the $:/tags/Stylesheet tags. Click one of them to see the global 
> title list of tiddlers using that tag. And, you can rearrange the titles 
> there so to ensure that your stylesheet is placed below the other one. That 
> is how it is evaluated later and "wins", it has the same specificity.
>
> Another way is to increase it's specificity. In this specific case I'd 
> probably go this route and use  !important, i.e like so:
> .graybox {foo !important;}
>

Yet another way:

Define your style override like this:
.myStyles .graybox { your styles here }

Then, you can add your class ("myStyles") to the PageTemplate by creating a 
global macro tiddler (tagged with $:/tags/Macro) containing:
\define containerClasses()
tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(
languageTitle)$ myStyles
\end
This will override the default "containerClasses" definition found 
in $:/core/ui/PageTemplate.

Thus, any page content that uses class="graybox" will automatically be 
within
a wrapper that has a class of "myStyles", and your definition of .graybox 
will
take precedence due to increased specificity.

-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/5ea5054d-5fea-4fff-a7ce-c2058edad5b1o%40googlegroups.com.


[tw5] Re: TW File Not Saving

2020-08-27 Thread 'Mark S.' via TiddlyWiki
You're not telling us any of the information that would help diagnose your 
situation.

What browser are you using?
What platform are you on?
Are you using node.js or single-file TW?
What saving mechanism are you using?

If you don't know what I mean by "saving mechanism", then you are probably 
using the default save mechanism. Each time you clicked the icon a copy of 
your file was downloaded to your download directory. Unfortunately, without 
a mechanism, each download will have it's own unique file name.

Good luck!




On Thursday, August 27, 2020 at 8:18:33 AM UTC-7, Ken Gray wrote:
>
> Dang but I can't get get this thing to either Save or AutoSave.  It says 
> it's saving when I click the icon but the 'red' doesn't clear and it 
> doesn't save.
>
> Any ideas on how I can trouble shoot this and/or fix it?
>
> 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/97af8c19-6db9-4ae9-8924-157e98a7d253o%40googlegroups.com.


[tw5] Re: Overriding class style

2020-08-27 Thread Mat
Keep the $:/tags/Stylesheet tags. Click one of them to see the global title 
list of tiddlers using that tag. And, you can rearrange the titles there so 
to ensure that your stylesheet is placed below the other one. That is how 
it is evaluated later and "wins", it has the same specificity.

Another way is to increase it's specificity. In this specific case I'd 
probably go this route and use  !important, i.e like so:

.graybox {foo !important;}

<:-)

-- 
You received this message because you are subscribed to the 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/fe6de36d-a3df-43cc-a3d1-e86d3b23a635o%40googlegroups.com.


[tw5] TW File Not Saving

2020-08-27 Thread Ken Gray
Dang but I can't get get this thing to either Save or AutoSave.  It says 
it's saving when I click the icon but the 'red' doesn't clear and it 
doesn't save.

Any ideas on how I can trouble shoot this and/or fix it?

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/5cf10bf3-8d68-4c01-b709-ae5da9104d6bn%40googlegroups.com.


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

2020-08-27 Thread HC Haase
 *Announcement*: TOC Generic
*Date*: 2020/08/27
*Release*: 2.1.1

Downlaod/demo: 
https://hchaase.github.io/HC-Plugins/#TOC-Generic%20Introduction 


v. 2.1.1

   - [Fix] bug in the style sheet (}) interfered with other plugins (thanks 
   Mat).


onsdag den 26. august 2020 kl. 08.22.09 UTC+2 skrev 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/5c03285b-6196-4b5b-b003-f2ed6e6e5a21n%40googlegroups.com.


[tw5] Overriding class style

2020-08-27 Thread demon...@gmail.com

I was wondering how to modify a style of a plugin using my own stylesheet. 
So in this case there is an element in the plugin  
but this graybox class does not look good in my theme. I am looking for a 
way to override it in a way that even if I update the plugin at some point 
(or reset or something) my style will still be in use. 

I did notice that if I just make my own .graybox {foo;} style then it will 
supercede the one give in the stylesheet of the plugin, but Inspect Element 
-> Style Editor shows that my definitions come later than the ones in the 
plugin. This would be fine, however, I have no idea *why *this happens. Is 
there some sort of order to how the styles are laid out? I tried to remove 
the $:/tags/Stylesheet tag from my own style tiddler and the plugin's own 
and add it back to see if that makes a difference in which order the styles 
are but there was no difference. 

So what would be correct way of doing this? I did read about CSS 
specificity etc but if I understood it correctly then I would have to 
change the  part, which would then be replaced again 
in the event of my refreshing / updating the plugin. 

-- 
You received this message because you are subscribed to the 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/dbb246a2-0e27-438f-a8f6-c65cd7a0830bn%40googlegroups.com.


[tw5] Re: how to make a link list finding all tiddlers with a certain field and sorting them by that field content

2020-08-27 Thread Sapphireslinger
Eureka! It works! Thank you!!

I will try to learn how to use those nested widgets for other purposes as 
well, not just Reading History. 

On Thursday, August 27, 2020 at 7:05:28 PM UTC+8 Eric Shulman wrote:

> On Thursday, August 27, 2020 at 2:48:05 AM UTC-7, Sapphireslinger wrote:
>>
>> When I finish reading a book, what is the most elegant way to mark it as 
>> read?
>
>
> There are LOTS of ways to do this.  For this reply, let's just use the 
> method you described...
>  
>
>>
>> *list ... all tiddlers possessing the field "finished-reading-date" ... 
>> and sort them by that field ... sort under year headings (and) month 
>> headings?*
>
> *They are already tagged with the year I finished reading them (i.e 2020) 
>> and the month (i.e August).*
>
>
> Here's a set of nested <$list> widgets to show the "Reading History":
> <$list filter="[range[2018,2021]]" variable="year">
><$list filter="[taglimit[1]]">
>   <>
>   <$list 
> filter="[range[1,12]addprefix[$:/language/Date/Long/Month/]get[text]]" 
> variable="month">
>  <$list filter="[tagtaglimit[1]]">
> <>
> <$list filter="[tagtag
> has[finished-reading-date]sort[finished-reading-date]]">
><$link /> (<$view 
> field="finished-reading-date"/>)
> 
>  
>   
>
> 
>
> Notes:
> * Line 1: $list iterates over a set of years using range[start,end] 
> (adjust start and end values to fit your data)
> * Line 2: $list checks to see if at least 1 tiddler is tagged with that 
> year
> * Line 3: displays the year
> * Line 4: $list iterates over a set of month names using range[1,12], 
> getting the month names from the TWCore shadows
> * Line 5: $list checks to see if at least 1 tiddler is tagged with that 
> year and month
> * Line 6: displays the month, indented by  (an "em" space character)
> * Line 7: $list finds all tiddlers with the year and month tags that also 
> have a "finished-reading-date" field, and sorts by that field
> * Line 8: displays a link to the matching tiddler and the value of the 
> "finished-reading-date" field, indented by two $emsp;
> * Lines 9-13: close the $list widgets
>
> enjoy,
> -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/7dbab9d5-acfe-44ef-8a2c-43c313074267n%40googlegroups.com.


[tw5] Re: how to make a link list finding all tiddlers with a certain field and sorting them by that field content

2020-08-27 Thread Eric Shulman
On Thursday, August 27, 2020 at 2:48:05 AM UTC-7, Sapphireslinger wrote:
>
> When I finish reading a book, what is the most elegant way to mark it as 
> read?


There are LOTS of ways to do this.  For this reply, let's just use the 
method you described...
 

> *list ... all tiddlers possessing the field "finished-reading-date" ... 
> and sort them by that field ...* *sort under year headings (and) month 
> headings?*
>
*They are already tagged with the year I finished reading them (i.e 2020) 
> and the month (i.e August).*


Here's a set of nested <$list> widgets to show the "Reading History":
<$list filter="[range[2018,2021]]" variable="year">
   <$list filter="[taglimit[1]]">
  <>
  <$list 
filter="[range[1,12]addprefix[$:/language/Date/Long/Month/]get[text]]" 
variable="month">
 <$list filter="[tagtaglimit[1]]">
<>
<$list filter="[tagtag
has[finished-reading-date]sort[finished-reading-date]]">
   <$link /> (<$view 
field="finished-reading-date"/>)

 
  
   


Notes:
* Line 1: $list iterates over a set of years using range[start,end] (adjust 
start and end values to fit your data)
* Line 2: $list checks to see if at least 1 tiddler is tagged with that year
* Line 3: displays the year
* Line 4: $list iterates over a set of month names using range[1,12], 
getting the month names from the TWCore shadows
* Line 5: $list checks to see if at least 1 tiddler is tagged with that 
year and month
* Line 6: displays the month, indented by  (an "em" space character)
* Line 7: $list finds all tiddlers with the year and month tags that also 
have a "finished-reading-date" field, and sorts by that field
* Line 8: displays a link to the matching tiddler and the value of the 
"finished-reading-date" field, indented by two $emsp;
* Lines 9-13: close the $list widgets

enjoy,
-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/4e852597-630b-4309-9643-1089de380b3do%40googlegroups.com.


[tw5] how to make a link list finding all tiddlers with a certain field and sorting them by that field content

2020-08-27 Thread Sapphireslinger
When I finish reading a book, what is the most elegant way to mark it as 
read?

For each book I have a book tiddler titled "Book - (author) - (book title)" 
in which I keep transcluded quote tiddlers, a link list of all the author's 
other books, tags like (x)-star if finished reading, or tagged read now / 
read next / read later if not read yet.

To mark the book as read I tried creating a new field called 
"finished-reading-date" and put the date/time I finished the book in that 
field.

Then I created a tiddler titled "Reading History" in which to keep a list 
of books read. *But I don't know the link list expression to call all 
tiddlers possessing the field "finished-reading-date" into a list and sort 
them by that field's variable, the date/time.*

 *Also, is there anything I can add to the expression to have the tiddlers 
sort themselves under year headings*, not to mention month headings? They 
are already tagged with the year I finished reading them (i.e 2020) and the 
month (i.e August).

And even if I find out how to do the above, are there more elegant ways of 
keeping track of one's reading history? What do other people do? (Maybe I 
should ask this as a separate post.)

-- 
You received this message because you are subscribed to the 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/a1809aaf-fa2d-48ac-ab6c-c2b0897ad5bdn%40googlegroups.com.


[tw5] Re: How to filter for: TITLE contains word 1 but tiddler is not TAGGED with word 2

2020-08-27 Thread Sapphireslinger
Thank you! It worked! 

And now I know more about filter expressions.

On Thursday, August 27, 2020 at 3:07:19 PM UTC+8 Eric Shulman wrote:

> On Wednesday, August 26, 2020 at 11:26:50 PM UTC-7, Sapphireslinger wrote:
>>
>> All tiddlers where TITLE contains word 1 (anywhere in the title) but 
>> tiddler is not TAGGED with word 2
>>
>
> Enter the following in the $:/AdvancedSearch, Filter tab input:
> [search:title[word 1]!tag[word 2]]
>
> enjoy,
> -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/cfb39f56-c97b-475b-b332-e0e02d5a11ccn%40googlegroups.com.


[tw5] Re: How to filter for: TITLE contains word 1 but tiddler is not TAGGED with word 2

2020-08-27 Thread Eric Shulman
On Wednesday, August 26, 2020 at 11:26:50 PM UTC-7, Sapphireslinger wrote:
>
> All tiddlers where TITLE contains word 1 (anywhere in the title) but 
> tiddler is not TAGGED with word 2
>

Enter the following in the $:/AdvancedSearch, Filter tab input:
[search:title[word 1]!tag[word 2]]

enjoy,
-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/a0688e37-09d7-4030-88d0-6c1146acbaaco%40googlegroups.com.


[tw5] Re: Template or macro or other?

2020-08-27 Thread Felicia Crow
Hi,

to add to Tony's answer: Personally I would say it depends more on your use 
case than on efficiency.

If there are multiple instances, not just one list, where for instance you 
want to have a person formatted as given in your example with nothing ever 
changing in your formatting a template would make the most sense.

Macros  in my experience make most sense when you are handling more dynamic 
content/formatting dependent on certain parameters. As an example say you 
have instances where you only want to show a persons current name and 
others where you also want to add their birth name if married. A macro call 
can handle this without having to set a field, which would be necessary for 
a template to reference it.

If there is only one instance where you have a list and want exactly this 
formatting you could also get away with having your template between the 
beginning and end tag of the list widget, using {{!!field_name}} to 
reference the fields you want to transclude as this would reference the 
field on the currentTiddler which is whatever tiddler the listwidget is 
currently rendering. Your example would then look something like this:

<$list filter="[your_filter]">
<$link /> ({!!birth-date} - {{!!death-date}})


Hope this helps you in some way.

Regards,
Felicia

On Wednesday, 26 August 2020 23:21:01 UTC+2, 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/1d6445a2-9385-4fa9-87ec-b069eb625d7fo%40googlegroups.com.


[tw5] How to filter for: TITLE contains word 1 but tiddler is not TAGGED with word 2

2020-08-27 Thread Sapphireslinger
How do I find:

All tiddlers where TITLE contains word 1 (anywhere in the title) but 
tiddler is not TAGGED with word 2

I saved a lot of book quotes in separate tiddlers that each had "QUOTE" 
somewhere in the title, but I forgot to tag some of them with the word 
"quote".

For instance, I made a tiddler titled "2020.08.26.1036 QUOTE - Thomas 
Sowell - A Personal Odyssey - (particular sentence best characterizing the 
whole quote reproduced in the text of the tiddler)" but forgot to tag it 
with "quote". 

How do I find those kinds of tiddlers so I can properly tag them? What is 
the filter expression?

-- 
You received this message because you are subscribed to the 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/d6c5b3e1-015b-4e9e-b93e-d3b63a851241n%40googlegroups.com.