[tw5] Re: Why my action-setfield is not executed ?

2021-04-27 Thread Saq Imtiaz
Action widgets are only invoked when triggered by triggering widgets such as the Button Widget. That is, it takes user interaction to make changes to tiddlers. On Tuesday, April 27, 2021 at 10:40:12 AM UTC+2 vpl wrote: > Hi guys > > A stupid question but I don't understand what the rational beh

[tw5] Re: Why my action-setfield is not executed ?

2021-04-27 Thread Saq Imtiaz
See https://tiddlywiki.com/#ActionWidgets On Tuesday, April 27, 2021 at 11:20:43 AM UTC+2 Saq Imtiaz wrote: > Action widgets are only invoked when triggered by triggering widgets such > as the Button Widget. That is, it takes user interaction to make changes to > tiddlers. >

[tw5] Re: transclusion and parameterized template

2021-04-27 Thread Saq Imtiaz
Two things that might be helpful: 1) {{tiddlerName||templateName}} 2) the above is a shortcut syntax for <$tiddler tiddler="tiddlerName"> <$translude tiddler="templateName"> See https://tiddlywiki.com/#Transclusion%20with%20Templates On Tuesday, April 27, 2021 at 5:24:01 PM UTC+2 jn.pierr...@g

[tw5] Re: transclusion and parameterized template

2021-04-28 Thread Saq Imtiaz
Something you may find useful: With the Internals plugin installed, you can turn on the preview in the editor and see the parse tree and widget tree for any wikitext. On Wednesday, April 28, 2021 at 12:04:07 PM UTC+2 jn.pi

[tw5] Re: alphanumerical sort for sortsub

2021-04-28 Thread Saq Imtiaz
I have a PR almost ready that includes this as well as other sorting functionality. On Wednesday, April 28, 2021 at 4:54:02 PM UTC+2 jn.pierr...@gmail.com wrote: > I've just taken the time to understand how to use sortsub. I should have > done it before, et really does what I was trying to ge

[tw5] Streams 0.21 is now available

2021-04-30 Thread Saq Imtiaz
Streams 0.2 is now out of beta. https://saqimtiaz.github.io/streams/ I recommend updating Relink plugin and to consider installing its new addon plugin Relink Titles as well: https://flibbles.github.io/tw5-relink/ For anyone including Streams in editions or otherwise distributing the plugin:

[tw5] Re: split agglomerates

2021-04-30 Thread Saq Imtiaz
Sortsub applies a filter in turn to each input title separately. The docs do mention this I believe. So the input to the filter each time is a single title. Subfilter applies a filter once with the input being a title list of all input titles. On Friday, April 30, 2021 at 10:53:52 AM UTC+2 jn.

Re: [tw5] Streams 0.21 is now available

2021-04-30 Thread Saq Imtiaz
allow for workflows like using Streams to take notes on read-only slides tiddlers, that might have been auto imported or synced from the teacher's tiddlywiki. On Friday, April 30, 2021 at 12:42:03 PM UTC+2 Mohammad wrote: > On Fri, Apr 30, 2021 at 11:47 AM Saq Imtiaz wrote: > >> Str

Re: [tw5] Streams 0.21 is now available

2021-04-30 Thread Saq Imtiaz
Hi Mohammad, > Lovely! This is one of my favorite use case! At the end I normally merge > the notes! > I need to develop my workflow further but so far I've been dragging and dropping to an actions items tiddler or other tiddlers that are relevant to the topic. At the end there are no nodes

[tw5] Re: filter not called???

2021-04-30 Thread Saq Imtiaz
Your filter isn't a valid filter : indexingmatch It is missing square brackets to start and close. Since you cannot have square brackets inside an filter operator, this is why the operand to the filter operator is a variable or text reference. You can also use the :filter filter run prefix. O

[tw5] Re: filter not called???

2021-04-30 Thread Saq Imtiaz
Let's look at the highlighted portion of [indexes[]addsuffix[/project]filter[indexingmatch]] The first and last square brackets in the highlighted text are for the operand to the filter operator. The square brackets tells us that you are passing a literal operand, not a text reference or a var

[tw5] Re: filter not called???

2021-04-30 Thread Saq Imtiaz
Now you've run into a bug. There's a PR for a fix already: https://github.com/Jermolene/TiddlyWiki5/pull/5640 Try this instead for the meantime: [indexes[]addsuffix[/project]] :filter[indexingmatch] If that still does not work it would be useful to know what the variables proj and pid are. Not

[tw5] Re: Streams 0.21 is now available

2021-05-01 Thread Saq Imtiaz
I've pushed a small update to Streams that fixes a few minor issues including a bug with the get-stream-root[] filter. I've also added a FAQ to the docs. Documentation contributions are very welcome. https://saqimtiaz.github.io/streams/ -- You received this message because you are subscribed

