UPDATE: TagSearchPlugin

36 views
Skip to first unread message

Tobias Beer

unread,
Oct 10, 2010, 8:17:03 PM10/10/10
to TiddlyWiki
Hi everyone,

Finally, I took the time (more than I thought) to update
TagSearchPlugin...
* some two minutes to correct the bug reported by Saverio [1]
* quite a bit longer to accomodate PMario's feature request [2]
* to make the thing sticky
** and to allow you to ESCAPE out of it
* to allow for a toolbar command that can be styled with a nice svg in
TiddlySpace
** always consider toolbar commands from begin on when you develop a
new plugin!
* another hour to run it through minification [3] and all the really
helpful hints on how to improve the code and avoid errors
* the time to make the whole thing work in ie(6?!? wtf!!!)

So, here it is...

http://tagsearch.tiddlyspot.com

...somewhat released, but before you skim anew through the
instructions, here's what might be important:
*to reduce the stylesheet, the popup now has a class of 'tgs'
*the option 'open' is no longer of need as the popup now is sticky
**meaning: add or remove as many tags as you want in one go

So, before I update the includable space on TiddlySpot, please test it
to the bones and let me know it you run into any problems.

Cheers, Tobias.


[1] http://groups.google.com/group/tiddlywiki/browse_frm/thread/0e03b1b358547ac1
[2] http://groups.google.com/group/tiddlywiki/browse_frm/thread/877be0f95842d68c
[3] http://refresh-sf.com/yui

passingby

unread,
Oct 11, 2010, 5:59:38 AM10/11/10
to TiddlyWiki
Hi Tobias
Please have a look here at my mptw here http://sikhism.tiddlyspot.com/#TagSearchPluginInfo
I installed TagSearchPlugin and embedded the macro in ViewTemplate.
And although the macro itself is working as evident in the
http://sikhism.tiddlyspot.com/#TagSearchPluginInfo it is not showing
up in toolbar of tiddlers.
It was working in vanilla Tiddlywiki earlier, but its not working in
this MPTW.
> [1]http://groups.google.com/group/tiddlywiki/browse_frm/thread/0e03b1b35...
> [2]http://groups.google.com/group/tiddlywiki/browse_frm/thread/877be0f95...
> [3]http://refresh-sf.com/yui

Tobias Beer

unread,
Oct 11, 2010, 6:50:42 AM10/11/10
to TiddlyWiki
Hi Passingby,

As said in the documentation, if you are using a dedicated theme (like
MPTW and one of its themes) you must of course change the
ToolbarComannds section in your theme tiddler which in your case would
be MptwTheme.

Cheers, Tobias.

passingby

unread,
Oct 11, 2010, 8:18:41 AM10/11/10
to TiddlyWiki
Oh man! I was blind!
I was aware of the theme issue and I looked up the MptwTheme tiddler
again and again. But instead of scrolling down manually to the
##ViewTemplate section I kept on clicking in the hyperlink given in
the top section in the table. And that was what was misleading! It
opened up the standard VewTemplate tiddler every time! and every time
i thought, 'Hey, this is fine? '
I think this is a kind of a small bug. The description slices should
link to the local section of the tiddler.
Anyways, thanks a lot for your wonderful plugin and your support!

Yakov

unread,
Oct 11, 2010, 11:47:56 AM10/11/10
to TiddlyWiki
Wow, this sounds interesting. I was looking for something like this.
It allows to use tags as properties by adding categories, does it? I
mean the following. If I want to make a "property" to some tiddlers,
like a property is added to an object in JavaScript, I should add a
tag which is equal to the (text) value ("high") of a property
("priority") to the tiddler and than group some tags ("high",
"medium", "low") into the category ("priority"). Am I right?

However, I thought about properties namely since two properties can
get the same values.. How difficultely is it to introduce such a
system of "properties"?

Also, does your plug-in allow to search tags while importing tiddlers?
See, such a possibility would be very important if someone makes many
notes about something (say, food XD) and than wants to share them: if
there are many notes about other things, anyone who want to import the
"food" notes would be tired by filtering the tiddlers while importing.
Let me know if you've of any plugins which solve this issue.

Thanks for your work, I'll make some feedback when I try the plugin
and analyse the possibilities and limitations (I'm actually planning
to use TW in quite a sophisticated way, so many details are
important).

