Newbie needing some help with a plugin & a question

157 views
Skip to first unread message

Imaginos9

unread,
Nov 6, 2017, 2:24:37 PM11/6/17
to TiddlyWiki
Hi there everyone!

I just started using tiddlywiki a few days ago and have watched a few tutorials but am still very lost on many things, especially as most of the stuff out there is for TWClassic and I'm using TW5. So currently I'm doing an archiving type project where I'm just adding tags to various tiddlers for people to search to find stuff that falls under a specific tag. Someone asked about Boolean searches and I found a plugin called YourSearchPlugin but I can't get it to import, finally after manually downloading the javascript and using the import>file button TW tells me that it's a classic plugin and not supported with TW5. So how do I get Boolean searches like the YourSearchPlugin to work in TW5?

My question, outside of the plugin problem above, is where does TiddlyDesktop export a static html file to? I export, it says I exported ok but I can't find the file anywhere and I've searched the drive that TiddlyDesktop is installed on and my main drive, where the user files are stored.

Thanks for the help!

TonyM

unread,
Nov 6, 2017, 7:01:03 PM11/6/17
to TiddlyWiki
Imaginos,

Boolean logic is a system of showing relationships between sets by using the words AND, OR, and NOT. You do not need a plugin to do this in TiddlyWiki.

You need to use the filters in a list widget and other places where a series of Tags/titles separated with a space with ! for negation + and - is used to remove items from the set. Filters can contain variables, literals (text) transculsions, field values and a lot more.

There is also a search operator and more. at http://tiddlywiki.com/

Once you get started with the basics yell out here if you need help.

Tony

Imaginos9

unread,
Nov 6, 2017, 8:44:25 PM11/6/17
to TiddlyWiki


On Monday, November 6, 2017 at 5:01:03 PM UTC-7, TonyM wrote:
Imaginos,

Boolean logic is a system of showing relationships between sets by using the words AND, OR, and NOT. You do not need a plugin to do this in TiddlyWiki.

You need to use the filters in a list widget and other places where a series of Tags/titles separated with a space with ! for negation + and - is used to remove items from the set. Filters can contain variables, literals (text) transculsions, field values and a lot more.

There is also a search operator and more. at http://tiddlywiki.com/

Once you get started with the basics yell out here if you need help.

Tony


I'm afraid most of what you said is beyond me. Are you saying i can just search as it is now with something like comfy |house to find stuff tagged with comfy but not house? Currently all i have is a bunch of tiddlers that have tags in them. To the right I have the tiddlers in a simple index/table of contents layout, if that matters.

Table Item One
...SubTable1 (this has tags comfy, house, pool)
...SubTable2 (this has tags comfy, pool)
...SubTable3 (this has tags comfy, house)

Sorry if I'm being dense but the language is a bit confusing and I have not found any good tutorials, especially video for walking through some of this stuff.

Thanks!
Imaginos

 

Mark S.

unread,
Nov 6, 2017, 11:04:12 PM11/6/17
to TiddlyWiki
It's been awhile since I've used TWC. I don't recall tables having tags, so not sure about your table structure.

In any event, in TW5 only tiddlers have tags. When you want to produce a list of tiddlers you will most often use a filter, either inside of a macro such as <<list-links>>, a <$list> widget, or the filter option of the advanced search.

If you have tag Dog and tag Cat, and want to see all the tiddlers tagged "Dog" but not "Cat", you could use something like:

<<list-links "[tag[Dog]!tag[Cat]]">>

If you wanted to see all tiddlers tagged both with Dog and Cat:

<<list-links "[tag[Dog]tag[Cat]]">>

If you wanted to see all tiddlers tagged with either Dog or Cat:

<<list-links "[tag[Dog]] [tag[Cat]]">>

If you wanted to see tiddlers tagged with Dog or Cat but not both:

<<list-links "[tag[Dog]] [tag[Cat]] -[tag[Dog]tag[Cat]]">>

I could go on, but hopefully this gives you the idea. There's an introduction to filters at tiddlywiki.com: http://tiddlywiki.com/#Introduction%20to%20filter%20notation

Good luck!
Mark

Eskha

unread,
Nov 7, 2017, 8:28:32 AM11/7/17
to TiddlyWiki
Hi Imaginos9,

You may also use the syntax for filtered transclusion: {{{...}}} to display the result of a filter.

For instance Marks first example (to get tiddlers tagged "Dog" but not "Cat") becomes:
{{{[tag[Dog]!tag[Cat]]}}}