[tw5] Re: Width of edit-text text areas

2021-05-02 Thread Saq Imtiaz
textarea.wideedit {width:100%;} On Sunday, May 2, 2021 at 2:09:34 PM UTC+2 David Gifford wrote: > Hi all > > Any way to make width of edit-text text areas 100%? The instructions at > tiddlywiki.com only show how to adjust the height, not the width. I tried > adding class="wideedit", then added

[tw5] Re: Streams 0.21 is now available

2021-05-02 Thread Saq Imtiaz
There is a new release of the Edit-comptext plugin that amongst other things adds compatibility with Streams: http://snowgoon88.github.io/TW5-extendedit/ On Saturday, May 1, 2021 at 4:53:21 PM UTC+2 Saq Imtiaz wrote: > I've pushed a small update to Streams that fixes a few mino

[tw5] Edit-comptext plugin (autocomplete) - new release

2021-05-02 Thread Saq Imtiaz
There is a new release of the Edit-comptext plugin that amongst other things adds compatibility with Streams: http://snowgoon88.github.io/TW5-extendedit/ -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop r

[tw5] Re: Search for links to current tiddler in a field

2021-05-02 Thread Saq Imtiaz
Try this: [all[current]listed[somefield]] On Sunday, May 2, 2021 at 5:17:55 PM UTC+2 David Gifford wrote: > Hi everyone > > Last question for the day. How might I adapt the following: > > [search:somefield:literal] > > so that it returns only the results that are exact links of the current > ti

Re: [tw5] Pin/Unpin a Tiddler to sidebar

2021-05-02 Thread Saq Imtiaz
This edition has a shift+click to pin in sidebar feature: https://rr-tw5.github.io/#DAILY%20NOTES On Sunday, May 2, 2021 at 6:55:52 PM UTC+2 Mohammad wrote: > Thank you Arun! Yes! It is! > > > Best wishes > Mohammad > > > On Sun, May 2, 2021 at 9:07 PM arun babu wrote: > >> I think such a pin b

Re: [tw5] Streams 0.21 is now available

2021-05-02 Thread Saq Imtiaz
something per > stream item would be similar. > > Tones > > On Friday, 30 April 2021 at 22:42:41 UTC+10 Saq Imtiaz wrote: > >> Hi Mohammad, >> >> >>> Lovely! This is one of my favorite use case! At the end I normally merge >>> the notes! >

[tw5] Re: Edit-comptext plugin (autocomplete) - new release

2021-05-02 Thread Saq Imtiaz
quot;end": "]]" }, { "pattern": "||", "filter": "[all[tiddlers]!is[system]!has[parent]]", "start": "[[|", "end": "]]", "startOffset" : 2 } ] } On Sunday, May 2, 2021 at 4:08:36 PM UTC+

[tw5] Re: improving smart resarch for in-situ macros for filter

