[tw5] Re: [Plugin] TW5-CodeMirror-Plus - with better formatting and autocompletion

2021-04-06 Thread Dupui Uis
Relatively new to tiddlywiki here, is it possible to not include the 
autocomplete as I already have a plugin that works for me? I tried not 
installing the autocomplete plugin but it still somehow overrides my 
settings. My intent is to just install the text formatting and not the 
additional plugins. Thanks!

On Sunday, April 4, 2021 at 10:49:12 AM UTC-4 si wrote:

> @Adithya I've added the feature requests to the repo (plus one extra :]).
>
> >>> I have a sense of how to approach these problems but its likely to 
> take a good amount of time. So please dont expect anything soon :D 
>
> Of course! This is already a great plugin, thanks a lot!
> On Saturday, 3 April 2021 at 18:15:51 UTC+1 bmad...@gmail.com wrote:
>
>> Thanks for the feedback and suggestions. I will appreciate it if you add 
>> them to the github repo.
>>
>> I have a sense of how to approach these problems but its likely to take a 
>> good amount of time. So please dont expect anything soon :D
>>
>> Thanks, Adithya
>> On Friday, April 2, 2021 at 8:17:11 AM UTC-6 si wrote:
>>
>>> @Adithya This is really nice - great contribution to TiddlyWiki.
>>>
>>> I have a couple of suggestions regarding the autocomplete:
>>>
>>> 1. It would be cool to be able to set the suggestions to pop up 
>>> automatically, without having to press ctrl+space.
>>> 2. On selecting a tiddler from the autocomplete, would it make sense for 
>>> the closing brackets to be added automatically, and the cursor moved to the 
>>> end of the line? I appreciate that there may be a reason for the current 
>>> behaviour that I am not understanding.
>>>
>>> If either of these make sense to you I'm happy to add them to github as 
>>> feature requests.
>>>
>>> Thanks again!
>>> On Sunday, 28 March 2021 at 21:59:11 UTC+1 bmad...@gmail.com wrote:
>>>
 Hi Everyone,

 I first released TW5-CodeMirror-plus six months or so back but didnt 
 get time to work on it since then. This is a major update with some nice 
 additions.

 Checkout it out here: 
 https://adithya-badidey.github.io/TW5-codemirror-plus/

 Cheers
 Adithya

>>>

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


[tw5] Re: [Plugin] MegaMenu – A scalable menu for your wiki!

2021-04-06 Thread History Buff
While I haven't played with it as much as I'd like, so far I like it a lot 
and it's giving me a lot of ideas on how I might possibly use it. Excellent 
work. 

One thing I've done is to use a tiddler with a prefix of $:/temp for the 
state tiddler. This enables one to navigate through various tiddlers and 
tags without the save button getting "dirty" or thinking the wiki needs to 
be saved.

I'll play with it some more and let you know if I find any bugs or have 
further suggestions.

On Tuesday, April 6, 2021 at 4:55:59 PM UTC-7 jc-ose wrote:

> I want to introduce a plugin I’ve been working on called MegaMenu. It 
> provides a macro that generates a menu you can use for navigating your 
> wiki. It is inspired by "megamenu’s" used by websites that have very large 
> catalogues and/or many pages that you can navigate to. My hope is that as 
> your wiki grows, you can continue to use this menu and it should scale well 
> without making navigation any more difficult. At its core, it captures 
> relationships between tiddlers (through tags) similarly to how the built-in 
> tableofcontents macro works. However it does this in a neat interface and 
> goes one step further by attempting to group links together that have 
> multiple tags in common.
>
>  [image: MegaMenuImg.png]
>
> It shows three levels of links at any time with the possibility to dive 
> deeper using various controls.
>
> This is my first public plugin I’ve written for the community, so I’m very 
> interested in what you think and if you have ideas for how it could 
> potentially be improved. My hope is that this is intuitive to use. Also, 
> just keep in mind that this uses functionality in TW version 5.1.23, so you 
> will need that version (or later) for the menu to work correctly.
>
> I recommend giving it a try first on TiddlyWiki.com to see it in action!
>
> Github Repo:  https://github.com/jc-ose/MegaMenu
>
> Demo: https://jc-ose.github.io/MegaMenu/
>
> Some final thoughts: I am not a developer, so it’s possible that I’ve 
> missed some cross-browser compatibility bits to the css, but in my limited 
> testing it seems to work well. It should work on mobile too.
>
> Let me know what you think!
>

-- 
You received this message because you are subscribed to the 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/4e5bfcbc-68a2-421c-9213-99e804c1537fn%40googlegroups.com.


[tw5] Mem

2021-04-06 Thread David Gifford

Here is some food for thought. Mem, a new notetaking and collaboration app.

Coolest items: Collaboration is super easy. Saving from the web is easy. 
Pasting from Mem to another app is easy.

https://www.youtube.com/watch?v=hWvQUvWUCeU

Dave

-- 
You received this message because you are subscribed to the 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/4d1a0fe9-5e2e-4734-9a9c-ec265948743bn%40googlegroups.com.


[tw5] Re: video embed macro(?)

2021-04-06 Thread Sapphireslinger
How do I turn this into a macro (say called "video")



so that I can shoehorn it in here something like:

<$list filter="[tag[Video Collection - Foo]sort[title]]">
   <$button class="tc-btn-invisible tc-tiddlylink" message="tm-modal" 
param=<>>
  <$text text={{!!caption}}/>
   


Many thanks for any help. I can't figure out macros :(

On Sunday, April 4, 2021 at 7:17:11 PM UTC+8 Sapphireslinger wrote:

> (Background: I found a hack for embedding responsive video at 
> https://www.h3xed.com/web-development/how-to-make-a-responsive-100-width-youtube-iframe-embed
> )
>
> I assume it is code bloat to keep pasting 
>
>  frameborder="0" allowfullscreen class="video"> 
>
> into every video tiddler. 
>
> So I put this in a tiddler tagged $:/tags/ViewTemplate and it works: 
>
> <$list filter="[tag[video]]">
>  frameborder="0" allowfullscreen class="video">
> 
>
> *But it broke this:* 
>
> <$list filter="[tag[Video Collection - Foo]sort[title]]">
><$button class="tc-btn-invisible tc-tiddlylink" message="tm-modal" 
> param=<>>
>   <$text text={{!!caption}}/>
>
> 
>
> Clicking a link still brings up a modal but there is nothing in it now. 
>

-- 
You received this message because you are subscribed to the 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/d0d033a6-11c1-48fd-ba0a-51116df24baan%40googlegroups.com.


[tw5] A how to: protecting my code from my continous tiddler title changes

2021-04-06 Thread Charlie Veniot
G'day,

This is just one of my practices to fully take advantage of relink to 
protect my code from me and my continuous tweaking of tiddler titles.

*Some sample code*:

<$vars DataTid={{{ [addsuffix[ Data]] }}}
   *EditorName={{Sheet Designer!!title}}*>
<$vars selectedSheet={{{ [getindex[selected_sheet]] 
[!match] +[last[]] }}}
   bViewOnly={{{[!match**
then[yes]else[no]]}}}>

*About that sample code*:

In the "TiddlySheets" project I've got going on, my "Sheet Designer"  (or 
"Sheet Editor"; I am on the fence) is the tiddler in charge of creating and 
editing sheets (like "TreeSheets ", not like 
spreadsheets).  The tiddler also serves a second function: as a 
transclusion template, so that if I want to "publish" a sheet in some 
tiddler,  I transclude the sheet (a data tiddler) using the "Sheet 
Designer" as transclusion template.

The code above says:  hey, if this code (or "TiddlyWiki scripting") is 
happening for current tiddler = "Sheet Designer", then behave for that 
context (i.e. allow editng of the sheet); if this code is happening for 
current tiddler = something other than "Sheet Designer" then behave for 
that context (i.e. show the view-only sheet.)

*Back to discussion*:

Originally, my code was as follows:

<$vars DataTid={{{ [addsuffix[ Data]] }}}>
<$vars selectedSheet={{{ [getindex[selected_sheet]] 
[!match*[SheetEditor]*] +[last[]] }}}
   bViewOnly={{{[!match*[SheetEditor]*
then[yes]else[no]]}}}>

Then I changed the tiddler's name from "SheetEditor" to "SheetDesigner".

And then my tiddler stopped working correctly.  And it took me a while to 
realize:  the Relink plugin could not catch the "hard-coded" reference to 
"Sheet Editor" inside my code's filter.

Once bitten, twice shy.  I changed my code as per way above.

Pretty much wherever I refer to a tiddler, instead of referring to that 
tiddler by title, I refer to the tiddler by transclusion of the title, 
which the Relnk plugin never misses.

So "{{ThisTiddler!!title}}" instead of "ThisTiddler".

I am a tweaker by nature, and that will never change.

So I code as per my nature.  Or I quickly refactor my code when I 
momentarily forget about my nature.

Anyways, all of that in case any other tweakers out there want to max out 
the benefits of relink.

-- 
You received this message because you are subscribed to the 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/1db7e2a9-86b7-47d1-b4c7-706e77484ddfn%40googlegroups.com.


[tw5] [Plugin] MegaMenu – A scalable menu for your wiki!

2021-04-06 Thread jc-ose


I want to introduce a plugin I’ve been working on called MegaMenu. It 
provides a macro that generates a menu you can use for navigating your 
wiki. It is inspired by "megamenu’s" used by websites that have very large 
catalogues and/or many pages that you can navigate to. My hope is that as 
your wiki grows, you can continue to use this menu and it should scale well 
without making navigation any more difficult. At its core, it captures 
relationships between tiddlers (through tags) similarly to how the built-in 
tableofcontents macro works. However it does this in a neat interface and 
goes one step further by attempting to group links together that have 
multiple tags in common.

 [image: MegaMenuImg.png]

It shows three levels of links at any time with the possibility to dive 
deeper using various controls.

This is my first public plugin I’ve written for the community, so I’m very 
interested in what you think and if you have ideas for how it could 
potentially be improved. My hope is that this is intuitive to use. Also, 
just keep in mind that this uses functionality in TW version 5.1.23, so you 
will need that version (or later) for the menu to work correctly.

I recommend giving it a try first on TiddlyWiki.com to see it in action!

Github Repo:  https://github.com/jc-ose/MegaMenu

Demo: https://jc-ose.github.io/MegaMenu/

Some final thoughts: I am not a developer, so it’s possible that I’ve 
missed some cross-browser compatibility bits to the css, but in my limited 
testing it seems to work well. It should work on mobile too.

Let me know what you think!

-- 
You received this message because you are subscribed to the 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/9dec8294-33e7-4c76-ad6f-7564ce317d6bn%40googlegroups.com.


[tw5] Re: macro variable valuation

2021-04-06 Thread Jean-Pierre Rivière
I've been able to have the link with my latest idea. But it adds an other 
tiddler, tgat I call codexe. this tiddler has a tw5 type and just 
transclude the code tiddler. Then my user tiddler transclude codexe.