PMario

unread,
Oct 11, 2010, 12:37:04 PM10/11/10
to TiddlyWiki
Hi Tobias,
Very well done :)

So I need to create a nice svg for my theme :)
And look for a tricky way to append the tagSearch command into the
ToolbarCommands tiddler, if the space is included.

thx a lot !
mario

PMario

unread,
Oct 11, 2010, 12:40:43 PM10/11/10
to TiddlyWiki
On Oct 11, 5:47 pm, Yakov <yakov.litvin.publi...@gmail.com> wrote:
snip
> Also, does your plug-in allow to search tags while importing tiddlers?
> See, such a possibility would be very important if someone makes many
> notes about something (say, food XD) and than wants to share them: if
> there are many notes about other things, anyone who want to import the
> "food" notes would be tired by filtering the tiddlers while importing.
> Let me know if you've of any plugins which solve this issue.
Have a look at ImportTiddlersPlugin [1] which can be used for tag
import filtering. It can be also used as a bookmarklet [2] in your
browser. So there is no need for permanently include it into your tw,
if you want to save some space.

have fun!
mario
[1] http://www.tiddlytools.com/#ImportTiddlersPlugin
[2] http://www.tiddlytools.com/#InstantBookmarklets

Tobias Beer

unread,
Oct 11, 2010, 5:01:02 PM10/11/10
to TiddlyWiki
> It allows to use tags as properties by adding categories, does it?

If you understand tagging a tiddler with a given tag (which itself
belongs to a certain category) as 'assigning a property' ...then yes,
it allows you to assign properties. A system of which I make extensive
use in tbGTD [1]

On the other hand, more fundamental properties of a tiddler would
probably be tiddler fields. As it seems, those however are much less
often used when it comes to associating specific meaning with a
tiddler, e.g. assigning "priority -> high", etc... as tags are more
easily available.

So, equivalently to "tagging" one might, however, think of a somewhat
similar (or simplified interface w/o a need for GotoPlugin) for
assigning field values ...especially when it comes to clearly defined
"properties" and their allowed values ...in other words a kind of
"FieldsManager".

I would say, for quite a few properties, using fields is a much more
native apporach as compared to tagging. That way, one could reserve
tagging for keywords and meta-information ...instead of using tags for
certain "logical properties".

There are a few solutions outthere that make use of fields or allow
you to to aggregate tiddlers that fulfil certain field criteria, such
as "has-field" or "has-field-value" ...while the underlying
information is somewhat hidden from the general UI, yet still
accessible.

> Also, does your plug-in allow to search tags while importing tiddlers?

Does not and never will. That really is not in its scope. See PMario's
reply which should point you in the right direction.

Cheers, Tobias.

[1] http://tbgtd.tiddlyspot.com

Saverio

unread,
Oct 11, 2010, 5:31:43 PM10/11/10
to TiddlyWiki
I think the whole set of notions about slices, sections, fields, and
tags needs a careful re-evaluation. The pros and cons of each of these
alternatives should be enumerated and summarized. It may be that some
methods should be consolidated, and perhaps other ways be made more
robust, such as to support truly semantic tagging (see thread here
[1]).

[1]
http://groups.google.com/group/tiddlywiki/browse_thread/thread/b501b9832122e775/fa4658e56659fcae?hl=en&lnk=gst&q=semantic+tag#fa4658e56659fcae

PMario

unread,
Oct 12, 2010, 8:35:05 AM10/12/10
to TiddlyWiki
On Oct 11, 11:31 pm, Saverio <saverio.mavig...@gmail.com> wrote:
> I think the whole set of notions about slices, sections, fields, and
> tags needs a careful re-evaluation. The pros and cons of each of these
> alternatives should be enumerated and summarized. It may be that some
> methods should be consolidated, and perhaps other ways be made more
> robust, such as to support truly semantic tagging (see thread here
> [1]).
I started a new thread:
"TiddlyWiki / TiddlyWeb and semantic web" [1]

kind regards
mario

[1] http://groups.google.com/group/tiddlywiki/browse_thread/thread/6f2441f67bb842b3?hl=en
Reply all
Reply to author
Forward
0 new messages