2021-05-04 Thread Saq Imtiaz
[all[tiddlers]] :filter[get[type]match[application/javascript]] On Tuesday, May 4, 2021 at 9:42:30 AM UTC+2 jn.pierr...@gmail.com wrote: > Today I wanted to see which tiddlers I have that are javascript. > > In advanced research i can execute something like > > [get[type]match[application/javasc

[tw5] Re: Ten Ways to Drag and Drop Tiddlers to Tiddlywiki

2021-05-04 Thread Saq Imtiaz
Speaking of drag and drop, I was expecting to see some dropzone magic with bibtex paste/drop ? :) On Tuesday, May 4, 2021 at 9:53:55 AM UTC+2 Mohammad wrote: > 1. drag and drop a tiddler link > 2. drag and drop a tag pill > 3. drag and drop a $button with dragFilter > 4. drag and drop a $button

[tw5] Re: filter to get tiddlers newer than a given date

2021-05-04 Thread Saq Imtiaz
Try this: [all[tiddlers]] :filter[get[modified]compare:date:gt[2021]] On Tuesday, May 4, 2021 at 9:09:42 AM UTC+2 james.w@gmail.com wrote: > Hey Mark, > > that doesn't seem to work in the advances search filters tab (see > attachment) I assume it won't work with $tw.wiki.filterTiddlers in a

[tw5] Re: improving smart resarch for in-situ macros for filter

2021-05-04 Thread Saq Imtiaz
Filter run prefixes have seen a lot of improvements recently, and as such there is definitely room for more documentation. The documentation is a community effort and maintained in the same git repo as the TW source code. Contributions to the documentation as PR are highly welcome. On Tuesday,

[tw5] Re: "Filter Expression" doc

2021-05-04 Thread Saq Imtiaz
As the table indicates, :else is equivalent to the ~ filter run prefix which is explained earlier in the same tiddler. On Tuesday, May 4, 2021 at 9:09:23 PM UTC+2 jn.pierr...@gmail.com wrote: > In the "Filter Expression" tiddler the :enter prefix is not listed in the > first part, only given in

[tw5] Re: "Filter Expression" doc

2021-05-04 Thread Saq Imtiaz
I don't disagree. Contributions to the documentation are very welcome. On Tuesday, May 4, 2021 at 9:46:02 PM UTC+2 jn.pierr...@gmail.com wrote: > right. not very user friendly. could be noted earlier at ~ > > the same for the others. when there is so much to read, being kind on the > reader is n

[tw5] Re: filter question: which tiddler is newer

2021-05-04 Thread Saq Imtiaz
Does this do what you need? Aa Bb +[nsort[modified]limit[1]] Or try something like this in 5.1.24 pre-release: Aa Bb :sort:date[get[modified]] +[limit[1]] See https://tiddlywiki.com/prerelease/#Sort%20Filter%20Run%20Prefix On Wednesday, May 5, 2021 at 7:41:37 AM UTC+2 Mohammad wrote: > Back to

[tw5] Re: Change the title of a tiddler from the tiddler itself?

2021-05-04 Thread Saq Imtiaz
True for all fields. A field is changed by creating a new Tiddler with the same fields (including title) and updating the necessary field when creating that new Tiddler. On Wednesday, May 5, 2021 at 6:35:34 AM UTC+2 Mohammad wrote: > On Thursday, April 29, 2021 at 3:47:05 AM UTC+4:30 PMario wr

Re: [tw5] Re: filter question: which tiddler is newer

2021-05-05 Thread Saq Imtiaz
@Mohammad: > Great! So, we can use the new named prefix :sort? > Is it possible to have multiple steps filter like below > > filter1 :filter[step2] :filter[step3] > > Yes multiple filter runs can be combined just as before (with +, ~ etc). Note that the input to each filter run is the output f

Re: [tw5] Streams 0.21 is now available

2021-05-05 Thread Saq Imtiaz
@joshua > I like the idea that Streams would store its relational data NOT on the > parent tiddler, but in some other (system prefixed?). That is worth > exploring. :) > > This is top of my list when I next get a solid chunk of time to work on Streams. -- You received this message because

Re: [tw5] Streams 0.21 is now available

2021-05-05 Thread Saq Imtiaz
@Si @Saq - Totally unrelated question. Is there a way to save and exit a node > while on mobile? I.e. the equivalent of Ctrl+Enter on a normal keyboard. > Enable the setting called "Exit editing on saving an empty node

[tw5] Re: "Filter Expression" doc

2021-05-05 Thread Saq Imtiaz
Joshua's reply is the best way to work with docs. However, if you aren't already using node and just want to make a PR for a single tiddler, you can do so via the Github web interface. - Find the tiddler you want to make a PR for at TiddlyWiki.com - From the tiddler toolbar choose the more

[tw5] Re: Drag and Drop and specified deserializer for string data

2021-05-06 Thread Saq Imtiaz
Wait wait, Mohammad you wanted this feature but I have to explain it? ;) Until now, if you drag and drop or paste any text into TiddlyWiki, it treats it as plain text and offers to create a tiddler with that content. Now, if a deserializer has been specified for a dropzone

[tw5] Re: Stroll - navigating to text field with TAB key

2021-05-06 Thread Saq Imtiaz
The tabIndex for the text field editor is not being set. The problem might be the custom EditTemplate that Stroll uses. On Wednesday, May 5, 2021 at 9:39:41 PM UTC+2 girrodocus wrote: > Thanks a lot for trying David - I'm very grateful. > > -g :) > > On Friday, April 30, 2021 at 10:51:35 PM UT

Re: [tw5] Re: Ten Ways to Drag and Drop Tiddlers to Tiddlywiki

2021-05-06 Thread Saq Imtiaz
wrote: > Drag and drop images into the editor! like GitHub > WOW this is amazing Saq! > > millions thanks! > > > On Thu, May 6, 2021 at 12:54 PM Saq Imtiaz wrote: > >> >> >> On Wednesday, May 5, 2021 at 7:20:57 PM UTC+2 PMario wrote: >> >>>

Re: [tw5] Re: Drag and Drop and specified deserializer for string data

2021-05-06 Thread Saq Imtiaz
I have made a PR to add a deserializers[] filter operator, to make it easier to see which ones are available: https://github.com/Jermolene/TiddlyWiki5/pull/5673 -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and st

[tw5] Re: Stroll - navigating to text field with TAB key

2021-05-06 Thread Saq Imtiaz
6, 2021 at 3:53:18 AM UTC-5 Saq Imtiaz wrote: > >> The tabIndex for the text field editor is not being set. >> The problem might be the custom EditTemplate that Stroll uses. >> >> On Wednesday, May 5, 2021 at 9:39:41 PM UTC+2 girrodocus wrote: >> >>>