Some code to make things clearer.

* tiddler codexe:
<$transclude tiddler=code mode=block/>

* tiddler user (modified bits):
<$wikify text={{codexe}} name=ex>
<>

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

> If I use
>
> DEMO: <$text text=<>/>
>
> then I get the body of tho demo macro' with the parameters ($dico$ and 
> $index$) replaced by the expressions sent as arguments (not their 
> evaluation). It could be somewhat handy but it was not what was looked for.
>
> for the MACRO line, I can't do anything else. I can't use a widget within 
> a widget.
>
> As for wikify, I play with it a lot, but I was unable to get what I wanted 
> in complex situation. Surely a good hint to indicate that trying a new 
> approach could be the way to go.
>
> Now, I have just devised a way to have a source tiddler to be trancluded 
> as source and being interpreted: The "code" tiddler has the code AND it is 
> typed as plain text (this is REQUIRED). I'm doing this:
>
> First, the tiddler where is the text to be seen
> 
> !! source code
> 
> <$text text={{code}}/>
> 
> !! output ({{dictionary!!metal}})
>
> <$wikify text={{code}} name=ex><>
>
> !! here a copycat of the code (hand made, no transclusion)
>
> ; value of {{!!index}} to be read in <$link 
> to={{!!dico}}>{{!!dico}}
> : field: (<$transclude tiddler={{!!dico}} field={{!!index}}/>)
> : index: (<$transclude tiddler={{!!dico}} index={{!!index}}/>)
> -
> with filelds "dico" set to "dictionary" and "index" to "metal".
>
> now the tiddler with the source code (type: simple text)
> 
> ; value of {{!!index}} to be read in <$link 
> to={{!!dico}}>{{!!dico}}
> : field: (<$transclude tiddler={{!!dico}} field={{!!index}}/>)
> : index: (<$transclude tiddler={{!!dico}} index={{!!index}}/>)
> 
> But this is not perfect. The wiki interpretation is lacking some levels. 
> For instance, the transcluded code does net interpret the wiki-style 
> definition and do not produce a link, but the copycat does. but tghe 
> fetching of the field and of the index works OK for both codes.
>
>
> Le mardi 6 avril 2021 à 18:37:26 UTC+2, Mark S. a écrit :
>
>> On Tuesday, April 6, 2021 at 8:57:15 AM UTC-7 jn.pierr...@gmail.com 
>> wrote:
>>
>>> I tried the text widget thus:
>>>
>>> * DEMO: <$text text="""<>"""/>
>>> * MACRO: <$text text="""<$macrocall $name=demo {{!!dico}} 
>>> {{!!index}}/>"""/>
>>>

>
>> You wrapped the arguments in strings, so now it interprets your input as 
>> strings.  The only time that wrapping things in strings gets rendered is if 
>> you use the wikify widget. So you might play with
>>
>> <$wikify text="""<>""" name=rendered >
>> <$text text=<>/>
>> 
>>
>> Note that wikify has a lot of options for output. So you might not even 
>> need the text widget if you render as text.
>>
>> <$wikify text="""<>""" name=rendered 
>> output="text">
>> <>
>> 
>>
>>  
>>
>

-- 
You received this message because you are subscribed to the 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/b8e71c23-26be-4100-afdc-85ed7cf6fe28n%40googlegroups.com.


[tw5] Dynamic tables with dynamic filters (Jed Carty)

