[tw5] Re: Tentative project on deck: ASCII Art Anywhere Machine

2022-04-15 Thread Charlie Veniot
Early prototype version of ASCII Art Anywhere Machine 
,
 
as I figure out architectural stuff.

Good time to check it out while there are only a few tiddlers involved.

On Monday, April 11, 2022 at 10:05:25 PM UTC-3 Charlie Veniot wrote:

> Kind of like BASIC Anywhere Machine 
> , but for ASCII Art.  All 
> built on, of course, TiddlyWiki.
>
> A TiddlyWiki to host the ASCII Drawing engine, a BASIC Anywhere Machine 
> program.
>
> Try out the ASCII Draw program 
> 
> .
>
> The ASCII Draw program keeps 1 drawing in local storage.  Go into that web 
> page, draw a little, close down the web page, and your drawing will be 
> there for you again next time you go to the web page.  (Unless you tell the 
> program you want to start a new drawing.
>
> Instead of setting up the program to store multiple drawings in local 
> storage (I'm no fan of local storage except for temporary storage), I'll be 
> creating ASCII Art Anywhere Machine to host ASCII Draw (like an IDE for 
> drawing), and also store the drawings.  Local storage acting as the 
> communication interface between the BASIC program and the host TiddlyWiki.
>
> The TiddlyWiki, as the "file manager" for the drawings, will be like a 
> digital art gallery, to display the art in various ways, including 
> slideshows.
>
> And now I'm thinking ASCII Art animation.  Cool.
>
> Too many interests, not enough hours in a day...
>

-- 
You received this message because you 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/85560e3d-5093-4acf-aa98-595808b76738n%40googlegroups.com.


[tw5] Relink: a reminder: taking advantage of it in your tiddler content

2022-04-15 Thread Charlie Veniot
Just a nice way to figure out what tiddlers reference some tiddler.  Filter 
:

```
[relink:references!title[$:/StoryList]!prefix[$:/temp/]sort[title]]
```

So kind of like backlinks +.

-- 
You received this message because you 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/bf84ed5e-1406-4946-af75-6ce99b294352n%40googlegroups.com.


[tw5] How to sort a list by multiple fields (and put it in a table)?

2022-04-15 Thread Harry
Hi,

I have a question about sort a list by multiple fields. I have a bunch of 
entries of persons' bios. Each bio entry has a set of fields associated, 
such as birth year, death year, birth date, tenure length etc.

I want to create a list with some of those persons and sort it by multiple 
fields, such as first by tenure length, if same tenure, then sort by birth 
year, then death year etc.

What I currently have is 

<$list filter="[c_status[incumbent]sort[c_rank]]">


This gives me a list that allows me to filter all incumbents but the list 
can only be sorted by rank. I want to add multiple fields (e.g. V1, V2, V3) 
behind the rank sort but it doesn't work. I'd appreciate it if any one 
could share their insights on this.

My second, maybe more unrealistic goal, is to transform the list to a 
table. Its visual would ideally look like this (
https://en.wikipedia.org/wiki/Lists_of_state_leaders_by_age#Top_ten_since_1942),
 
i.e. I can put each field value of one entry in different cells of the same 
row and the table will update itself

The code I'm currently using is 

<$list filter="[c_status[incumbent]sort[c_rank]]"> 
<$link to=<>><$view field=birth_year/><$view 
field=title/><$view field=birth_month/><$view field=c_rank/> 

And the layout is a list of sorted entries with field values crudely 
attached at the beginning and the end of each line. Basically I wonder if I 
can separate those values into different cells.

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/f3164373-ea8f-4526-9937-863ca5414e9en%40googlegroups.com.


[tw5] Re: Shiraz plugin: dynamic table gets search ui

2022-04-15 Thread passingby
 As always, par excellence.
Thank You!

On Friday, April 15, 2022 at 1:52:36 AM UTC-7 Eric Shulman wrote:

> On Thursday, April 14, 2022 at 11:04:08 PM UTC-7 passingby wrote:
>
>> I have both of your tiddlers copied. And as expected the PowerSearch 
>> works on its own perfectly. I have also installed the Shiraz plugin and 
>> working on its own as well. Then I created another tiddler containing the 
>> overriding definitions which you've given here ( I had to change the macro 
>> call name to table-dynamic which I assume changed at a later date). I can 
>> see that PowerSearch is being called because the result table is shown but 
>> I don't have PowerSearch UI. What might I be doing wrong?
>>
>
> It's been more than 2 years since I wrote those instructions for 
> "overriding definitions".
> As you noted, in that intervening time, the Shiraz macro name changed from 
> "table-fd" to "table-dynamic".
> In addition, the underlying PowerSearch and edit-list code have also been 
> extensively re-written and
> re-factored several times, so some of those macro names and surrounding 
> syntax have changed as well.
>
> Instead of writing:
>  
>
>> \import TiddlyTools/FilterGenerators/PowerSearch
>>>
>>> \define doSearch_showresults()
>>> <$macrocall $name=table-fd
>>>  filter=<> tblClass=""
>>>  fields="tbl-expand title fa fb fc caption tags"
>>>  stateTiddler=n
>>>  tblCaption="''Table 2. Dynamic table example''"/>
>>> \end
>>>
>>> \define getOptions() 
>>>
>>> <>
>>> <>
>>> <$vars
>>>   tids={{{ [get[text]]   ~[[tiddlers]]}}}
>>>pre={{{ [get[text]]}}}
>>>tag={{{ [get[text]]}}}
>>>  field={{{ [get[text]] ~[[title,text,tags]] }}}
>>>   flag={{{ [get[text]]  ~[[words]]   }}}
>>>   term={{{ [get[text]]   }}}
>>>   sort={{{ [get[text]]  ~[[title]]   }}}>
>>><>
>>> 
>>>
>>  
> Try this:
> ```
> \import TiddlyTools/FilterGenerators/PowerSearch
> \define doSearch_showresults()
> <$macrocall $name=table-dynamic filter=<> tblClass=""
>
>  fields="tbl-expand title fa fb fc caption tags"
>  stateTiddler=n tblCaption="''Table 2. Dynamic table example''"/>
> \end
> <> <>
> 
> <>
> ```
> Note: if you also omit the ``, 
> then the PowerSearch inputs and the Shiraz output table will appear *side 
> by side *(as long as there's enough room for the table)
>
> 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/122009ae-4875-4162-86aa-a93978801670n%40googlegroups.com.


[tw5] Re: How to share permalink that does not show sidebar?

2022-04-15 Thread Télumire
Note that this will hide all UI element except for the content of the 
tiddler you link to. If you want to also display the title of the tiddler, 
go to "FullScreenTiddler/ViewTemplate" and replace <$transclude/> with 
<$transclude tiddler="$:/core/ui/ViewTemplate"/>. That way you will get the 
full tiddler UI.

On Friday, 15 April 2022 at 14:02:44 UTC+2 Télumire wrote:

> Try this : 
> https://github.com/Telumire/TiddlyTweaks/releases/download/FullScreenTiddler/FullScreenTiddler.json
>
> On Friday, 15 April 2022 at 12:30:44 UTC+2 bacc...@protonmail.com wrote:
>
>> I'd like to share one tiddler with other people but hide the sidebar and 
>> all other tiddlers from people. Is this possible? How would I do that? 
>>
>> Thank you! Have a great weekend!
>>
>

-- 
You received this message because you 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/2a983568-a6f1-464a-b90e-857f637267a2n%40googlegroups.com.


[tw5] Re: How to share permalink that does not show sidebar?

2022-04-15 Thread Télumire
Try this : 
https://github.com/Telumire/TiddlyTweaks/releases/download/FullScreenTiddler/FullScreenTiddler.json

On Friday, 15 April 2022 at 12:30:44 UTC+2 bacc...@protonmail.com wrote:

> I'd like to share one tiddler with other people but hide the sidebar and 
> all other tiddlers from people. Is this possible? How would I do that? 
>
> Thank you! Have a great weekend!
>

-- 
You received this message because you 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/c101c613-06f7-4ef4-8997-55915c76e7e9n%40googlegroups.com.


[tw5] How to share permalink that does not show sidebar?

2022-04-15 Thread 'C Bacca' via TiddlyWiki
I'd like to share one tiddler with other people but hide the sidebar and 
all other tiddlers from people. Is this possible? How would I do that? 

Thank you! Have a great weekend!

-- 
You received this message because you 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/50f97c94-9e13-4502-9c22-798ee7ea8486n%40googlegroups.com.


[tw5] Re: Shiraz plugin: dynamic table gets search ui

2022-04-15 Thread Eric Shulman
On Thursday, April 14, 2022 at 11:04:08 PM UTC-7 passingby wrote:

> I have both of your tiddlers copied. And as expected the PowerSearch works 
> on its own perfectly. I have also installed the Shiraz plugin and working 
> on its own as well. Then I created another tiddler containing the 
> overriding definitions which you've given here ( I had to change the macro 
> call name to table-dynamic which I assume changed at a later date). I can 
> see that PowerSearch is being called because the result table is shown but 
> I don't have PowerSearch UI. What might I be doing wrong?
>

It's been more than 2 years since I wrote those instructions for 
"overriding definitions".
As you noted, in that intervening time, the Shiraz macro name changed from 
"table-fd" to "table-dynamic".
In addition, the underlying PowerSearch and edit-list code have also been 
extensively re-written and
re-factored several times, so some of those macro names and surrounding 
syntax have changed as well.

Instead of writing:
 

> \import TiddlyTools/FilterGenerators/PowerSearch
>>
>> \define doSearch_showresults()
>> <$macrocall $name=table-fd
>>  filter=<> tblClass=""
>>  fields="tbl-expand title fa fb fc caption tags"
>>  stateTiddler=n
>>  tblCaption="''Table 2. Dynamic table example''"/>
>> \end
>>
>> \define getOptions() 
>>
>> <>
>> <>
>> <$vars
>>   tids={{{ [get[text]]   ~[[tiddlers]]}}}
>>pre={{{ [get[text]]}}}
>>tag={{{ [get[text]]}}}
>>  field={{{ [get[text]] ~[[title,text,tags]] }}}
>>   flag={{{ [get[text]]  ~[[words]]   }}}
>>   term={{{ [get[text]]   }}}
>>   sort={{{ [get[text]]  ~[[title]]   }}}>
>><>
>> 
>>
>  
Try this:
```
\import TiddlyTools/FilterGenerators/PowerSearch
\define doSearch_showresults()
<$macrocall $name=table-dynamic filter=<> tblClass=""
 fields="tbl-expand title fa fb fc caption tags"
 stateTiddler=n tblCaption="''Table 2. Dynamic table example''"/>
\end
<> <>

<>
```
Note: if you also omit the ``, 
then the PowerSearch inputs and the Shiraz output table will appear *side 
by side *(as long as there's enough room for the table)

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/eb1063c4-7f2c-4377-9f11-6ef71e7a7089n%40googlegroups.com.


[tw5] Re: Shiraz plugin: dynamic table gets search ui

2022-04-15 Thread passingby
Hello Eric,

I have both of your tiddlers copied. And as expected the PowerSearch works 
on its own perfectly. I have also installed the Shiraz plugin and working 
on its own as well. Then I created another tiddler containing the 
overriding definitions which you've given here( I had to change the macro 
call name to table-dynamic which I assume changed at a later date). I can 
see that PowerSearch is being called because the result table is shown but 
I don't have PowerSearch UI. What might I be doing wrong?

On Tuesday, December 24, 2019 at 2:23:00 AM UTC-8 Eric Shulman wrote:

> On Thursday, December 12, 2019 at 1:02:19 PM UTC-8, Mohammad wrote:
>>
>> I am EXPERIMENTING how to implement a searchable dynamic table in Shiraz!
>>
>> My top priorities are
>>
>>- *modular design (extensible)*
>>- *minimalist design*
>>   - *simple to use*
>>   - *simple to understand*
>>
>> Today we had a fruitful thread with Eric Shulman who created a simple 
>> powerful UI to search and destroy!
>> https://groups.google.com/d/msg/tiddlywiki/OeVzRs9FeYo/BNNRK5hEBgAJ
>> I used his design and approach with some minor changes and used it with 
>> *table-fd* the dynamic table builder from fields in Shiraz plugin.
>> I have pushed an *EXPERIMENTAL *update and setup a wiki on tiddlyspot to 
>> get feedback!
>> http://tw-tables.tiddlyspot.com/
>> Now we have searchable dynamic table builder!
>>
>
> I did a little experiment myself, to combine my latest version of 
> "PowerSearch" (renamed from SearchAndDestroy) with the dynamic table output 
> from Shiraz.
>
> Here's what I did:
> 1) From http://tiddlytools.com/filtergenerators.html, import these 
> tiddlers (drag-and-drop from the sidebar list)
> * TiddlyTools/FilterGenerators/PowerSearch
> * TiddlyTools/Macros/edit-list
> since these are just macro definitions, there's no plugins involved and 
> they can be used right away, without needing to save-and-reload.
>
> 2) Create a new tiddler containing:
> \import TiddlyTools/FilterGenerators/PowerSearch
>
> \define doSearch_showresults()
> <$macrocall $name=table-fd 
>  filter=<> tblClass="" 
>  fields="tbl-expand title fa fb fc caption tags" 
>  stateTiddler=n 
>  tblCaption="''Table 2. Dynamic table example''"/>
> \end
>
> \define getOptions() 
>
> <>
> <>
> <$vars
>   tids={{{ [get[text]]   ~[[tiddlers]]}}}
>pre={{{ [get[text]]}}}
>tag={{{ [get[text]]}}}
>  field={{{ [get[text]] ~[[title,text,tags]] }}}
>   flag={{{ [get[text]]  ~[[words]]   }}}
>   term={{{ [get[text]]   }}}
>   sort={{{ [get[text]]  ~[[title]]   }}}>
><>
> 
>
> What it does:
> 1) import all the macros from PowerSearch
> 2) override doSearch_showresults() to invoke the "table-fd" macro call
> (note: use filter=<> instead of filter=<>)
> 3) override getOptions() button to remove the button and popup
> (note: they only apply to the default PowerSearch "showresults()" 
> output)
> 4) get the inputs and do the search
>(same as the PowerSearch code)
>
> note that I don't apply your styles to the inputs, since the edit-list 
> display
> relies upon overlapping of edit-text and select controls, which wouldn't
> look right if you change the input control styles.
>
> The result: my latest search input interface, with the Shiraz table output!
>
> 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/b3fbe7c5-e1de-41e4-bd5f-e0524a95c258n%40googlegroups.com.