(You can also customize the result using templates tiddlers: http://tiddlywiki.com/#Transclusion%20with%20Templates)

Best regards.

Eskha

Imaginos9

unread,
Nov 7, 2017, 2:49:54 PM11/7/17
to TiddlyWiki
Hi there!

Thanks for the replies! I really appreciate them. I don't think I've made my problem clear though, so sorry about that. I do use links to show lists of the tiddlers and sort them. I can also see how using those in other tiddlers would be useful for showing only some stuff, which I'll need to do in the future, so thank you for that info!

The problem I'm having and why I tried to install that YourSearchPlugin is for people using the search bar to find specific tags in the tiddlers. Right now I can only type in 1 tag and have it show up in a search, such as comfy from my previous example. I want people to be able to use the search bar to add/subtract tags as they see fit, in what I was told was a boolean operation, such as comfy +house -pool (to search for comfy and house but not pool). The plugin YourSearchPlugin modifies the old TW Classic to have this function. TW5 doesn't seem to have this function inherent to it. So what I'm trying to find out is how to add that function.

"YourSearchPlugin Summary: Search your TiddlyWiki with advanced search features such as result lists, tiddler preview, result ranking, search filters, combined searches and many more." http://tiddlywiki.abego-software.de/#[[YourSearch%20Help]]

Thank You
Imaginos

Mark S.

unread,
Nov 7, 2017, 4:09:38 PM11/7/17
to TiddlyWiki
You know, I think I made a similar suggestion 2 years ago or so. The way you describe is similar to how other search forms work. Unfortunately, no one has come forward with a similar plugin (that I know of).

It would be fairly easy (I think) to make a custom search box with several drop-downs for tag values with checkboxes next to them to negate the logic. Sort of like the "advanced search" you see on library and institutional sites. But I suspect that you would find that too limiting having experienced the open-ended freedom of YourSearchPlugin.

Have fun,
Mark

TonyM

unread,
Nov 7, 2017, 6:46:04 PM11/7/17
to TiddlyWiki
Of course using the Advanced search in TW5 with the filter option you can do something similar

[tag[action]!tag[Other]]

However this is unnecessarily complex for someone just wanting to use tags and a little Boolean logic. Perhaps a tag search facility could reform the input and translate it to a tag filter. 

eg "action-Other" is translated to [tag[action]!tag[Other]]
"action Other" is translated to [tag[action] [tag[Other]]

Designed carefully this could leverage the filter syntax to great advantage, you could even have one scoped by fields rather than tags.

Regards
Tony 

Imaginos9

unread,
Nov 7, 2017, 7:01:23 PM11/7/17
to TiddlyWiki


On Tuesday, November 7, 2017 at 2:09:38 PM UTC-7, Mark S. wrote:
You know, I think I made a similar suggestion 2 years ago or so. The way you describe is similar to how other search forms work. Unfortunately, no one has come forward with a similar plugin (that I know of).

It would be fairly easy (I think) to make a custom search box with several drop-downs for tag values with checkboxes next to them to negate the logic. Sort of like the "advanced search" you see on library and institutional sites. But I suspect that you would find that too limiting having experienced the open-ended freedom of YourSearchPlugin.

Have fun,
Mark

So is there any way to get the YourSearchPlugin to work with tw5 then if nothing like this currently exists? Mind you I know nothing about writing java at all or most any program language, outside of some basic html.



 

Imaginos9

unread,
Nov 7, 2017, 7:03:18 PM11/7/17
to TiddlyWiki


On Tuesday, November 7, 2017 at 4:46:04 PM UTC-7, TonyM wrote:
Of course using the Advanced search in TW5 with the filter option you can do something similar

[tag[action]!tag[Other]]

However this is unnecessarily complex for someone just wanting to use tags and a little Boolean logic. Perhaps a tag search facility could reform the input and translate it to a tag filter. 

eg "action-Other" is translated to [tag[action]!tag[Other]]
"action Other" is translated to [tag[action] [tag[Other]]

Designed carefully this could leverage the filter syntax to great advantage, you could even have one scoped by fields rather than tags.

Regards
Tony 


That sounds interesting but I have no idea how to implement that :(  Do you have a working example that I could look at and hopefully figure out?

Mark S.

unread,
Nov 7, 2017, 7:21:43 PM11/7/17
to TiddlyWiki
The plugins from TWC are completely different from TW5. So something would have to be made pretty much from scratch.

Mark

Mark S.

unread,
Nov 7, 2017, 7:27:11 PM11/7/17
to TiddlyWiki
That seems to be on the same level of difficulty as a parser for tag searches.

That said, I can see how a javascript macro could be used to parse an input and create a filter. That could be the start of a search box (probably in it's own tab) that uses the simpler syntax.

Mark

TonyM

unread,
Nov 7, 2017, 9:08:12 PM11/7/17
to TiddlyWiki
I am building one now.

I have a minor problem, which may be solved by the time you read this, but I have a macro OR a field with a valid filter in it and want to use it in a $list filter.

I cant seem to make it work. Arggh

Tony
Reply all
Reply to author
Forward
0 new messages