Shiraz list-content (experimental)

504 views
Skip to first unread message

Mohammad Rahmani

unread,
Jun 4, 2021, 12:14:28 PM6/4/21
to tiddl...@googlegroups.com
Shiraz has a list-search which is very handy and list filtered tiddlers with a search box lets you search in results!
Shiraz has a lot of features that lets you create new tools with more ease!

I have implemented another list macro called list-content! BUT I'm not sure if it has already been published (introduced) by another user/developer!

The list-content is actually a search box, but instead of displaying titles, it displays the tiddler with its content!

As soon as it find any results it shows

1. each result as a Card
2. The resulting tiddler is displayed with title, subtitle, tags and text
3. It is possible to have multi column result or truncate the text and show part of text



Best wishes
Mohammad
shiraz-list-content.mp4

Saq Imtiaz

unread,
Jun 8, 2021, 6:04:11 PM6/8/21
to TiddlyWiki
This is neat. I quite like it.
Is performance an issue if there are too many results?

Mohammad Rahmani

unread,
Jun 9, 2021, 1:07:35 AM6/9/21
to tiddl...@googlegroups.com


On Wed, Jun 9, 2021 at 2:34 AM Saq Imtiaz <saq.i...@gmail.com> wrote:

Hi Saq,


This is neat. I quite like it.

Thank you!
Is performance an issue if there are too many results?

Well yes! Especially when the tiddlers themselves are long and have manythings to render! 

--
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/6a5e17bb-88b8-46ad-aa4b-da0bc439da97n%40googlegroups.com.

Mark

unread,
Jul 2, 2021, 3:30:16 PM7/2/21
to TiddlyWiki
Hi Mohammad,

I could put this list-content macro to use in a project I'm working on. Is it available to experiment with? I could not find it at https://kookma.github.io/TW-Shiraz/

Thanks!

mck

Mohammad Rahmani

unread,
Jul 3, 2021, 3:46:54 AM7/3/21
to tiddl...@googlegroups.com
Hi Mark,
 It is here


It is stable and you can use it in your project! I recommend using Shiraz instead of extracting part of it!


Best wishes
Mohammad


--
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.

Mark

unread,
Jul 4, 2021, 4:00:25 PM7/4/21
to TiddlyWiki
Thank you Mohammad for all the rich possibilities in Shiraz and for pointing me to these list-search options!

I used this list-search macro:

<<list-search
"[tag[cw]]"
"search:title"
"$:/temp/list-search"
"template/list-search/card-list"
placeholder:"Enter essay title" >>

with this template: template/list-search/card-list

<<card
title:"<$link/>"
text:"<$transclude field=v tag='cw'/>: //<$transclude field=vt tag='cw'/>// (pp. <$transclude field=pp tag='cw'/>)<br><$transclude field=ebsco tag='cw'/>"
width:"80%"
class:"shadow border-dark text-dark"
>>

It worked well to create a quick way to search for an essay or chapter title from all 280 essays and chapters that make up C. G. Jung's Collected Works.

ListContentCW.png

The performance so far is very good for these 280 entries.

Best wishes,

Mark

Mohammad Rahmani

unread,
Jul 5, 2021, 1:07:06 AM7/5/21
to tiddl...@googlegroups.com
Hi Mark!

Great! I like your template! Very beautiful output!
Also many thanks for sharing your template and output!


Extra point:
I assume the fulltext essay are PDF files! If you like to click and open a specific page in pdf file, e.g. click the link and open page 236 of file
then head over TW-Scripts (https://kookma.github.io/TW-Scripts/) and look for pdflink macro!

Best wishes
Mohammad


David Gifford

unread,
Jul 7, 2021, 9:19:30 AM7/7/21
to TiddlyWiki
Hi everyone

I have been using the list-search macro for years. Mohammad, this is a nice similar implementation!

Comments:

1. This would also be doable with the List-search macro but with a custom ListItemTemplate. In case anyone is really invested in the List-search macro.
2. I have two related ideas. Whether for Mohammad as original poster, or Mark who says he is working on a related project. Or anyonle else who is listening in.

2a. Imagine if there were a way, either in list-search macro, Mohammad's list-content, or some other related project, to click on a radio button to choose between different views (different custom ListItemTemplates) . Similar to the options for viewing lists in Stroll, but for a filterable list.

2b. Imagine if there were a way to click on a radio button to choose what field to filter by. The list-search macro is limited to filtering by one field. If you want to change it, you have to open the macro and change it.

I throw these ideas out there since you guys are playing with this. It would be nice to have these two kinds of customizability in filterable lists. Maybe hidden under a slider so it doesn't look too messy.

Mohammad Rahmani

unread,
Jul 7, 2021, 11:22:34 AM7/7/21
to tiddl...@googlegroups.com
Hi David,

 I think there is no list-content in Shiraz! It is actually list-search inspired from original list-search by Tobias Beers
 
Yes, this is a great feature and has many use cases. I have used other searchboxes in combination with dynamic tables, FAQ, ....

Your ideas are great! and I hope Mark or other interested people implement them.
Thank you for sharing!



Best wishes
Mohammad


--
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.

David Gifford

unread,
Jul 7, 2021, 1:04:11 PM7/7/21
to TiddlyWiki
@Mohammad: oh okay, I thought maybe you created something separate from List-search. Of course we won't be able to play with it until you give us a link. I mean, of course a permalink to that type of search that displays results as entire tiddlers...

Mohammad Rahmani

unread,
Jul 7, 2021, 3:14:14 PM7/7/21
to tiddl...@googlegroups.com
Hi David,
 Sure, I will do!


Best wishes
Mohammad


Mark

unread,
Jul 28, 2021, 2:49:05 PM7/28/21
to TiddlyWiki
Hi Mohammad,

Unfortunately, the full-text essay links are to a password protected ebook collection as Jung's Collected Works are still protected by copyright.

However, thanks for pointing out the pdflink macro as I'm sure to put it to use in other projects.

Your list-content idea has now been folded into my Library Guide to Jung's Collected Works to enable a search for essays that appear in the CW: https://pacifica.libguides.com/Jung/essays

I'm now also experimenting with your Timelines plugin so as to developed a chronology of Jung's writings.

I've also put your Shiraz framework to good use to develop a visual map of library resources for new students: https://www.pacifica.edu/wp-content/content/lib/searchkit/dja.html

Thanks again for your inspiration and for all your plugins, frameworks, demos and tutorials!

Cheers,

Mark

Mohammad Rahmani

unread,
Jul 29, 2021, 6:43:52 AM7/29/21
to tiddl...@googlegroups.com
Hi Mark,
 Thank you for updating and sharing all that great stuff!
 I am really happy to hear Shiraz is helpful in your workflow!
Best wishes
Mohammad


TiddlyTweeter

unread,
Jul 31, 2021, 3:32:23 AM7/31/21
to TiddlyWiki
Mark wrote:
I've .... put ... [the] Shiraz framework to good use to develop a visual map of library resources for new students: https://www.pacifica.edu/wp-content/content/lib/searchkit/dja.html

Mark, a side note ... 

Whoa! That is seriously useful! And nicely designed.

FWIW, I have had a long term interest in  Jungian analysis and Jung's appropriations of Alchemical Symbolism to better map the transmogrification of the "Self".

Your tool, very quickly, let me find important resources relevant to that interest.

In short, a great research tool!

Best wishes
TT

  
Reply all
Reply to author
Forward
0 new messages