How to automatically wikify words

9 views
Skip to first unread message

ravis...@gmail.com

unread,
Apr 29, 2008, 11:12:25 PM4/29/08
to TiddlyWiki
I recently started using tiddlywiki for jotting down my thoughts and I
felt a need for something that would automatically wikify words in the
body of a tiddler even if they are not wikiwords and on clicking them,
it would take us to search result with all those tiddlers which has
same tag or tittle includes that word.

Is it possible???

Eric Shulman

unread,
Apr 29, 2008, 11:38:50 PM4/29/08
to TiddlyWiki
> I recently started using tiddlywiki for jotting down my thoughts and I
> felt a need for something that would automatically wikify words in the
> body of a tiddler even if they are not wikiwords and on clicking them,

If you enclose non-wikiword content in [[...]], it will force it to
create a TiddlyLink.

> it would take us to search result with all those tiddlers which has
> same tag or tittle includes that word.

A TiddlyLink simply opens the indicated tiddler for display. What you
want is to create an 'automatic search link' that, instead of opening
the tiddler, submits a search using the enclosed text, and generates
the results into a tiddler.

Unfortunately, the TW core search feature does not generate a list of
matching tiddlers. Rather, it *displays* all matching tiddlers (after
closing any open tiddlers).

Fortunately, there is a TiddlyTools plugin:
http://www.TiddlyTools.com/#SearchOptionsPlugin
which can automatically generate a "list of results" into a tiddler
called [[SearchResults].

However, this feature is invoked via the regular search input field
(usually displayed in the sidebar). Even so, I think that the idea of
a SearchLink syntax would be very useful, and I am going to work on an
addition to SearchOptionsPlugin that would to provide a new
'formatter' to recognize and process a syntax such as:
[search[text]]
which would create linked text that, when clicked, would invoke the
plugin-defined [[SearchResults]] tiddler generation feature.

I'll post a followup announcement when it's available (perhaps in a
few days or maybe next week...)

-e
Eric Shulman
TiddlyTools / ELS Design Studios




>
> Is it possible???

Eric Shulman

unread,
Apr 30, 2008, 1:49:56 AM4/30/08
to TiddlyWiki
> a SearchLink syntax would be very useful, and I am going to work on an
> addition to SearchOptionsPlugin that would to provide a new 'formatter'
>
> I'll post a followup announcement when it's available (perhaps in a
> few days or maybe next week...)

well, it seems that it was much easier to implement than I had
estimated... and the new 'formatter' syntax is now available:

Get the latest update (v2.7.0) of
http://www.TiddlyTools.com/#SearchOptionsPlugin
Then, you can write the following syntax into your tiddler content:
[search[text to search]]
OR
[search[text to display|text to search]]

This will create a clickable link that automatically invokes a search
for the specified search text, and displays the results using whatever
current search options are enabled (e.g., <<option chkSearchList>>)

enjoy,
-e

FND

unread,
Apr 30, 2008, 6:05:28 AM4/30/08
to Tiddl...@googlegroups.com
> I felt a need for something that would automatically wikify words in the
> body of a tiddler even if they are not wikiwords

You *might* also be interested in this:
http://www.tiddlywiki.org/wiki/Auto-Completion


-- F.

ravis...@gmail.com

unread,
Apr 30, 2008, 10:35:00 PM4/30/08
to TiddlyWiki
@Eric, that was something like setting out to find India and
discovering America..

@FND, it was AutoWeavePlugin that I was looking. But if its
functionility could be enhanced, it would server as a great tool. It
presently looks for words in titles only and that too when the whole
phrase matches and case sensitivity is also met. Can we make some
change that would allow it to show results where only partial matches
are found, without case sensitivity, and also it looks into tags along
with titles.

for example, one title of the tiddler is:
"Jack And Jill Went Up The Hill"

now, if in body of another tiddler I type:

I was standing on top of a hill

The plugin wikifies the word "hill" and links it to the previous
tiddlers since it has the word "hill" in title even though the case is
different and it is not matching the complete phrase.

FND

unread,
May 1, 2008, 9:01:27 AM5/1/08
to Tiddl...@googlegroups.com
> it was AutoWeavePlugin that I was looking. But if its
> functionility could be enhanced, it would server as a great tool.

Well, maybe Udo picks up on your suggestions - you might want to create
a separate thread to make this more visible to him.


-- F.

Morris Gray

unread,
May 1, 2008, 12:27:43 PM5/1/08
to TiddlyWiki
On Apr 30, 3:49 pm, Eric Shulman <elsdes...@gmail.com> wrote:
> Get the latest update (v2.7.0) of
> http://www.TiddlyTools.com/#SearchOptionsPlugin
> Then, you can write the following syntax into your tiddler content:
> [search[text to search]]
> OR
> [search[text to display|text to search]]

I've been wanting something like this for a long time. Unfortunately
I am getting a Error in macro <<view>>
i.e. Error while executing macro <<view>> ReferenceError: e is not
defined.

Morris
SearchOptionsPlugin v2.7
TiddlyWiki 2.3
Windows Vista Home Premium

Eric Shulman

unread,
May 1, 2008, 1:05:40 PM5/1/08
to TiddlyWiki
> I've been wanting something like this for a long time. Unfortunately
> I am getting a Error in macro <<view>>
> i.e. Error while executing macro <<view>> ReferenceError: e is not
> defined.

That's very odd, as the new 'searchLink' formatter doesn't even use a
variable called 'e'...

Can you post your document somewhere for me to look at?

-e (definitely defined! :-)

Morris Gray

unread,
May 1, 2008, 8:02:06 PM5/1/08
to TiddlyWiki
On May 2, 3:05 am, Eric Shulman <elsdes...@gmail.com> wrote:

> -e (definitely defined! :-)

...Not only defined but refined as well :-)

In a more Lewcid moment (a clue!); I have saved you the trouble of
finding the error. The conflict appears to be in the
TiddlerNotesPlugin which does define e; but, comes adrift when used in
conjunction with the more refined -e :-) However it is the searchLink
formatter that comes out worse in the conflict by being the one that
coughs the error for some reason. I hope this aids in refining one or
the other of these useful plugins so that they may appear together on
the same stage.

Morris Gray
http://twhelp.tiddlyspot.com
A TiddlyWiki help file for beginners
http://sidebarnotes.tiddlyspot.com
All other things aside
Reply all
Reply to author
Forward
0 new messages