list filter displays list without carriage return (TW5)

159 views
Skip to first unread message

Dave

unread,
Oct 21, 2015, 10:14:41 PM10/21/15
to TiddlyWiki
When I try this in a tiddler "LifeguardingStuff"

<$list filter="[all[current]tagging[]sort[title]]"></$list>

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


the output I get (for both instances) is:

lifesavingPrinciplesScenarios


instead of this:


lifesavingPrinciples

Scenarios



What am I doing wrong?

RichardWilliamSmith

unread,
Oct 22, 2015, 12:15:46 AM10/22/15
to TiddlyWiki
Nothing. That's what it's supposed to do. There are times when that behaviour is useful and it's not much of an inconvenience to require a line break to force block formatting.

Regards,
Richard

Dave

unread,
Oct 22, 2015, 12:24:59 AM10/22/15
to TiddlyWiki
You beat me to it.  I was just laying around with it and realized (thanks to show preview) that it behaves the way I want if you put a carriage return after the list. :)

Dave

unread,
Oct 22, 2015, 1:33:56 AM10/22/15
to TiddlyWiki

In case others are looking for the same thing... 


I was trying to reproduce the taggly tagging list of sub tiddlers at the bottom of a tiddler, and to get around the carriage return limitation above, you can just make a macro in a tiddler (e.g. TaggingMacroReverseOrder) like this:

\define tgngr()

<$list filter="[all[current]tagging[]reverse[]]"/>

\end

and at the bottom of any tiddler you want the tagging list just put this:

<<tgngr>> <-- regardles of carriage returns here


to make it globally applicable you have to tag the "TaggingMacroReverseOrder" tiddler with "$:/tags/Macro" (without the quotes)


I have to say that I had been hesitant to switch to TW5 from TWC, but I now see that the design is so much more flexible and a pleasure to learn and use (after only a single day of frustration).  I'd never made a macro before, and I was looking for a replacement for Eric's AliasPlugin, and this is it! - Just make your own macro :)

PMario

unread,
Oct 22, 2015, 5:01:06 AM10/22/15
to TiddlyWiki
On Thursday, October 22, 2015 at 7:33:56 AM UTC+2, Dave wrote:
... (after only a single day of frustration). 

And that's the key words here. ... TiddlyWiki seems to have users with quite a high level of resistance against frustration. But that's not the majority of possible users :)

Request for everyone reading ;) !

What kind of information, would have been needed to keep the frustration level lower or even better to avoid it. ... Such info can only come from new users, since many long time users already changed and documented, the aspects, that made them unhappy.


So I don't expect something like: "Better documentation", instead I'd like to get some text / info that we can include at tiddlywiki.com

have fun!
mario


Dave

unread,
Oct 22, 2015, 3:04:52 PM10/22/15
to TiddlyWiki
Here's an example of one frustration when I was trying to figure out this tagglytagging replacement.

I came across this tiddler on the main site

http://tiddlywiki.com/#tagging%20Operator%20%28Examples%29

Here's what it displayed (with the first "try it" button clicked

[[task]tagging[]]
→ same as [tag[task]]

Concepts task +[tagging[]]

[all[current]tagging[]]
→ tiddlers tagged with the current one



Now by this time I'd already figured out that just entering this


[[task]tagging[]]


didn't do anything, no frustration there.  So having used TWC before I knew there'd be some hidden code in the edit mode and I saw this




<<.operator-example 1 "[[task]tagging[]]" "same as `[tag[task]]`">>
<<.operator-example 2 "Concepts task +[tagging[]]">>
<<.operator-example 3 "[all[current]tagging[]]" "tiddlers tagged with the current one">>

here's the frustration:  I copied that into my personal TW5 and closed the edit mode and nothing was there.  I tagged that tiddler with "task" and also created a new tiddler tagged with that tiddler the code was in and still nothing.

I think the brilliant part of tiddlywiki (non-linearity) is also a frustration source:  A person can search for the functionalty and find it but not be able to use it because there's no clear indication of what I was supposed to have read already to understand how to use it.  I did obviously figure it out, but ideally each instructional tiddler should say how to reproduce that function without assuming too much previous knowledge.

That said (because you asked), I'm still very happy with this new TW and look forward to exploring it!

Matabele

unread,
Oct 23, 2015, 1:03:31 AM10/23/15
to TiddlyWiki
Hi

This filter expression should do much the same:

---
<$list filter="[tag{!!title}sort[]]"/>

Or in macro form:

\define taggedby()
---
<$list filter="[tag{!!title}sort[]]"/>

\end

<<taggedby>>

Note: single blank line after the $list widget

regards

Tobias Beer

unread,
Oct 23, 2015, 4:54:36 AM10/23/15
to tiddl...@googlegroups.com
Hi Matabele / Dave, 

Note: single blank line after the $list widget 

Interesting.

Note that this works only so long as there is also an empty line (or nothing) before:

<<taggedby>>

So, all of these will make it all inline again...

foo <<taggedby>>

----
<<taggedby>>

<<taggedby>> foo

This, eventually won't...

before

<<taggedby>>
after

The above being the minimum space required to not trigger inline-mode.

Best wishes,

— tb
Reply all
Reply to author
Forward
0 new messages