2021-04-06 Thread J Z
I'm trying to create a database of drug trials that have helped with 
various different symptoms. I want to display these as dynamic tables 
(using Jed Carty's at the moment). 

I want to be able to click on a particular symptom and see the trials that 
have been helpful, not helpful, and harmful for that particular symptom. 

At the moment, the database is organised by having tiddlers with a title 
(corresponding to the trial reference) and each with fields that correspond 
to the various symptoms these trials looked at. Each symptom can have the 
field value: improved, no change, deteriorated, not measured.

I'm trying to create a template tiddler to generate these tables, but I 
don't want to create a template for each symptom. At present, it looks like 
this:

<>

<>

<>

This works, but I would like to change the symptom (depression) to 
something dynamic. I thought of using the title of the tiddler, but

<[no change]]""" """duration drug1 dose1 
drug2 dose2 drug3 dose3""" true>>

doesn't work. I've tried various different syntax variations without 
success. 

Any help would be much appreciated. The resulting website will be free and 
hopefully of use for people with mental health problems. Many 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/908eff40-e687-48e4-8cf4-bd7acf02f7cdn%40googlegroups.com.


[tw5] Node.js install without global option

2021-04-06 Thread Andy Pastuszak

I'm on a pretty locked down work computer.  I have Node.js installed, and I 
am able to install tiddlywiki using npm install tiddlywiki.  But I can't 
use the -g option.  If I do, I get a bunch of errors.  Is there any way to 
run the install if you can't install globally?

-- 
You received this message because you are subscribed to the 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/229a086c-e21a-4428-a1fc-708dbafda5fdn%40googlegroups.com.


[tw5] Re: Is this out to lunch? Using a "Data Entry" tiddler as a transclude template

2021-04-06 Thread Charlie Veniot
Arg.

"Every cell can *h*old content managed with any kind of widget, and any 
cell can also be a transclusion of content from some other tiddler."

On Tuesday, April 6, 2021 at 5:55:03 PM UTC-3 Charlie Veniot wrote:

> The Sheets Editor is the tiddler that edits all sheets.
>
> Then, wherever we want to show the sheet, we transclude whatever tiddler 
> has sheets data using the sheets editor as transclusion template.
>
> The point of TiddlySheets is not to be a spreadsheet application, but 
> rather to be something like TreeSheets: a way to enter information and 
> organize (layout) that content with the help of rows and columns.
>
> What I've quickly realized is that every cell can be more than just an 
> edit text widget.  Every cell can old content managed with any kind of 
> widget, and any cell can also be a transclusion of content from some other 
> tiddler.
>
> So suddenly TiddlySheets has the potential of being a TreeSheets on 
> steroids.
>
> Even more interesting:  TiddlySheets could be used as a Forms Creator.
>
> Oops, I went off-track.  Not sure exactly if I answered your question.  
> Please let me know if I was clear as mud and/or answering a totally 
> different question...  
>
> On Tuesday, April 6, 2021 at 10:02:57 AM UTC-3 jn.pierr...@gmail.com 
> wrote:
>
>> Interesting possibilities. But could you please tell me how you get that 
>> toolbar for your tiddler-in-edit-mode?
>>
>> I have hacked a bit an earlier work (not mine!) to have a spreadsheet 
>> within a tiddler (I just added support for dictionaries+index instead of 
>> just fields -- that needs an external data sheet but it's more user 
>> friendly (for me at least). It could get further. I am pretty rooky about 
>> template tiddlers.
>>
>> Le dimanche 4 avril 2021 à 23:51:57 UTC+2, cj.v...@gmail.com a écrit :
>>
>>> Arg, I just fixed a wee problem with empty rows and empty columns not 
>>> showing in transclusion of data tiddler.
>>>
>>> An empty row/column makes for a space between cells of content.
>>>
>>> So TestTiddlerDataTransclusion snapshot replaced by this attached one.
>>>
>>> On Sunday, April 4, 2021 at 5:28:42 PM UTC-3 Charlie Veniot wrote:
>>>
 G'day all,

 As I plug away at the TiddlySheets idea brewing in me old sponge (related 
 thread ) ...

 A few definitions first:

- "*Sheets Editor*" is a tiddler to create and edit "Sheets."  
Think of "Sheets Editor" as analogous to the Google Sheets App (or to, 
 ugh, 
MS Excel): it has all of the smarts to enter content and layout/format 
 the 
content
- Any "*Sheet*" tiddler is a data tiddler, containing everything 
(content info, layout info, meta data, etc.), analogous to a Google 
 Sheet 
Document (or an Excel document/file)

 *(Refer to attached screenshots.)*

 I wondered: how would I go about displaying any sheet in any other 
 tiddler (whether in the story river, or sidebar, or anywhere else)?

 And how do I show that content with the layout setup via the Sheets 
 Editor ? And how do I go about that without duplicating all of the smarts 
 in the Sheets Editor?

 Solution: modify the Sheet Editor tiddler so that it can fulfill two 
 roles: 

- "Editor" of data tiddlers
- Display template for transclusion of those data tiddlers

 Because I am so "transclusion-minded", that immediately feels like the 
 right way to go for me.  How would you go about it? 

 Cheers !

>>>

-- 
You received this message because you are subscribed to the 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/3bb55eda-7c04-42e7-994d-06a67466553en%40googlegroups.com.


[tw5] Re: Is this out to lunch? Using a "Data Entry" tiddler as a transclude template

2021-04-06 Thread Charlie Veniot
The Sheets Editor is the tiddler that edits all sheets.

Then, wherever we want to show the sheet, we transclude whatever tiddler 
has sheets data using the sheets editor as transclusion template.

The point of TiddlySheets is not to be a spreadsheet application, but 
rather to be something like TreeSheets: a way to enter information and 
organize (layout) that content with the help of rows and columns.

What I've quickly realized is that every cell can be more than just an edit 
text widget.  Every cell can old content managed with any kind of widget, 
and any cell can also be a transclusion of content from some other tiddler.

So suddenly TiddlySheets has the potential of being a TreeSheets on 
steroids.

Even more interesting:  TiddlySheets could be used as a Forms Creator.

Oops, I went off-track.  Not sure exactly if I answered your question.  
Please let me know if I was clear as mud and/or answering a totally 
different question...  

On Tuesday, April 6, 2021 at 10:02:57 AM UTC-3 jn.pierr...@gmail.com wrote:

> Interesting possibilities. But could you please tell me how you get that 
> toolbar for your tiddler-in-edit-mode?
>
> I have hacked a bit an earlier work (not mine!) to have a spreadsheet 
> within a tiddler (I just added support for dictionaries+index instead of 
> just fields -- that needs an external data sheet but it's more user 
> friendly (for me at least). It could get further. I am pretty rooky about 
> template tiddlers.
>
> Le dimanche 4 avril 2021 à 23:51:57 UTC+2, cj.v...@gmail.com a écrit :
>
>> Arg, I just fixed a wee problem with empty rows and empty columns not 
>> showing in transclusion of data tiddler.
>>
>> An empty row/column makes for a space between cells of content.
>>
>> So TestTiddlerDataTransclusion snapshot replaced by this attached one.
>>
>> On Sunday, April 4, 2021 at 5:28:42 PM UTC-3 Charlie Veniot wrote:
>>
>>> G'day all,
>>>
>>> As I plug away at the TiddlySheets idea brewing in me old sponge (related 
>>> thread ) ...
>>>
>>> A few definitions first:
>>>
>>>- "*Sheets Editor*" is a tiddler to create and edit "Sheets."  Think 
>>>of "Sheets Editor" as analogous to the Google Sheets App (or to, ugh, MS 
>>>Excel): it has all of the smarts to enter content and layout/format the 
>>>content
>>>- Any "*Sheet*" tiddler is a data tiddler, containing everything 
>>>(content info, layout info, meta data, etc.), analogous to a Google 
>>> Sheet 
>>>Document (or an Excel document/file)
>>>
>>> *(Refer to attached screenshots.)*
>>>
>>> I wondered: how would I go about displaying any sheet in any other 
>>> tiddler (whether in the story river, or sidebar, or anywhere else)?
>>>
>>> And how do I show that content with the layout setup via the Sheets 
>>> Editor ? And how do I go about that without duplicating all of the smarts 
>>> in the Sheets Editor?
>>>
>>> Solution: modify the Sheet Editor tiddler so that it can fulfill two 
>>> roles: 
>>>
>>>- "Editor" of data tiddlers
>>>- Display template for transclusion of those data tiddlers
>>>
>>> Because I am so "transclusion-minded", that immediately feels like the 
>>> right way to go for me.  How would you go about it? 
>>>
>>> Cheers !
>>>
>>

-- 
You received this message because you are subscribed to the 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/5bd905f8-f09d-48d5-95bd-77f5bba66810n%40googlegroups.com.


Re: [tw5] Re: Display tags in Tiddlers

2021-04-06 Thread Jean-Pierre Rivière
As for listing letters for entries I have tghe following:

\define all-initials()
<$list filter="[tag[glossaire]]">
   <$set name=1st value={{{ [all[current]split[]first[]] }}}>
  <<1st>>
   

\end

\define glossaryList()
<$wikify name="all-letters" text=<>>
<$list 
filter="[uppercase[]split[É]join[E]split[]each:value[]!is[missing]]"
 
variable="letter">
  <$link to=<>/>


<$list 
filter="[uppercase[]split[É]join[E]split[]each:value[]!is[missing]]"
 
variable="letter">
<$link to=<>/>
<$set name="entries" filter="[addprefix[{{]addsuffix[}}]]">
<>



\end

added twist: make É and E the same entry. letters not used are not seen. 
This example is with a "glossaire" tag, you would use "people" instead or 
make it a variable of all-initials macro. the macro to be used 
is glossaryList (no argument).

You would have to adapt it to your needs and language perhaps.

note: I have created letterr tiddlers "A"', "B"', "C" etc before hand. I 
have not yet found out how to create them on purpose (and delete them on 
purpose too). But they all have the same content (a call to another macro). 
Some are not used, that's it.
Le mardi 6 avril 2021 à 17:59:12 UTC+2, schlechter...@gmail.com a écrit :

> Hello Anjar,
>
> I've adapted your example to generate a list of all my Tiddlers + 
> "published" field (= date):
>
> <$list 
> filter="A B C D E F G H I J K L M N O P Q R S T U V 
> W"><><$list filter="[ 
> sortan[]prefix]">   
> <> <$view field="published" />  
>
> Is there a way to get an output list with only one Tiddler-title per line?
>
> Thanks for feedback
> Stefan
>
> Anjar schrieb am Montag, 5. April 2021 um 22:25:39 UTC+2:
>
>> Hi,
>>
>> Absolutely, here is a quick example:
>>
>> <$list 
>> filter="A B C D E F G H I J K L M N O P Q R S T U V 
>> W"><><$list 
>> filter="[tag[People]sort[title]prefix]"> <> 
>> 
>>
>> The div is just to get three columns. The first list loops through all 
>> the letters and print each letter (<>) as header. For each 
>> letter, you use the same list as before, but add a filter to only keep 
>> titles starting on (prefix) the given letter (note that we have to use 
>>  inside filters)
>>
>> Best,
>> Anders
>>
>> mandag 5. april 2021 kl. 21:11:35 UTC+2 skrev isd196...@gmail.com:
>>
>>> I have one final question, relating to the list function itself: Is it 
>>> possible to split the list alphabetically? So that all people whose names 
>>> begin with A, B, C etc, can be placed in separate lists, despite all being 
>>> in the same Tag group?
>>>
>>> Many thanks
>>>
>>> JK
>>>
>>> On Sun, 4 Apr 2021 at 19:08, Jax Kovak  wrote:
>>>
 Eric, thanks so much! I wasn't sure about the short form of the list 
 tag being used like that. Excellent! I have my list! Many thanks!

 Kind regards

 JK


 On Sun, 4 Apr 2021 at 18:09, Eric Shulman  wrote:

> On Sunday, April 4, 2021 at 9:46:38 AM UTC-7 isd196...@gmail.com 
> wrote:
>
>> Hey PMario, thanks for that, but I'm confused on how to use this. 
>> Currently I can use 
>> <$list filter="[tag[People]sort[title]]"/>
>> to get a list of the People in the People Tag group, but I can't see 
>> how to add the <> to it so that each item is listed as a Tag. 
>> Could you clarify please?
>>
>
> By ending the $list with /> you are using the "short-form" of the 
> widget which, by default, outputs the titles of the matching tiddlers, as 
> links.  To display other output (e.g., the title as a tag pill) you need 
> to 
> use the full <$list>... syntax, where the content is the <> 
> macro, like this:
>
> <$list filter="[tag[People]sort[title]]"> <> 
>
> Note that inside the body of the $list widget, the value of 
> currentTiddler is set to the title of each matching tiddler and the 
> <> 
> macro defaults to showing the "currentTiddler" as a tag pill.
>
> enjoy,
> -e
>
> -- 
> 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/uAM0RDmpfrE/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/0882f2c6-49b1-49a2-87c0-e6f953e3599fn%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/b385dc55-92fe-489a-9be7-3d9b92a91126n%40googlegroups.com.


[tw5] Re: macro variable valuation

2021-04-06 Thread Jean-Pierre Rivière
If I use

DEMO: <$text text=<>/>

then I get the body of tho demo macro' with the parameters ($dico$ and 
$index$) replaced by the expressions sent as arguments (not their 
evaluation). It could be somewhat handy but it was not what was looked for.

for the MACRO line, I can't do anything else. I can't use a widget within a 
widget.

As for wikify, I play with it a lot, but I was unable to get what I wanted 
in complex situation. Surely a good hint to indicate that trying a new 
approach could be the way to go.

Now, I have just devised a way to have a source tiddler to be trancluded as 
source and being interpreted: The "code" tiddler has the code AND it is 
typed as plain text (this is REQUIRED). I'm doing this:

First, the tiddler where is the text to be seen

!! source code

<$text text={{code}}/>

!! output ({{dictionary!!metal}})

<$wikify text={{code}} name=ex><>

!! here a copycat of the code (hand made, no transclusion)

; value of {{!!index}} to be read in <$link to={{!!dico}}>{{!!dico}}
: field: (<$transclude tiddler={{!!dico}} field={{!!index}}/>)
: index: (<$transclude tiddler={{!!dico}} index={{!!index}}/>)
-
with filelds "dico" set to "dictionary" and "index" to "metal".

now the tiddler with the source code (type: simple text)

; value of {{!!index}} to be read in <$link to={{!!dico}}>{{!!dico}}
: field: (<$transclude tiddler={{!!dico}} field={{!!index}}/>)
: index: (<$transclude tiddler={{!!dico}} index={{!!index}}/>)

But this is not perfect. The wiki interpretation is lacking some levels. 
For instance, the transcluded code does net interpret the wiki-style 
definition and do not produce a link, but the copycat does. but tghe 
fetching of the field and of the index works OK for both codes.


Le mardi 6 avril 2021 à 18:37:26 UTC+2, Mark S. a écrit :

> On Tuesday, April 6, 2021 at 8:57:15 AM UTC-7 jn.pierr...@gmail.com wrote:
>
>> I tried the text widget thus:
>>
>> * DEMO: <$text text="""<>"""/>
>> * MACRO: <$text text="""<$macrocall $name=demo {{!!dico}} 
>> {{!!index}}/>"""/>
>>
>>>

> You wrapped the arguments in strings, so now it interprets your input as 
> strings.  The only time that wrapping things in strings gets rendered is if 
> you use the wikify widget. So you might play with
>
> <$wikify text="""<>""" name=rendered >
> <$text text=<>/>
> 
>
> Note that wikify has a lot of options for output. So you might not even 
> need the text widget if you render as text.
>
> <$wikify text="""<>""" name=rendered 
> output="text">
> <>
> 
>
>  
>

-- 
You received this message because you are subscribed to the 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/581d5d7b-a6d5-4dff-9137-4ec5c0a96e6dn%40googlegroups.com.


Re: [tw5] Re: [Presenting] (finally) the Customizer Plugin

2021-04-06 Thread David Gifford
Hi Walt

The easy solution is to create your own custom sidebar addon. Just clone my
book tools addon tiddlers, adjust them as necessary, and rename them. That
way when I update the plugin, your sidebar addon is not affected.

That is my whole goal of the sidebar part of my plugin, that people will
create their own custom sidebars as needed, either with completely new
stuff, or with modified versions of my stuff. You shouldn't need to do the
sidebar addon as a plugin if you don't intend on sharing it. Just use the
appropriate tags so the sidebar segment shows up in the sidebar, and if you
use tabs, so that any subordinate tiddlers show up in the tabs.

Enjoy!




On Tue, Apr 6, 2021 at 10:15 AM ludwa6  wrote:

> Much as i love this Customizer plugin, i'm facing the prospect of making a
> shadow tiddler modification that "will override the default version from
> the plugin $:/plugins/giffmex/BookToolsSidebarAddon
> <#m_-3621233079821350751_%24%3A%2Fplugins%2Fgiffmex%2FBookToolsSidebarAddon>"
> -so says the standard warning message- and before i venture off on that
> branch, i'd appreciate anything by way of sanity check and/or survival kit
> that this group might have to offer.
>
> Thing is: i'm using the "Glossary" feature in a way that may not be
> exactly as intended, but for my purpose, i need to add a "URL" field (for
> link to canonical source of definition) on the entry form that pops when
> you click the "+" button.  I've created a "GlossaryItemTemplate" tiddler
> tagged by the ViewTemplate such that it will display the extra fields in
> body of tiddlers tagged with "glossary", but only if the field is populated
> in the first place on creation.
>
> SO: I guess i need to modify the
> "$:/.giffmex/BookTools/buttons/newglossaryitem" tiddler to add a URL
> attribute on the button action (as in bold on the end 2nd line below):
> *<$button class="tc-btn-invisible">*
> *<$action-sendmessage $message="tm-new-tiddler" title="Term"
> tags="glossary" definition="" URL="" />*
> *{{$:/core/images/new-button}}*
> **
>
> ... But there's two things i'd like to know before i go and do that
> -essentially:
>
>1. Am i correct in my guess about the code i would need to change? and
>2. Is there anything like a best practice about making such changes to
>a plugin somebody else is maintaining, such that one's modifications can
>survive any future upgrade to the plugin?
>
> Yours, Walt
>
>
>
> On Friday, March 19, 2021 at 8:12:26 PM UTC David Gifford wrote:
>
>> heh heh, gotcha. I do mention it pretty early on in the walkthru video,
>> but I will update the description to make sure it says something. Part of
>> me would rather have that as a separate plugin, but it is really essential
>> to some of the possible user configurations of the tiddlers.
>>
>> On Friday, March 19, 2021 at 10:57:32 AM UTC-6 sreb...@gmail.com wrote:
>>
>>> Hi Dave,
>>>
>>> Installed the Customizer plugin and addons this morning
>>>
>>> Overall, great!
>>>
>>> The one issue I had (somewhat similar to ludwa6), is that I did not
>>> understand what happened to the icons in upper right of tiddler.
>>>
>>> Doublechecked that I checked the box for 'Edit Toolbar' in the Tiddler
>>> Customizer tab.
>>>
>>> Finally, I realized that you can see the icons if you hover your cursor
>>> over the place where you usually see them.
>>>
>>> Was very worried there for a while, that I must have done something
>>> wrong.
>>>
>>> You might want to make how this works explicit in your instructions.
>>>
>>> Best,
>>>
>>> Mark
>>>
>>>
>>>
>>> On Thursday, March 18, 2021 at 6:25:13 AM UTC-7 ludwa6 wrote:
>>>
 Thanks Dave -it's working now, and i'm lovin' it!  /walt

 On Thursday, March 18, 2021 at 1:12:02 PM UTC David Gifford wrote:

> Oops! Sorry Walt!
>
> I got the same thing. So apparently despite everyone's kind words and
> likes and retweets, you are the only one to have actually installed it!
>
> I had overlooked several tiddlers when I packaged the plugin. It
> should be good to go now!
>
> - Dave
>
>
>
>
> On Thu, Mar 18, 2021 at 6:40 AM ludwa6  wrote:
>
>> Video demo looks great, Dave -but on my machine, there's a problem
>> that renders the plugin essentially unusable: the icon for pulldown menu 
>> at
>> topLH corner of window does not appear -i can only find it by clicking
>> around blindly where i guess it should appear, based on the video demo- 
>> and
>> then when i do manage to find it, the dropdown menu renders right over 
>> top
>> of the story river content (left-justified), such that the two views are
>> rendering each other unreadable.
>>
>> I'm working with a fresh plugin just downloaded from the URL you
>> posted, and i've tried it on several different TW instances (including a
>> fresh copy downloaded from tiddlywiki.com) viewed thru 4 different
>> browsers: Chrome, Firefox, Safari and 

[tw5] Re: macro variable valuation

2021-04-06 Thread 'Mark S.' via TiddlyWiki


On Tuesday, April 6, 2021 at 8:57:15 AM UTC-7 jn.pierr...@gmail.com wrote:

> I tried the text widget thus:
>
> * DEMO: <$text text="""<>"""/>
> * MACRO: <$text text="""<$macrocall $name=demo {{!!dico}} 
> {{!!index}}/>"""/>
>
>>
>>>
You wrapped the arguments in strings, so now it interprets your input as 
strings.  The only time that wrapping things in strings gets rendered is if 
you use the wikify widget. So you might play with

<$wikify text="""<>""" name=rendered >
<$text text=<>/>


Note that wikify has a lot of options for output. So you might not even 
need the text widget if you render as text.

<$wikify text="""<>""" name=rendered 
output="text">
<>


 

-- 
You received this message because you are subscribed to the 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/fc1ac9ae-8932-490d-9a6c-d7ec7d2df9e6n%40googlegroups.com.


[tw5] Re: trigger a rerendering of a tiddler from a button.

2021-04-06 Thread History Buff
Hi Mohammad,

Thanks for the reply. It will take me some time to generate a sample wiki. 
In the meantime, here are some screenshots that better illustrate what I'm 
talking about.

This first one is the initial dynamic table with no search performed to 
filter the results (just showing the column with footnotes because my 
content is proprietary):

[image: DynamicTableUnfiltered.png]

Now here is the result of showfnotes with the unfiltered footnotes:

[image: showfnotes-unfiltered.png]

Now I perform a search to filter the results of the dynamic table (just as 
you did as an example). The footnotes are renumbered to start at 1:

[image: DynamicTableFiltered.png]

Here is the results of the showfnotes after filtering the dynamic table 
results. I have not closed and re-opened the details widget yet. You can 
see that the footnotes start with number 6 which is the unfiltered 
numbering. The output of the showfnotes shows only the filtered results, 
but they are not numbered correctly:

[image: showfnotes-filtered.png]

Finally, if I simply close the details widget and re-open, the showfnotes 
output is renumbered:

[image: showfnotes-filtered-details-reopened.png]

I know that you're using a css counter. I've tried inserted a counter reset 
with a stylesheet in various places, but it has made no difference so far.

Damon

On Tuesday, April 6, 2021 at 1:53:28 AM UTC-7 Mohammad wrote:

> Hi History Buff,
> If I understand your question well,  it is only related to showfnotes.
> You like showfnotes renumber the output based on the filtered list of 
> tiddlers (footnotes??)
>
> Would you please provide a minimum example wiki?
>
> --Mohammad
>
>
> On Tuesday, April 6, 2021 at 1:56:46 AM UTC+4:30 History Buff wrote:
>
>> So I have a situation where I thought the above would solve my problem, 
>> but I haven't been able to get there yet.
>>
>> I have a Shiraz Dynamic Table where one of the columns contains footnotes 
>> using Mohammad's Refnotes plugin. I also have it set up so that I can 
>> filter the content of the dynamic table with a search parameter. So far so 
>> good. The footnotes are numbered 1 through "x" and when I enter a search 
>> parameter, the results of the results are filtered and the footnotes get 
>> renumbered 1 through  "y" as expected.
>>
>> I also have the showfnotes macro below the dynamic table to list the 
>> footnotes. This works fine until I enter a search term and filter the 
>> table. Once filtered, the footnotes that are shown retain the pre-filter 
>> numbering unless I leave the tiddler and come back to it which then 
>> renumbers the footnotes being shown starting at 1 and now matches the 
>> filtered content. I can get similar behavior when I wrap the showfnotes 
>> macro in a details widget. If I close and then reopen the details widget, 
>> the footnotes shown get renumbered to match the filtered content. I would 
>> like to have the footnotes being listed by the showfnotes macro to 
>> automatically get renumbered when I filter the content of the above dynamic 
>> table. Wrapping the showfnotes macro in the set widget as mentioned above 
>> and setting the trigger to the current time using my search button doesn't 
>> do the trick. Any suggestions? Thanks in advance.
>>
>>
>> On Thursday, September 3, 2015 at 3:29:57 PM UTC-7 ma...@mklauber.com 
>> wrote:
>>
>>> Brilliant!  Always learning something new.  Never heard about the 
>>> $:/temp thing before.
>>> Thanks,
>>> Matt
>>>
>>>
>>> On Thursday, September 3, 2015 at 5:19:34 PM UTC-4, Eric Shulman wrote:

 On Thursday, September 3, 2015 at 12:52:02 PM UTC-7, Matthew Lauber 
 wrote:
>
> Hey All, I've got a unusual request.  I've created a list filter 
> 'shuffle' that randomizes the order of a list.  Each time it's rendered 
> the 
> list changes.  Combining this with a 'first' I can get a random subset of 
> the list (think choosing 10 random character names).  But unfortunately, 
> I 
> haven't been able to come up with a fully satisfactory way to refresh the 
> list.  Ideally, I'd like to be able to click a button and repaint the 
> tiddler, without it being treated as if the data changed (because it 
> hasn't)  I've gotten a button working with the following code, but every 
> time it's clicked, the tiddlywiki thinks it needs to be saved.  Can 
> anyone 
> think of a better way to handle things?
>
> <$button>
> <$action-sendmessage $message="tm-edit-tiddler" />
> <$action-sendmessage $message="tm-cancel-tiddler" $param="Draft of 
> 'Names'" />
> Refresh
> 
>

 One way to force a refresh of some content is to make it dependent on a 
 tiddler value by wrapping it inside a <$set>..., like this:
 <$set name="trigger" value={{$:/temp/trigger}}>
*** your content here ***
 

 Then, write a button that changes the $:/temp/trigger value, like this:
 <$button>
 <$action-setfield 

Re: [tw5] Re: Display tags in Tiddlers

2021-04-06 Thread Stefan Schlechter
Hello Anjar,

I've adapted your example to generate a list of all my Tiddlers + 
"published" field (= date):

<$list 
filter="A B C D E F G H I J K L M N O P Q R S T U V 
W"><><$list filter="[ 
sortan[]prefix]">   
<> <$view field="published" />  

Is there a way to get an output list with only one Tiddler-title per line?

Thanks for feedback
Stefan

Anjar schrieb am Montag, 5. April 2021 um 22:25:39 UTC+2:

> Hi,
>
> Absolutely, here is a quick example:
>
> <$list 
> filter="A B C D E F G H I J K L M N O P Q R S T U V 
> W"><><$list 
> filter="[tag[People]sort[title]prefix]"> <> 
> 
>
> The div is just to get three columns. The first list loops through all the 
> letters and print each letter (<>) as header. For each 
> letter, you use the same list as before, but add a filter to only keep 
> titles starting on (prefix) the given letter (note that we have to use 
>  inside filters)
>
> Best,
> Anders
>
> mandag 5. april 2021 kl. 21:11:35 UTC+2 skrev isd196...@gmail.com:
>
>> I have one final question, relating to the list function itself: Is it 
>> possible to split the list alphabetically? So that all people whose names 
>> begin with A, B, C etc, can be placed in separate lists, despite all being 
>> in the same Tag group?
>>
>> Many thanks
>>
>> JK
>>
>> On Sun, 4 Apr 2021 at 19:08, Jax Kovak  wrote:
>>
>>> Eric, thanks so much! I wasn't sure about the short form of the list tag 
>>> being used like that. Excellent! I have my list! Many thanks!
>>>
>>> Kind regards
>>>
>>> JK
>>>
>>>
>>> On Sun, 4 Apr 2021 at 18:09, Eric Shulman  wrote:
>>>
 On Sunday, April 4, 2021 at 9:46:38 AM UTC-7 isd196...@gmail.com wrote:

> Hey PMario, thanks for that, but I'm confused on how to use this. 
> Currently I can use 
> <$list filter="[tag[People]sort[title]]"/>
> to get a list of the People in the People Tag group, but I can't see 
> how to add the <> to it so that each item is listed as a Tag. 
> Could you clarify please?
>

 By ending the $list with /> you are using the "short-form" of the 
 widget which, by default, outputs the titles of the matching tiddlers, as 
 links.  To display other output (e.g., the title as a tag pill) you need 
 to 
 use the full <$list>... syntax, where the content is the <> 
 macro, like this:

 <$list filter="[tag[People]sort[title]]"> <> 

 Note that inside the body of the $list widget, the value of 
 currentTiddler is set to the title of each matching tiddler and the 
 <> 
 macro defaults to showing the "currentTiddler" as a tag pill.

 enjoy,
 -e

 -- 
 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/uAM0RDmpfrE/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/0882f2c6-49b1-49a2-87c0-e6f953e3599fn%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/9e0ad7d0-c3b8-4e95-b995-09d3aaea7aa6n%40googlegroups.com.


[tw5] Re: macro variable valuation

2021-04-06 Thread Jean-Pierre Rivière
I tried the text widget thus:

* DEMO: <$text text="""<>"""/>
* MACRO: <$text text="""<$macrocall $name=demo {{!!dico}} {{!!index}}/>"""/>

and I got:

   - DEMO: <>
   - MACRO: <$macrocall $name=demo {{!!dico}} {{!!index}}/>

I thought that the macrocall parameter were to interpretated before the 
actual calling of the widget (that's what I understood from Mark S.) and 
was awaiting for an other result for the MACRO line.

   - DEMO: <>
   - MACRO: <$macrocall $name=demo {{!!dico}} {{!!index}}/>



Le mardi 6 avril 2021 à 16:35:12 UTC+2, clutterstack a écrit :

>
> Hi, 
>
> You've troubleshot it pretty well yourself, and you've run into a big 
> difference between WikiText and the kind of programming you might be used 
> to. To quote the docs , "Macros are in 
> fact just parameterised variables". Things don't get evaluated everywhere 
> we put them; generally they get substituted, and only at particular points 
> do they get evaluated. It takes some adjustment to get used to.
>
> The way I look at it, it's not so much that  "{{!!dico}}" and 
> "{{!!index}}" are *not* wikified (evaluated) within the double square 
> bracket. It's more that TW *does* wikify the non-linked ones to render the 
> tiddler. 
>
> The *text* widget is a useful way of checking whether your macro outputs 
> something that TiddlyWiki will wikify into the result you want.
>
> Try
>
> <$text text=<> />
>
> to see what it really looks like when TiddlyWiki goes to wikify it for 
> rendering:
>
> space demo for "{{!!index}}" in "{{!!dico}}" [[{{!!dico}}]] (not 
> [[{{!!dico}}|{{!!index}}]])
>
> As you've noticed,  a text reference like that doesn't work inside the 
> double square brackets of the link shorthand. If you type that out into a 
> tiddler, you'll get the same result as if you run the macro. 
>
> The most obvious way I can think of to get the output you expect is to 
> write out the link widget:
>
> \define spaceDemo2(dico index)
> space demo for "$index$" in "$dico$" <$link to=$dico$/> (not 
> <$link to=$index$>$dico$)
> \end
>
> Best,
> Chris
> On Tuesday, April 6, 2021 at 9:19:36 AM UTC-4 jn.pierr...@gmail.com wrote:
>
>> I wanted to check if having space within a dictionary name or an index 
>> name was a go or a no-go for tw. So I wrote a macro to check it up (BTW, 
>> the answer is: no, it doesn't matter).
>>
>> OK, now for what I want to say here, the macro will only print its 
>> arguments as is and as a wiki link.
>>
>>
>> \define spaceDemo(dico index)
>> !!! space demo for "$index$" in "$dico$" [[$dico$]] (not 
>> [[$dico$|$index$]])
>> \end
>>
>> and now the invocation was
>>
>> <>
>> <>
>> <>
>> <>
>>
>> and I got what I thought I would get, like
>>
>> space demo for "ma citation" in "mon autre dico" mon autre dico (not mon 
>> autre dico)
>>
>> witg tge first link pointing to "mon autre dico" and the second to "ma 
>> citation".
>>
>> But then I added two fields within thi tidder calling the macro:
>> * a "dico" field containing "mon autre dico"
>> * an "index" field containing "ma citation"
>>
>> and I called the macro thus:
>>
>> <>
>>
>> and then, surprise!, I got:
>>
>> space demo for "ma citation" in "mon autre dico" {{!!dico}} (not 
>> {{!!dico}})
>>
>> with the first link to the litteral "{{!dico}}" and the second to 
>> "{{!!index}}".
>>
>> I would have thought the argument transmitted would have been interpreted 
>> before calling the macro. And why then this differences of treatment? What 
>> is the mechanism responsible of this?
>>
>> Practical interest, BTW: with" [[$arg$]]" you can see 
>> how really was written the argument "arg" when the macro was called.
>>
>> Regards,
>>
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the 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/96b76ce0-4e59-4d29-89f3-d6a89997ca71n%40googlegroups.com.


[tw5] Re: macro variable valuation

2021-04-06 Thread Jean-Pierre Rivière
Thank you Mark, this is most clear and straightforward.

So I've introduced an auxmacro to be sure what I get is what I want:

\define auxdemo(dico, index) <$macrocall $name=spacedemo dico=$dico$ 
index=$index$/>

ÇThat way, it will be easier to write my macro. No more ugly surprise. And 
yes it is usefull' because sometimes you cannot use the macrocall widget if 
one of your parameter needs to be a macrocall widget too! In fact, this and 
the impossibility to use a macro as parameter of a macro are annoying in 
the long run, a grammatical distraction from your programming goal to 
achieve one's useful purpose.


Le mardi 6 avril 2021 à 16:39:02 UTC+2, Mark S. a écrit :

> Macros with << >> syntax do simple text substitution. They look like 
> "functions", but they are really just text substituters (new word).
>
> Sometimes AFTER the substitution things will get rendered. So in your 
> expression
>
> !!! space demo for "$index$" in "$dico$" [[$dico$]] (not 
> [[$dico$|$index$]])
>
> only the first $dico$ gets rendered. That happens AFTER the substitution. 
> The second and 3rd $dico$ are inserted literally, because they are inside 
> more wikitext (the links).
>
> Widgets, on the other hand, convert parameters before handling them. So 
> you might get the result you expect with:
>
> <$macrocall $name=spaceDemo dico={{!!dico}} index={{!!index}} />
>
> On Tuesday, April 6, 2021 at 6:19:36 AM UTC-7 jn.pierr...@gmail.com wrote:
>
>> I wanted to check if having space within a dictionary name or an index 
>> name was a go or a no-go for tw. So I wrote a macro to check it up (BTW, 
>> the answer is: no, it doesn't matter).
>>
>> OK, now for what I want to say here, the macro will only print its 
>> arguments as is and as a wiki link.
>>
>>
>> \define spaceDemo(dico index)
>> !!! space demo for "$index$" in "$dico$" [[$dico$]] (not 
>> [[$dico$|$index$]])
>> \end
>>
>> and now the invocation was
>>
>> <>
>> <>
>> <>
>> <>
>>
>> and I got what I thought I would get, like
>>
>> space demo for "ma citation" in "mon autre dico" mon autre dico (not mon 
>> autre dico)
>>
>> witg tge first link pointing to "mon autre dico" and the second to "ma 
>> citation".
>>
>> But then I added two fields within thi tidder calling the macro:
>> * a "dico" field containing "mon autre dico"
>> * an "index" field containing "ma citation"
>>
>> and I called the macro thus:
>>
>> <>
>>
>> and then, surprise!, I got:
>>
>> space demo for "ma citation" in "mon autre dico" {{!!dico}} (not 
>> {{!!dico}})
>>
>> with the first link to the litteral "{{!dico}}" and the second to 
>> "{{!!index}}".
>>
>> I would have thought the argument transmitted would have been interpreted 
>> before calling the macro. And why then this differences of treatment? What 
>> is the mechanism responsible of this?
>>
>> Practical interest, BTW: with" [[$arg$]]" you can see 
>> how really was written the argument "arg" when the macro was called.
>>
>> Regards,
>>
>>
>>
>>
>>
>>
>>

-- 
You received this message because you are subscribed to the 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/e7107979-4a2e-4192-be4a-8add241acdb0n%40googlegroups.com.


[tw5] Re: raw transclude?

2021-04-06 Thread Jean-Pierre Rivière
Hi.

I'm not sure what is the purpose of the .example macro and then I failed to 
see how it could help me... Could you elaborate a little more?

Le mardi 6 avril 2021 à 16:32:20 UTC+2, PMario a écrit :

> Hi,
> The \define .example(n,eg,egvar:NO-SUCH-VAR) example macro may be what 
> you want.
> https://tiddlywiki.com/#%24%3A%2Feditions%2Ftw5.com%2Fdoc-macros
> -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/c82c30ce-59a9-4f90-a249-5bddfcd69827n%40googlegroups.com.


Re: [tw5] Re: [Presenting] (finally) the Customizer Plugin

2021-04-06 Thread ludwa6
Much as i love this Customizer plugin, i'm facing the prospect of making a 
shadow tiddler modification that "will override the default version from 
the plugin $:/plugins/giffmex/BookToolsSidebarAddon 
<#%24%3A%2Fplugins%2Fgiffmex%2FBookToolsSidebarAddon>" -so says the 
standard warning message- and before i venture off on that branch, i'd 
appreciate anything by way of sanity check and/or survival kit that this 
group might have to offer.

Thing is: i'm using the "Glossary" feature in a way that may not be exactly 
as intended, but for my purpose, i need to add a "URL" field (for link to 
canonical source of definition) on the entry form that pops when you click 
the "+" button.  I've created a "GlossaryItemTemplate" tiddler tagged by 
the ViewTemplate such that it will display the extra fields in body of 
tiddlers tagged with "glossary", but only if the field is populated in the 
first place on creation.

SO: I guess i need to modify the 
"$:/.giffmex/BookTools/buttons/newglossaryitem" tiddler to add a URL 
attribute on the button action (as in bold on the end 2nd line below):
*<$button class="tc-btn-invisible">*
*<$action-sendmessage $message="tm-new-tiddler" title="Term" 
tags="glossary" definition="" URL="" />*
*{{$:/core/images/new-button}}*
**

... But there's two things i'd like to know before i go and do that 
-essentially:

   1. Am i correct in my guess about the code i would need to change? and
   2. Is there anything like a best practice about making such changes to a 
   plugin somebody else is maintaining, such that one's modifications can 
   survive any future upgrade to the plugin?

Yours, Walt



On Friday, March 19, 2021 at 8:12:26 PM UTC David Gifford wrote:

> heh heh, gotcha. I do mention it pretty early on in the walkthru video, 
> but I will update the description to make sure it says something. Part of 
> me would rather have that as a separate plugin, but it is really essential 
> to some of the possible user configurations of the tiddlers.
>
> On Friday, March 19, 2021 at 10:57:32 AM UTC-6 sreb...@gmail.com wrote:
>
>> Hi Dave,
>>
>> Installed the Customizer plugin and addons this morning
>>
>> Overall, great!
>>
>> The one issue I had (somewhat similar to ludwa6), is that I did not 
>> understand what happened to the icons in upper right of tiddler. 
>>
>> Doublechecked that I checked the box for 'Edit Toolbar' in the Tiddler 
>> Customizer tab.
>>
>> Finally, I realized that you can see the icons if you hover your cursor 
>> over the place where you usually see them.
>>
>> Was very worried there for a while, that I must have done something wrong.
>>
>> You might want to make how this works explicit in your instructions.
>>
>> Best,
>>
>> Mark
>>
>>
>>
>> On Thursday, March 18, 2021 at 6:25:13 AM UTC-7 ludwa6 wrote:
>>
>>> Thanks Dave -it's working now, and i'm lovin' it!  /walt
>>>
>>> On Thursday, March 18, 2021 at 1:12:02 PM UTC David Gifford wrote:
>>>
 Oops! Sorry Walt!

 I got the same thing. So apparently despite everyone's kind words and 
 likes and retweets, you are the only one to have actually installed it!

 I had overlooked several tiddlers when I packaged the plugin. It should 
 be good to go now!

 - Dave




 On Thu, Mar 18, 2021 at 6:40 AM ludwa6  wrote:

> Video demo looks great, Dave -but on my machine, there's a problem 
> that renders the plugin essentially unusable: the icon for pulldown menu 
> at 
> topLH corner of window does not appear -i can only find it by clicking 
> around blindly where i guess it should appear, based on the video demo- 
> and 
> then when i do manage to find it, the dropdown menu renders right over 
> top 
> of the story river content (left-justified), such that the two views are 
> rendering each other unreadable.
>
> I'm working with a fresh plugin just downloaded from the URL you 
> posted, and i've tried it on several different TW instances (including a 
> fresh copy downloaded from tiddlywiki.com) viewed thru 4 different 
> browsers: Chrome, Firefox, Safari and TiddlyDesktop -most current version 
> of each one on Mac 10.13.6 (High Sierra).  I wonder if anyone else has 
> experienced this problem? I hope it's an easy one to sort, because i'm 
> very 
> keen to enjoy the superpowers of this plugin!
>
> /walt
>
> On Tuesday, March 16, 2021 at 9:50:33 PM UTC David Gifford wrote:
>
>>
>> Hi everyone
>>
>> The Customizer plugin is finally available! Find it at 
>> https://giffmex.org/gifts/Customizer/customizer.html. It replaces 
>> earlier experiments called CleanTids and Toggle. It is a plugin to help 
>> you 
>> customize tiddlers and the sidebar in numerous ways. There are also 
>> custom 
>> sidebar elements and viewtemplate elements to add on to the plugin, and 
>> instructions on how to make your own addons.
>>
>> 

[tw5] Re: macro variable valuation

2021-04-06 Thread 'Mark S.' via TiddlyWiki
Macros with << >> syntax do simple text substitution. They look like 
"functions", but they are really just text substituters (new word).

Sometimes AFTER the substitution things will get rendered. So in your 
expression

!!! space demo for "$index$" in "$dico$" [[$dico$]] (not [[$dico$|$index$]])

only the first $dico$ gets rendered. That happens AFTER the substitution. 
The second and 3rd $dico$ are inserted literally, because they are inside 
more wikitext (the links).

Widgets, on the other hand, convert parameters before handling them. So you 
might get the result you expect with:

<$macrocall $name=spaceDemo dico={{!!dico}} index={{!!index}} />

On Tuesday, April 6, 2021 at 6:19:36 AM UTC-7 jn.pierr...@gmail.com wrote:

> I wanted to check if having space within a dictionary name or an index 
> name was a go or a no-go for tw. So I wrote a macro to check it up (BTW, 
> the answer is: no, it doesn't matter).
>
> OK, now for what I want to say here, the macro will only print its 
> arguments as is and as a wiki link.
>
>
> \define spaceDemo(dico index)
> !!! space demo for "$index$" in "$dico$" [[$dico$]] (not 
> [[$dico$|$index$]])
> \end
>
> and now the invocation was
>
> <>
> <>
> <>
> <>
>
> and I got what I thought I would get, like
>
> space demo for "ma citation" in "mon autre dico" mon autre dico (not mon 
> autre dico)
>
> witg tge first link pointing to "mon autre dico" and the second to "ma 
> citation".
>
> But then I added two fields within thi tidder calling the macro:
> * a "dico" field containing "mon autre dico"
> * an "index" field containing "ma citation"
>
> and I called the macro thus:
>
> <>
>
> and then, surprise!, I got:
>
> space demo for "ma citation" in "mon autre dico" {{!!dico}} (not 
> {{!!dico}})
>
> with the first link to the litteral "{{!dico}}" and the second to 
> "{{!!index}}".
>
> I would have thought the argument transmitted would have been interpreted 
> before calling the macro. And why then this differences of treatment? What 
> is the mechanism responsible of this?
>
> Practical interest, BTW: with" [[$arg$]]" you can see 
> how really was written the argument "arg" when the macro was called.
>
> Regards,
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the 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/1d825cb2-18b7-46e7-8069-3a3186604d6an%40googlegroups.com.


[tw5] Re: macro variable valuation

2021-04-06 Thread clutterstack

Hi, 

You've troubleshot it pretty well yourself, and you've run into a big 
difference between WikiText and the kind of programming you might be used 
to. To quote the docs , "Macros are in fact 
just parameterised variables". Things don't get evaluated everywhere we put 
them; generally they get substituted, and only at particular points do they 
get evaluated. It takes some adjustment to get used to.

The way I look at it, it's not so much that  "{{!!dico}}" and "{{!!index}}" 
are *not* wikified (evaluated) within the double square bracket. It's more 
that TW *does* wikify the non-linked ones to render the tiddler. 

The *text* widget is a useful way of checking whether your macro outputs 
something that TiddlyWiki will wikify into the result you want.

Try

<$text text=<> />

to see what it really looks like when TiddlyWiki goes to wikify it for 
rendering:

space demo for "{{!!index}}" in "{{!!dico}}" [[{{!!dico}}]] (not 
[[{{!!dico}}|{{!!index}}]])

As you've noticed,  a text reference like that doesn't work inside the 
double square brackets of the link shorthand. If you type that out into a 
tiddler, you'll get the same result as if you run the macro. 

The most obvious way I can think of to get the output you expect is to 
write out the link widget:

\define spaceDemo2(dico index)
space demo for "$index$" in "$dico$" <$link to=$dico$/> (not 
<$link to=$index$>$dico$)
\end

Best,
Chris
On Tuesday, April 6, 2021 at 9:19:36 AM UTC-4 jn.pierr...@gmail.com wrote:

> I wanted to check if having space within a dictionary name or an index 
> name was a go or a no-go for tw. So I wrote a macro to check it up (BTW, 
> the answer is: no, it doesn't matter).
>
> OK, now for what I want to say here, the macro will only print its 
> arguments as is and as a wiki link.
>
>
> \define spaceDemo(dico index)
> !!! space demo for "$index$" in "$dico$" [[$dico$]] (not 
> [[$dico$|$index$]])
> \end
>
> and now the invocation was
>
> <>
> <>
> <>
> <>
>
> and I got what I thought I would get, like
>
> space demo for "ma citation" in "mon autre dico" mon autre dico (not mon 
> autre dico)
>
> witg tge first link pointing to "mon autre dico" and the second to "ma 
> citation".
>
> But then I added two fields within thi tidder calling the macro:
> * a "dico" field containing "mon autre dico"
> * an "index" field containing "ma citation"
>
> and I called the macro thus:
>
> <>
>
> and then, surprise!, I got:
>
> space demo for "ma citation" in "mon autre dico" {{!!dico}} (not 
> {{!!dico}})
>
> with the first link to the litteral "{{!dico}}" and the second to 
> "{{!!index}}".
>
> I would have thought the argument transmitted would have been interpreted 
> before calling the macro. And why then this differences of treatment? What 
> is the mechanism responsible of this?
>
> Practical interest, BTW: with" [[$arg$]]" you can see 
> how really was written the argument "arg" when the macro was called.
>
> Regards,
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the 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/ef0e765c-e9c5-4565-b35b-03a45ccf8cc8n%40googlegroups.com.


[tw5] Re: raw transclude?

2021-04-06 Thread PMario
Hi,
The \define .example(n,eg,egvar:NO-SUCH-VAR) example macro may be what you 
want.
https://tiddlywiki.com/#%24%3A%2Feditions%2Ftw5.com%2Fdoc-macros
-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/31bee4a5-a000-4d6c-817c-a9b57fd53c1cn%40googlegroups.com.


[tw5] raw transclude?

2021-04-06 Thread Jean-Pierre Rivière
As I am writing some technical notes about programming in tiddlywiki, it 
occured to me that it would be cool to have a tiddler with code (not 
necessarily a macro, just a bit of tw code and not javarscript (although 
perhaps also js)) and to use that tiddler to display raw code and to 
executee it.

Alas, the transclusion mechanism doesn't do for it. Perhaps it should be 
added as a parameter to the tiddler widget too.

What I'd like is to have:

<$transclude mode=raw tiddler=mycode/>

which would transclude mycode as if it was set to text instead of tw5 type.

complete use case below:

|code|results|h
|<$transclude mode=raw tiddler=mycode/>|<$transclude tiddler=mycode/>|
|<$transclude mode=raw tiddler=myothercode/>|<$transclude 
tiddler=myothercode/>|

What do you think about it?

Regards.

-- 
You received this message because you are subscribed to the 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/42f3d90c-127f-4116-830f-896c2401d44fn%40googlegroups.com.


[tw5] macro variable valuation

2021-04-06 Thread Jean-Pierre Rivière
I wanted to check if having space within a dictionary name or an index name 
was a go or a no-go for tw. So I wrote a macro to check it up (BTW, the 
answer is: no, it doesn't matter).

OK, now for what I want to say here, the macro will only print its 
arguments as is and as a wiki link.


\define spaceDemo(dico index)
!!! space demo for "$index$" in "$dico$" [[$dico$]] (not [[$dico$|$index$]])
\end

and now the invocation was

<>
<>
<>
<>

and I got what I thought I would get, like

space demo for "ma citation" in "mon autre dico" mon autre dico (not mon 
autre dico)

witg tge first link pointing to "mon autre dico" and the second to "ma 
citation".

But then I added two fields within thi tidder calling the macro:
* a "dico" field containing "mon autre dico"
* an "index" field containing "ma citation"

and I called the macro thus:

<>

and then, surprise!, I got:

space demo for "ma citation" in "mon autre dico" {{!!dico}} (not {{!!dico}})

with the first link to the litteral "{{!dico}}" and the second to 
"{{!!index}}".

I would have thought the argument transmitted would have been interpreted 
before calling the macro. And why then this differences of treatment? What 
is the mechanism responsible of this?

Practical interest, BTW: with" [[$arg$]]" you can see 
how really was written the argument "arg" when the macro was called.

Regards,






-- 
You received this message because you are subscribed to the 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/292ba612-329a-4ff0-9311-9da6d9dc86b0n%40googlegroups.com.


[tw5] Re: video embedded in modal - how to call with link instead of button?

2021-04-06 Thread Sapphireslinger
Dear Eric,

Your code works great.

But it only works for me if each of my tiddlers tagged with FooVideo has 
this pasted directly in it: 



*The moment I try to automate that* by putting 

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



 in a tiddler tagged $:/tags/ViewTemplate ... then every tiddler (tagged 
with both FooVideo and video, by the way) still  has the correct video 
displayed, but when I click on the list of contents your code gives me, *the 
modals pop up empty now*.

May I ask if you would happen to know why?
On Sunday, April 4, 2021 at 5:30:33 PM UTC+8 Sapphireslinger wrote:

> Thank you very much!
>
> On Tuesday, March 30, 2021 at 3:09:04 PM UTC+8 Eric Shulman wrote:
>
>> On Monday, March 29, 2021 at 11:47:06 PM UTC-7 Sapphireslinger wrote:
>>
>>> *Problem 1: How to get "1. Introduction" to display as a link not a 
>>> button?*
>>> *Problem 2: How to call all FooVideos with a list filter where clicking 
>>> a link (of the caption) opens it in the tm-modal? *
>>>
>>  
>> <$list filter="[tag[FooVideo]sort[title]]">
>><$button class="tc-btn-invisible tc-tiddlylink" message="tm-modal" 
>> param=<>>
>>   <$text text={{!!caption}}/>
>>
>> 
>>
>> Notes:
>> 1) Removed trailing / from <$list> widget (use matching /$list widget 
>> instead)
>> 2) Use class=" tc-btn-invisible tc-tiddlylink" to make the button appear 
>> as clickable link instead of a button
>> 3) Variables used as parameter values need doubled angled brackets (i.e., 
>> <>)
>> 4) Use $text widget to display caption (avoids unwanted links if there is 
>> any CamelCase in caption text)
>>
>> 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/96ab59a7-a4f4-4166-8ff9-954890b80827n%40googlegroups.com.


[tw5] Re: Is this out to lunch? Using a "Data Entry" tiddler as a transclude template

2021-04-06 Thread Jean-Pierre Rivière
Interesting possibilities. But could you please tell me how you get that 
toolbar for your tiddler-in-edit-mode?

I have hacked a bit an earlier work (not mine!) to have a spreadsheet 
within a tiddler (I just added support for dictionaries+index instead of 
just fields -- that needs an external data sheet but it's more user 
friendly (for me at least). It could get further. I am pretty rooky about 
template tiddlers.

Le dimanche 4 avril 2021 à 23:51:57 UTC+2, cj.v...@gmail.com a écrit :

> Arg, I just fixed a wee problem with empty rows and empty columns not 
> showing in transclusion of data tiddler.
>
> An empty row/column makes for a space between cells of content.
>
> So TestTiddlerDataTransclusion snapshot replaced by this attached one.
>
> On Sunday, April 4, 2021 at 5:28:42 PM UTC-3 Charlie Veniot wrote:
>
>> G'day all,
>>
>> As I plug away at the TiddlySheets idea brewing in me old sponge (related 
>> thread ) ...
>>
>> A few definitions first:
>>
>>- "*Sheets Editor*" is a tiddler to create and edit "Sheets."  Think 
>>of "Sheets Editor" as analogous to the Google Sheets App (or to, ugh, MS 
>>Excel): it has all of the smarts to enter content and layout/format the 
>>content
>>- Any "*Sheet*" tiddler is a data tiddler, containing everything 
>>(content info, layout info, meta data, etc.), analogous to a Google Sheet 
>>Document (or an Excel document/file)
>>
>> *(Refer to attached screenshots.)*
>>
>> I wondered: how would I go about displaying any sheet in any other 
>> tiddler (whether in the story river, or sidebar, or anywhere else)?
>>
>> And how do I show that content with the layout setup via the Sheets 
>> Editor ? And how do I go about that without duplicating all of the smarts 
>> in the Sheets Editor?
>>
>> Solution: modify the Sheet Editor tiddler so that it can fulfill two 
>> roles: 
>>
>>- "Editor" of data tiddlers
>>- Display template for transclusion of those data tiddlers
>>
>> Because I am so "transclusion-minded", that immediately feels like the 
>> right way to go for me.  How would you go about it? 
>>
>> Cheers !
>>
>

-- 
You received this message because you are subscribed to the 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/525fb7db-d197-4a1a-8be4-2f2ffa3916fdn%40googlegroups.com.


Re: [tw5] Re: Display tags in Tiddlers

2021-04-06 Thread Jax Kovak
Wow! Thanks very much Anjar. I was intending to have different tiddlers for
different letters but this works even better and lets me see all of the
names in a single Tiddler AND keeps them nice and tidy!

Excellent work!

Kind regards

JK


On Mon, 5 Apr 2021 at 21:25, Anjar  wrote:

> Hi,
>
> Absolutely, here is a quick example:
>
> <$list
> filter="A B C D E F G H I J K L M N O P Q R S T U V
> W"><><$list
> filter="[tag[People]sort[title]prefix]"> <>
> 
>
> The div is just to get three columns. The first list loops through all the
> letters and print each letter (<>) as header. For each
> letter, you use the same list as before, but add a filter to only keep
> titles starting on (prefix) the given letter (note that we have to use
>  inside filters)
>
> Best,
> Anders
>
> mandag 5. april 2021 kl. 21:11:35 UTC+2 skrev isd196...@gmail.com:
>
>> I have one final question, relating to the list function itself: Is it
>> possible to split the list alphabetically? So that all people whose names
>> begin with A, B, C etc, can be placed in separate lists, despite all being
>> in the same Tag group?
>>
>> Many thanks
>>
>> JK
>>
>> On Sun, 4 Apr 2021 at 19:08, Jax Kovak  wrote:
>>
>>> Eric, thanks so much! I wasn't sure about the short form of the list tag
>>> being used like that. Excellent! I have my list! Many thanks!
>>>
>>> Kind regards
>>>
>>> JK
>>>
>>>
>>> On Sun, 4 Apr 2021 at 18:09, Eric Shulman  wrote:
>>>
 On Sunday, April 4, 2021 at 9:46:38 AM UTC-7 isd196...@gmail.com wrote:

> Hey PMario, thanks for that, but I'm confused on how to use this.
> Currently I can use
> <$list filter="[tag[People]sort[title]]"/>
> to get a list of the People in the People Tag group, but I can't see
> how to add the <> to it so that each item is listed as a Tag.
> Could you clarify please?
>

 By ending the $list with /> you are using the "short-form" of the
 widget which, by default, outputs the titles of the matching tiddlers, as
 links.  To display other output (e.g., the title as a tag pill) you need to
 use the full <$list>... syntax, where the content is the <>
 macro, like this:

 <$list filter="[tag[People]sort[title]]"> <> 

 Note that inside the body of the $list widget, the value of
 currentTiddler is set to the title of each matching tiddler and the <>
 macro defaults to showing the "currentTiddler" as a tag pill.

 enjoy,
 -e

 --
 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/uAM0RDmpfrE/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/0882f2c6-49b1-49a2-87c0-e6f953e3599fn%40googlegroups.com
 
 .

>>> --
> 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/uAM0RDmpfrE/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/84370da8-1ee0-4ad1-b818-5d08c981d733n%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/CAFm1UBNoAf4b82vOTbAxW%2BPugnyBJfXjELqcJwTwQ9wBT8e09w%40mail.gmail.com.


[tw5] Re: trigger a rerendering of a tiddler from a button.

2021-04-06 Thread Mohammad
Hi History Buff,
If I understand your question well,  it is only related to showfnotes.
You like showfnotes renumber the output based on the filtered list of 
tiddlers (footnotes??)

Would you please provide a minimum example wiki?

--Mohammad


On Tuesday, April 6, 2021 at 1:56:46 AM UTC+4:30 History Buff wrote:

> So I have a situation where I thought the above would solve my problem, 
> but I haven't been able to get there yet.
>
> I have a Shiraz Dynamic Table where one of the columns contains footnotes 
> using Mohammad's Refnotes plugin. I also have it set up so that I can 
> filter the content of the dynamic table with a search parameter. So far so 
> good. The footnotes are numbered 1 through "x" and when I enter a search 
> parameter, the results of the results are filtered and the footnotes get 
> renumbered 1 through  "y" as expected.
>
> I also have the showfnotes macro below the dynamic table to list the 
> footnotes. This works fine until I enter a search term and filter the 
> table. Once filtered, the footnotes that are shown retain the pre-filter 
> numbering unless I leave the tiddler and come back to it which then 
> renumbers the footnotes being shown starting at 1 and now matches the 
> filtered content. I can get similar behavior when I wrap the showfnotes 
> macro in a details widget. If I close and then reopen the details widget, 
> the footnotes shown get renumbered to match the filtered content. I would 
> like to have the footnotes being listed by the showfnotes macro to 
> automatically get renumbered when I filter the content of the above dynamic 
> table. Wrapping the showfnotes macro in the set widget as mentioned above 
> and setting the trigger to the current time using my search button doesn't 
> do the trick. Any suggestions? Thanks in advance.
>
>
> On Thursday, September 3, 2015 at 3:29:57 PM UTC-7 ma...@mklauber.com 
> wrote:
>
>> Brilliant!  Always learning something new.  Never heard about the $:/temp 
>> thing before.
>> Thanks,
>> Matt
>>
>>
>> On Thursday, September 3, 2015 at 5:19:34 PM UTC-4, Eric Shulman wrote:
>>>
>>> On Thursday, September 3, 2015 at 12:52:02 PM UTC-7, Matthew Lauber 
>>> wrote:

 Hey All, I've got a unusual request.  I've created a list filter 
 'shuffle' that randomizes the order of a list.  Each time it's rendered 
 the 
 list changes.  Combining this with a 'first' I can get a random subset of 
 the list (think choosing 10 random character names).  But unfortunately, I 
 haven't been able to come up with a fully satisfactory way to refresh the 
 list.  Ideally, I'd like to be able to click a button and repaint the 
 tiddler, without it being treated as if the data changed (because it 
 hasn't)  I've gotten a button working with the following code, but every 
 time it's clicked, the tiddlywiki thinks it needs to be saved.  Can anyone 
 think of a better way to handle things?

 <$button>
 <$action-sendmessage $message="tm-edit-tiddler" />
 <$action-sendmessage $message="tm-cancel-tiddler" $param="Draft of 
 'Names'" />
 Refresh
 

>>>
>>> One way to force a refresh of some content is to make it dependent on a 
>>> tiddler value by wrapping it inside a <$set>..., like this:
>>> <$set name="trigger" value={{$:/temp/trigger}}>
>>>*** your content here ***
>>> 
>>>
>>> Then, write a button that changes the $:/temp/trigger value, like this:
>>> <$button>
>>> <$action-setfield $tiddler="$:/temp/trigger" $value=<
>>> >/>
>>> refresh trigger
>>> 
>>>
>>> By setting the trigger text to the current time, the value of the 
>>> trigger changes each time you press the button.  This, in turn, triggers 
>>> the refresh of the dependent content.  Note that, by using $:/temp/... to 
>>> store the trigger, it will avoid marking the document as "dirty" (in need 
>>> of saving).
>>>
>>> enjoy,
>>> -e
>>> Eric Shulman
>>> ELS Design Studios
>>> TiddlyTools - "Small Tools for Big Ideas!"
>>> InsideTiddlyWiki: The Missing Manuals
>>>
>>> YOUR DONATIONS ARE VERY IMPORTANT!
>>> HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
>>>http://TiddlyTools.github.com/fundraising.html#MakeADonation
>>>
>>> Professional TiddlyWiki Consulting Services...
>>> Analysis, Design, and Custom Solutions:
>>>http://www.TiddlyTools.com/#Contact
>>>
>>

-- 
You received this message because you are subscribed to the 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/8e84ab3d-f0d7-4989-9e4e-60d8233de107n%40googlegroups.com.


Re: [tw5] Re: CSS help

2021-04-06 Thread Mohammad Rahmani
On Tue, Apr 6, 2021 at 2:28 AM Rika Sukenik  wrote:

> Thanks, Mohammad. I didn't know about the Utility plugin. I like Reader
> mode a lot! I'll have to explore the other features too. Thanks for the tip!
>

Hi Rika,
 Glad you like it. Utility plugin has a lot of features! You can customize
the reader mode as you like!
 So you need to play with it and later on you should be able to hack as you
like!

Best wishes
Mohammad



> On Friday, April 2, 2021 at 12:43:34 AM UTC-7 Mohammad wrote:
>
>> Rika,
>>  Have you tried the Utility plugin? It has author/reader mode. You can
>> open the model windows when you can set reader mode and many controls will
>> hide then!
>>  https://kookma.github.io/TW-Utility/
>>
>> ctrl+alt+a brings you the modal window to activate reader/autor mode.
>> ctrl+s save wiki
>>
>> Best wishes
>> Mohammad
>>
>>
>> On Fri, Apr 2, 2021 at 4:38 AM Rika Sukenik  wrote:
>>
>>> Joshua and Mat, thanks for your feedback! I'm not a developer, just a
>>> tinkerer. Public sidebar was the first plugin I found that allowed me to
>>> hide page controls and other settings that just confused people who read my
>>> tiddlywiki. It's strange for someone to think (even though not actually
>>> do!) that they can make edits to my website. Mat, thanks for putting the
>>> plugin out there!
>>>
>>> I have noticed that it's hard to target specific elements. I'll think
>>> some more about Joshua's feedback.
>>>
>>> Joshua - if you have time to respond to Mat, that would be super
>>> helpful. Like I said, I'm not a developer, so getting some more guidance on
>>> how best to style the Public menu bar will be immensely helpful and save me
>>> a lot of time!
>>>
>>> Best,
>>> Rika Sukenik
>>>
>>>
>>> On Wed, Mar 31, 2021 at 10:04 PM Mat  wrote:
>>>
 Hi rika. That's an old creation I had forgotten about, happy to see
 someone use it.
 I don't have time today but will take a look in these coming days.

 But you should probably not(!) listen to Joshua in this particular
 case! ;-) @Joshua- I don't remember details at this moment but the reason
 for putting the styleblock in the listwidget is to use it conditionally.
 Note that the listwidget only outputs one thing so it is just binary. ...Or
 maybe your description here is some other clever solution for triggering
 the styles based on url, that I don't understand?

 <:-)
 On Thursday, April 1, 2021 at 1:11:54 AM UTC+2 rika.s...@gmail.com
 wrote:

> I'm using the Public Sidebar plugin (
> http://publicsidebar.tiddlyspot.com/) which is fantastic, but I can't
> get the margins right.
>
> Can someone please so kindly take a look at my website and help with
> the margins? I'd also like to fix the issue with text expanding past the
> screen. Much appreciated!!
>
> Here's the code I currently have:
> <$set name="loc" value=<>>
> <$list filter="[]+[prefix[www.rikasukenik.com]]">
> 
> .tc-sidebar-scrollable{visibility:visible;}
> .tc-page-controls {display:none;}
> .tc-sidebar-lists{visibility:hidden; display:inline; height: 100px;}
> .tc-search{visibility:visible;}
> .tc-search-results{visibility:visible;}
> .public {visibility:visible;}
>
> 
> 
> 
>
 --
 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/-8VyVkwsmHI/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/32825b75-e635-4a17-9db6-cc130e9df1c8n%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+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/tiddlywiki/CALSoQA3qMd5f%3Dp41yUDg0bdZ9dEx%3DAWkwAZYUp9cRXpFumE%2BJg%40mail.gmail.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/67ad0536-071f-4ce6-8b77-dc5d570f461dn%40googlegroups.com
> 

[tw5] Re: Resize or collapse SideBar on certain actions

2021-04-06 Thread Anomaly Spy
Charlie, 

Much appreciate you taking time to explain the code. Now I understand what 
is in "DynamicSidebarWidth 

 
And indeed I have some reading to do about TiddlyWiki

Regards,
On Tuesday, April 6, 2021 at 2:13:08 AM UTC+2 cj.v...@gmail.com wrote:

> Yeah, you have a little bit of reading to do over a 
> https://tiddlywiki.com/.  
>
> For now, I hope I made it modular enough that you can easily alter it for 
> your purposes.
>
> If helpful, here are a few notes (quick, dirty, likely deserving of much 
> better explanation):
> *(note:  I've modified my local copy, reducing to one "vars" widget ... I 
> originally had two lines to make testing/debugging a little easier.)*
>
> *<$vars vCurrentTab= {{{ 
> [all[tiddlers]regexp[state/tab/sidebar]get[text]removeprefix[$:/core/ui/SideBar/]]
>  
> }}}>*
>
>- VarsWidget 
>- I could have used a  SetWidget, but I prefer the VarsWidget for some 
>   strange reason.
>- Filters  and Filter Operators
>   - This is what I call the programming language of TiddlyWiki.  It 
>   is powerful stuff.  It may be hard to wrap one's mind  around it.  
> Until 
>   something just clicks, and it all makes sense.
>- The triple curly brackets *(i.e. {{{ }}} )* say "hey,  this is a 
>filter, run it, give me the result"
>
> *<$list filter="[match[Open]then[40%]] 
> [match[Recent]then[35%]] +[else[25%]]">*
>
>- ListWidget 
>   - [match[Open]then[40%]] says: hey, if the tiddler 
>   specified by vCurrentTab="Open", then return "40%", otherwise return 
> nothing
>   - [match[Recent]then[35%]] says: hey, if the tiddler 
>   specified by vCurrentTab="Recent", then return "35%", otherwise return 
>   nothing
>   - Each of the two above are independent filters, results of which 
>   are a combined list of results, which will always result in either one 
> or 
>   no items
>   - +[else[25%]] says: hey, for everything before me amounts to 
>   nothing (i.e. is there one or more values results in false), then 
> return 
>   "25%"
>
> *{{!!title}}*
>
>- Transclusion 
>   - {{!!title}} says:  hey, return the value of the field "title" for 
>   the current tiddler
>  - "!!" is the separator between tiddler name and field name
>  - when tiddler name is not specified, then "current tiddler" is 
>  assumed
> - "current tiddler" is the current value being processed by 
> the <$list> ...  loop cycle  
>  
>
> **
>
>- for every value (each one treated as if it is a tiddler) returned by 
>the filter, that value is considered "current tiddler" by the processing 
>between <$list> and  
>- so <$list> ...  is a loop
>
>
> **
>
>- Everything between "<$vars> and  can refer to the variable 
>vCurrentTab, by "<>" outside of filters, and by 
>"" inside filters
>
>
> On Monday, April 5, 2021 at 7:42:41 PM UTC-3 Anomaly Spy wrote:
>
>> Hi Charlie,
>>
>> Though I don't understand the code snippet in the tiddler 
>> "DynamicSidebarWidth", I understand the concept and am able to do minimal 
>> modifications to serve my purpose. Thank you!
>>
>> Cheers!
>>
>> On Monday, April 5, 2021 at 7:28:41 PM UTC+2 cj.v...@gmail.com wrote:
>>
>>> You'll find my approach (instructions and working sample) in my TiddlyWiki 
>>> Programming  
>>> TiddlyWiki's Setting Up Dynamic Sidebar Width 
>>> 
>>>  
>>> tiddler.
>>>
>>> That was actually a lot of fun.  It involved searching system tiddlers, 
>>> and I can't help but enjoy digging into the weeds.
>>>
>>> Cheers !
>>>
>>> On Monday, April 5, 2021 at 10:06:56 AM UTC-3 Anomaly Spy wrote:
>>>
 Hello TiddlyWiki contributors, experts and users,

 I am an old school (manual) test engineer by profession, who recently 
 stumbled into TiddlyWiki. Forced by the nature of my profession, I have 
 been tinkering with it for a few days now, before starting to use it for a 
 purpose :-) I am a bit familiar to programming, but a stranger to 
 Javascript, HTML or CSS.

 Before getting into my first request/question, I want to join the 
 multitude of users who are thankful to Jeremy for this creation and 
 various 
 additions that make it more useful.

 My request / question: Can I resize the SideBar based on certain 
 actions? For example, when I click "Recent" in Sidebar, it should have 
 300px width . When I click tools the SideBar should resize to 600px px, 
 all 
 others should use default width. Can this be done? If yes, how?

 Regards,

[tw5] Re: CSS help

2021-04-06 Thread Mat
@rika

So, I'm looking into this now. What exactly is it you need help with - 
because you did change some things from your initial post here. On your 
site, I note that the left edge of the search field is cut off... but then 
you did set .tc-search to margin-left:-42px so that is to be expected. If 
you just want a less wide search field, you could instead try with: 

input[type="search"].tc-popup-handle {width: 100px;}

<:-)

On Thursday, April 1, 2021 at 1:11:54 AM UTC+2 rika.s...@gmail.com wrote:

> I'm using the Public Sidebar plugin (http://publicsidebar.tiddlyspot.com/) 
> which is fantastic, but I can't get the margins right. 
>
> Can someone please so kindly take a look at my website and help with the 
> margins? I'd also like to fix the issue with text expanding past the 
> screen. Much appreciated!!
>
> Here's the code I currently have:
> <$set name="loc" value=<>>
> <$list filter="[]+[prefix[www.rikasukenik.com]]">
> 
> .tc-sidebar-scrollable{visibility:visible;}
> .tc-page-controls {display:none;}
> .tc-sidebar-lists{visibility:hidden; display:inline; height: 100px;}
> .tc-search{visibility:visible;}
> .tc-search-results{visibility:visible;}
> .public {visibility:visible;}
>
> 
> 
>  
>

-- 
You received this message because you are subscribed to the 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/c4f7ca1b-bd78-4ce7-b638-ad6bd02b4279n%40googlegroups.com.