Re: [tw5] Streams 0.21 is now available - streams 0.212 quirks and workarounds

2021-05-08 Thread Saq Imtiaz
@fred I haven't been able to reproduce the scenario you describe below. The steps you list result in 3 nodes in total, whereas the screenshot below shows 4. Perhaps that is why? How are you adding the third node? Where does the fourth node come from? > 6) add a 3rd node -> edit mode is acti

Re: [tw5] Streams 0.21 is now available - streams 0.212 quirks and workarounds

2021-05-08 Thread Saq Imtiaz
I've pushed an update to version 0.2.13 which resolves the bug reported by Fred. Interestingly the bug has been present since day one but only surfaces when using the unusedtitle macro to generate titles. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki

[tw5] Re: A Prototype of UID's for stable permalinks

2021-05-09 Thread Saq Imtiaz
Suggest updating Relink to the latest version if you have not already done so. On Sunday, May 9, 2021 at 9:33:33 AM UTC+2 ludwa6 wrote: > OK Charlie: can't say as i understand much of this, but the fact that > you've been able to replicate that JavaScript error - saving to your local > downloa

Re: [tw5] Streams 0.21 is now available - streams 0.212 quirks and workarounds

2021-05-09 Thread Saq Imtiaz
> Thanks all the same; any advice on the use of > baseName=<> > vs baseName=<> ? > I think that is really a personal preference on how you like your titles set up. -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this

[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-10 Thread Saq Imtiaz
Make a parse tree including a transclude widget or look at the wiki.makeTranscludeWidget method. On Monday, May 10, 2021 at 2:32:03 PM UTC+2 james.w@gmail.com wrote: > in a tiddler {{fig}} works transcluded into another widget, so i guess i'm > asking : what it the widget way of performing

[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-10 Thread Saq Imtiaz
I recommend looking at the source code for that method, as well as how it is used other places in the core. Either use grep on the command line, or the github search is actually pretty good: https://github.com/Jermolene/TiddlyWiki5/search?q=makeTranscludeWidget If you get stuck and still can't

[tw5] Re: Any Command Palette users know how to change the default filter for search results?

2021-05-11 Thread Saq Imtiaz
I have no idea about Command Palette, but you may want to use a filter like the following for the sidebar search: [!is[system]search:titlesort[title]get-stream-root:matchtitles[]limit[250]] This will allow the individual nodes to be searchable but only show their root tiddlers in the search, as

[tw5] Re: Any Command Palette users know how to change the default filter for search results?

2021-05-12 Thread Saq Imtiaz
This might be what you are looking for: https://github.com/Souk21/TW-commandpalette/blob/master/plugins/souk21/commandpalette/CommandPaletteSearchSteps.json On Wednesday, May 12, 2021 at 8:41:42 AM UTC+2 Saq Imtiaz wrote: > I have no idea about Command Palette, but you may want to use a fil

[tw5] Re: String manipulations on textarea input

2021-05-12 Thread Saq Imtiaz
Try this: <$vars testmonth={{{[{NewEntryData!!text}removeprefix[##]trim[]splitregexp[\n]trim[]first[]splitregexp[]rest[4]first[2]join[]]}}}> <$button> <$action-setfield input-month=<> /> Set to: "<>" On Wednesday, May 12, 2021 at 12:41:23 PM UTC+2 lamn...@gmail.com wrote: > I've made some pro

[tw5] Re: tiddlywiki with node.js does'work

2021-05-13 Thread Saq Imtiaz
Sounds like you killed the node process running the TiddlyWiki server. When you use TiddlyWiki on node.js, the node process needs to keep running. If you just want to use the single file version you don't need node.js at all. You don't need to build TiddlyWiki you can get an already built file

[tw5] Re: Filter question: Use :filter operator

2021-05-14 Thread Saq Imtiaz
:filter does exactly that, it filters which titles from the previous run are included based on whether its run returns a value for that title or not. I think what you want is [get[text]get[url]] On Friday, May 14, 2021 at 5:36:19 PM UTC+2 Mohammad wrote: > *Issue with :filter operator* > > 1. T

Re: [tw5] Re: Filter question: Use :filter operator

2021-05-14 Thread Saq Imtiaz
You are misunderstanding the purpose of :filter. It is used to include or exclude titles from the previous run, based on whether this filter run returns a result or not. The same principle as the filter[] operator for which I recommend reading the docs as they mostly apply here too: https://tid

Re: [tw5] Re: Filter question: Use :filter operator

2021-05-14 Thread Saq Imtiaz
Another way to explain it is that: <$list filter="[get[text]] :filter[get[url]]"> is equivalent to: <$list filter="[get[text]]"> <$list filter="[get[url]!is[blank]]" variable="null"> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubs

Re: [tw5] Re: Filter question: Use :filter operator

2021-05-14 Thread Saq Imtiaz
ter="[get[url]!is[blank]]" variable="null"> > On Friday, May 14, 2021 at 7:57:57 PM UTC+2 Mohammad wrote: > Saq, > Many thanks for the clarification and I read the document again! > > > On Fri, May 14, 2021 at 9:07 PM Saq Imtiaz wrote: > >>

Re: [tw5] Streams 0.21 is now available - streams 0.212 quirks and workarounds

2021-05-14 Thread Saq Imtiaz
Thanks Fred, I've pushed an update that resolves this. This is a bug arising from an incomplete implementation. The original idea was for the streams editor toolbar to have its own configuration panel. See: https://saqimtiaz.github.io/sq-tw/floating-menu.html#config:config%20%5B%5BDraft%20of%20'

Re: [tw5] Combine tiddlers into one

2021-05-15 Thread Saq Imtiaz
Below are three different ways to do this using reduce and without wikify. The last one uses a custom filter printf[] that is attached. Note that you can use a tiddler for your template as well. *#1 - addprefix galore* <$button> save to a single tiddler <$vars lb=" "> <$action-setfield $tiddle

Re: [tw5] Streams 0.21 is now available - streams 0.212 quirks and workarounds

2021-05-15 Thread Saq Imtiaz
@pmario The buttons are just hidden with CSS ;) That's why the popup's don't work, they need the button element to have a position. On Saturday, May 15, 2021 at 1:24:19 PM UTC+2 PMario wrote: > On Saturday, May 15, 2021 at 8:46:36 AM UTC+2 Saq Imtiaz wrote: > >> No

Re: [tw5] Combine tiddlers into one

2021-05-15 Thread Saq Imtiaz
@TT what form would such a macro take? Just to display combined text, or save it somewhere? And in what format/structure? If the majority of requests have a lot in common then it is easier to create a generic solution. Otherwise it might be better to try to raise awareness of the underlying tec

Re: [tw5] Combine tiddlers into one

2021-05-15 Thread Saq Imtiaz
could produce > wonderful output in PDF format! > > > > Best wishes > Mohammad > > > On Sat, May 15, 2021 at 2:11 PM Saq Imtiaz wrote: > >> Below are three different ways to do this using reduce and without >> wikify. The last one uses a custom filte

Re: [tw5] Combine tiddlers into one

2021-05-15 Thread Saq Imtiaz
of operands. This might not be something everyone would find intuitive, however it has been very useful for me in my own wikis. On Saturday, May 15, 2021 at 8:08:32 PM UTC+2 Mohammad wrote: > On Sat, May 15, 2021 at 8:33 PM Saq Imtiaz wrote: > >> Just in the interest of thoroughne

Re: [tw5] Streams 0.21 is now available

2021-05-15 Thread Saq Imtiaz
@si @Saq In general do you think this would be a good feature to add to > Streams? You could pull out into a > separate tiddler tagged with $:/tags/streams/ViewTemplate. Then users can > easily customise what appears on a node just like we can with the > ViewTemplate for normal tiddlers. Obvi

Re: [tw5] Streams 0.21 is now available

2021-05-16 Thread Saq Imtiaz
@si you probably want to set a max-width for the .stream-root class. Also, I would strongly advise against customizing the stream-row-template tiddler and recommend that you customize stream-row-body instead to have an easier time upgrading to newer versions of Streams. -- You received this me

Re: [tw5] Streams 0.21 is now available

2021-05-16 Thread Saq Imtiaz
@fred happy to hear that you're finding your feet. >> -- 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 disc

Re: [tw5] Does the "text" field store data differently to other fields?

2021-05-16 Thread Saq Imtiaz
As @pmario states, you will need a custom editing UI for multiline fields. Also worth noting is that on node.js, tiddlers with multiline fields are saved as JSON and not in the .tid format. On Sunday, May 16, 2021 at 4:12:19 PM UTC+2 PMario wrote: > On Sunday, May 16, 2021 at 2:07:17 PM UTC+2 s

[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-16 Thread Saq Imtiaz
I assume card is a DOM node. Did you create it? If so, have you attached it to the document somewhere? A good approach, both for debugging and for asking for assistance, is to create a minimal test case that illustrates the problem you are facing. On Sunday, May 16, 2021 at 8:54:21 PM UTC+2 jam

[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-16 Thread Saq Imtiaz
Also if you want to transclude a tiddler literally and not as a template, try passing a variables hashmap as part of options to makeTranscludeWidget, setting the value of currentTiddler. On Sunday, May 16, 2021 at 11:49:13 PM UTC+2 Saq Imtiaz wrote: > I assume card is a DOM node. Did

[tw5] Re: $tw.wiki.renderTiddler("text/html", tiddler); & templates

2021-05-17 Thread Saq Imtiaz
but not the values from >>>> within banana that normally populate that template. It is using a DOM node >>>> i created from the document, >>>> >>>> Sounds like it might be the variables thing you mentioned. How do i get >>>> a variables

[tw5] Re: List of tiddlers modified between dates

2021-05-17 Thread Saq Imtiaz
Right, that is the deprecated regular express syntax that really should not be used. On Monday, May 17, 2021 at 12:50:23 PM UTC+2 PMario wrote: > Hi Jon, > Where did you find this filter syntax? > -m > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki"

Re: [tw5] Streams 0.21 is now available

2021-05-17 Thread Saq Imtiaz
On Tuesday, May 18, 2021 at 3:26:13 AM UTC+2 TW Tones wrote: > This is a simple way to list all streams on tiddler in your wiki What does that mean? Despite reading it several times I can't quite make sense of that sentence. -- You received this message because you are subscribed to the Goog

Re: [tw5] Streams 0.21 is now available

2021-05-18 Thread Saq Imtiaz
Start your filter with [[Test]get-stream-nodees[]... In your example TEST is a literal tiddler title and not a variable. On Tuesday, May 18, 2021 at 9:36:57 AM UTC+2 謝佩琪 wrote: > Hi > This Plugin is really great! > > I just try to merge streams to a tiddler. > > I follow the way in FAQs > but n

Re: [tw5] Streams 0.21 is now available

2021-05-18 Thread Saq Imtiaz
@Tony > In a related matter I was wondering if there were a simple way to > consolidate a whole stream and append it to the text field of the tiddler? > See https://saqimtiaz.github.io/streams/#Working%20with%20streams%20tiddlers The exact solution that works for you will depend on the nature

[tw5] Re: Question of :filter operator and sort

2021-05-18 Thread Saq Imtiaz
> Does this mean results are returned one by one and we cannot do an > operation like sort? > > Yes,correct. For sorting from 5.1.24 you can use :sort https://tiddlywiki.com/prerelease/#Sort%20Filter%20Run%20Prefix -- You received this message because you are subscribed to the Google Groups

Re: [tw5] Re: Question of :filter operator and sort

2021-05-18 Thread Saq Imtiaz
er and learn! > > Best wishes > Mohammad > > > On Tue, May 18, 2021 at 4:45 PM Saq Imtiaz wrote: > >> >> >>> Does this mean results are returned one by one and we cannot do an >>> operation like sort? >>> >>> >> Yes,correc

[tw5] Re: A question of sort: Sort tiddlers by some calculated values

2021-05-18 Thread Saq Imtiaz
Use the sortsub operator, or in 5.1.24 the :sort run prefix On Tuesday, May 18, 2021 at 2:18:44 PM UTC+2 Mohammad wrote: > Assume you have filtered a list of tiddlers. > > >1. For example you list all tiddlers tagged by student >2. Each tiddler has two fields: chemistry and math >3.

Re: [tw5] Re: Question of :filter operator and sort

2021-05-18 Thread Saq Imtiaz
@Mohammad if you feel we could rephrase the documentation to make this clearer, please do make a PR. On Tuesday, May 18, 2021 at 3:23:41 PM UTC+2 Mohammad wrote: > On Tue, May 18, 2021 at 4:53 PM Saq Imtiaz wrote: > >> The simplest way to look at :filter is that it removes the

[tw5] Re: A question of sort: Sort tiddlers by some calculated values

2021-05-18 Thread Saq Imtiaz
@Mohammad you know what I am going to say next ;) On Tuesday, May 18, 2021 at 5:34:31 PM UTC+2 Mohammad wrote: > That is amazing Saq! > > This is my solution and it works! This way we can write shorter and more > clear codes! > > <$vars vv-avgSubfilter="[{!!chemistry}] [{!!math}] +[average[]]">

[tw5] Re: Is there any limitation for using sortan?

2021-05-18 Thread Saq Imtiaz
Could you create an Issue please? The problem is that you are trying to sort by tags which is a list field and therefore internally an array, whereas sortan works with strings. I don't know that it makes sense to try and support sortan for the tags or list field, but it should fail gracefully a

[tw5] Re: xlsx-utils plugin

2021-05-18 Thread Saq Imtiaz
Try using the prerelease of TW 5.1.24 to do your import. It has a bug fix for the xlsx plugin: https://tiddlywiki.com/prerelease/ On Wednesday, May 19, 2021 at 12:33:46 AM UTC+2 History Buff wrote: > Just bumping this up to the top in case it was missed. > > I have a spreadsheet that I'd like to

Re: [tw5] Streams 0.21 is now available

2021-05-19 Thread Saq Imtiaz
> I hope a new feature that the report tiddler can still have bullet level There are a few options described in the documentation, you should be able to find one that you can customize for your needs: https://saqimtiaz.github.io/streams/#Working%20with%20streams%20tiddlers -- You received

[tw5] Re: Fission Demo Day

2021-05-19 Thread Saq Imtiaz
Thank you for the heads up Jeremy. I had seen this mentioned elsewhere but had confused it with next week's event. On Wednesday, May 19, 2021 at 10:06:40 AM UTC+2 Jeremy Ruston wrote: > I’ve been invited to do a brief demo of some new developments at tomorrows > Fission Demo Day. Everyone is we

[tw5] UX experiment - editor tools / autocomplete / Streams

2021-05-19 Thread Saq Imtiaz
It's another round of an hour's worth of distracted conference call experiments from today. This is an idea I've had for quite some time in various contexts: a UX for triggering actions in Streams like converting a node into a "to do" item with a checkbox, an autocomplete solution for links to

[tw5] Re: UX experiment - editor tools / autocomplete / Streams

2021-05-19 Thread Saq Imtiaz
Here is a Google drive hosted version of the video so you don't need to download it: https://drive.google.com/file/d/1ZuXRh3ZHF2tglGakaYq0gh4kBQDibB_m/view?usp=sharing On Wednesday, May 19, 2021 at 9:27:55 PM UTC+2 Saq Imtiaz wrote: > It's another round of an hour's w

[tw5] Re: UX experiment - editor tools / autocomplete / Streams

2021-05-19 Thread Saq Imtiaz
allow > the user to add custom triggers for custom "popup-templates"? > > <:-) > > On Wednesday, May 19, 2021 at 9:30:55 PM UTC+2 Saq Imtiaz wrote: > >> Here is a Google drive hosted version of the video so you don't need to >> download it: >> >

[tw5] Re: UX experiment - editor tools / autocomplete / Streams

2021-05-19 Thread Saq Imtiaz
> Yes, that sounds spot-on! But your demo in this thread also has some form > of "at-caret-position" - is this some totally other implementation? > It is code from the beginnings of a PR to add this ability to the core. However, there is need to discuss some technical implementation details

[tw5] Re: UX experiment - editor tools / autocomplete / Streams

2021-05-20 Thread Saq Imtiaz
Hi @Tony, @Mohamed and @Mohammad, replies inline below: > Could one cause the same to occur on existing text? > @Tony : the mechanism is a shortcut that shows a menu, in which menu items can invoke actions. It really does not care about the text, its nature or absence or presence. > consider

Re: [tw5] Import as external files (Node.js)

2021-05-20 Thread Saq Imtiaz
Nathan, have you restarted the node.js server after installing the plugin? If so, check the browser console for any error messages. On Thursday, May 20, 2021 at 6:45:45 PM UTC+2 natha...@gmail.com wrote: > Saq, I've installed this plugin in my node.js TW. I can see the additional > check boxes

Re: [tw5] Import as external files (Node.js)

2021-05-20 Thread Saq Imtiaz
The import UI lets you rename the file before you import. Remember to include the file extension in the name. Once the file has been saved in the files/ folder there is no further affordance for renaming it. On Thursday, May 20, 2021 at 10:49:32 PM UTC+2 natha...@gmail.com wrote: > Thanks for t

Re: [tw5] Import as external files (Node.js)

2021-05-20 Thread Saq Imtiaz
@Nathan what version of TW are you using? You need 5.1.23+ [image: Screenshot 2021-05-21 062059.png] If you are using 5.1.23, close the preview to see the "pencil" edit button to rename the image being imported. On Thursday, May 20, 2021 at 11:43:01 PM UTC+2 natha...@gmail.com wrote: > Thanks

[tw5] Re: TidGraph and Link Rendering

2021-05-21 Thread Saq Imtiaz
> Given: > Nodes in tidgraph are rendered with <$link/>, just as in the demo's > I am not sure that this is correct. At first glance it seems like tidgraph creates elements that look like they might have been generated by the <$link> widget, but have not. This is the core function that at

[tw5] Re: Fission Demo Day

2021-05-21 Thread Saq Imtiaz
Video: https://vimeo.com/553095193 Jeremy comes on at 17 minutes in. The twpub viewer work isn't associated with Fission in any way, just a demo of what Jeremy has been working on in TW. On Friday, May 21, 2021 at 10:57:48 AM UTC+2 ludwa6 wrote: > So sorry i had to miss this one. Was intrigue

[tw5] Re: TidGraph and Link Rendering

2021-05-21 Thread Saq Imtiaz
What element is nodecontent.children[0].children[0] ? If it is the element that is created perhaps you can do something like: nodeContent.querySelector("a.tc-tiddlylink"); On Friday, May 21, 2021 at 2:10:48 PM UTC+2 jvpo...@productmicro.be wrote: > I did do a *very ugly test* and it works (by

[tw5] Re: tiddler recognizes self as transcluded or not

2021-05-21 Thread Saq Imtiaz
If you are working with tiddlers being opened in the story river, you can compare the storyTiddler variable to the currentTiddler variable. On Friday, May 21, 2021 at 6:32:00 PM UTC+2 jn.pierr...@gmail.com wrote: > I have built a lengthy article by transcluding tiddlers. > > when I'm going dire

Re: [tw5] Re: [IDEA]: Drag and Drop a Bookmark.html Exported from Chrome/Edge/Firefox

2021-05-21 Thread Saq Imtiaz
@Mohammad attached is a very basic attempt at a deserializer to parse a bookmarks file. I wonder if the format is consistent enough amongst browsers. To test, rename your bookmarks file to have the extension .bookmarks and then import. Back up your wiki... I barely spent 5 minutes on this so th

Re: [tw5] Re: [IDEA]: Drag and Drop a Bookmark.html Exported from Chrome/Edge/Firefox

2021-05-21 Thread Saq Imtiaz
One of the things to consider is that neither title nor URL are bound to be unique in the bookmarks file, so you would need to guarantee somehow that the title used for each tiddler is unique or some will go missing. -- You received this message because you are subscribed to the Google Groups

Re: [tw5] Re: [IDEA]: Drag and Drop a Bookmark.html Exported from Chrome/Edge/Firefox

2021-05-21 Thread Saq Imtiaz
Hi Mohammad, I think it is time for you to try your hand at some JavaScript :) This is a good opportunity, the deserializer code is very simple, it is less than 10 lines of code. If you get stuck I will be happy to help :) So you need to do a String.replace

Re: [tw5] Re: [IDEA]: Drag and Drop a Bookmark.html Exported from Chrome/Edge/Firefox

2021-05-22 Thread Saq Imtiaz
> This is a good opportunity, the deserializer code is very simple ... >> ... you need to do a String.replace >> >> >> to replace the characters not allowed in tiddler titles. >> > > Right! It wo

Re: [tw5] Re: [IDEA]: Drag and Drop a Bookmark.html Exported from Chrome/Edge/Firefox

2021-05-22 Thread Saq Imtiaz
Hi Mohammad, it looks good! So we can't use the unusedtitle macro from TiddlyWiki because inside the deserializer code, these are not tiddlers yet. What I recommend is to create another empty array where we make the array for results, called resultsTitles Then inside the $tw.utils loop, where

Re: [tw5] Re: [IDEA]: Drag and Drop a Bookmark.html Exported from Chrome/Edge/Firefox

2021-05-22 Thread Saq Imtiaz
t;> wrote: >> >>> Hi Saq, >>> This is the third revision! I used indexOf() and it seems it is >>> compatible with ES5. >>> I am not sure if the code is an efficient one or not, but it works! >>> >>> To give it a try I have attached

Re: [tw5] Re: [IDEA]: Drag and Drop a Bookmark.html Exported from Chrome/Edge/Firefox

2021-05-22 Thread Saq Imtiaz
Hi Mohammad! As per our email discourse, your code is good. Polish it up and publish the first kookma JavaScript plugin! On Saturday, May 22, 2021 at 6:32:31 PM UTC+2 Mohammad wrote: > On Sat, May 22, 2021 at 8:44 PM Saq Imtiaz wrote: > >> @Mohammad yes you need to have

Re: [tw5] Re: [IDEA]: Drag and Drop a Bookmark.html Exported from Chrome/Edge/Firefox

2021-05-23 Thread Saq Imtiaz
@TT very true. I took a shortcut with parsing the bookmarks file format and directly grabbed the elements since those are the only elements with data of interest to us. Note that the .bookmarks extension is just a way to tell TW to use this deserializer to parse this file. The code can easily

[tw5] Re: Filter operators: Official documentation

2021-05-25 Thread Saq Imtiaz
@Mohammad <$list filter="[[inputlist]addsuffix[mysuffix]]"> > > How should I understand it needs an input parameter which is different > from input from a previous step? > > Can you please explain what you mean here? I have re-read it a few times and don't understand. Thank you. > -- You rec

[tw5] Re: Fully disable (re-)rendering of widgets

2021-05-25 Thread Saq Imtiaz
@Mirko, that is interesting. Do you have the same experience when using Streams directly, for example at https://saqimtiaz.github.io/sq-tw/streams-tiddlytoolmap2.html ? Are you using Streams 0.2+ ? The latest version is available at https://saqimtiaz.github.io/streams/ If you are able to shar

[tw5] Re: sum of variables

2021-05-25 Thread Saq Imtiaz
{{{ [get[amount]] =[get[amount]] +[sum[]] }}} On Tuesday, May 25, 2021 at 9:36:09 PM UTC+2 Mat wrote: > Both foo and bar have the same amount, say, 1. How should I get the > following to show the correct sum output, i.e 2. It currently outputs just > 1 (presumably because the identical amounts

  1   2   3   4   5   6   7   8   9   10   >