Embed a search into a tiddler

28 views
Skip to first unread message

Reenen

unread,
Oct 23, 2008, 5:33:19 AM10/23/08
to TiddlyWiki
hi... How do I create a macro that returns a search for a specific
word, specifically, Todo:, as I want to populate my Todo tiddler with
everything I wrote there, and whereever I wrote "Todo" in the wiki
(case insensitive if possible)

FND

unread,
Oct 23, 2008, 6:21:29 AM10/23/08
to Tiddl...@googlegroups.com
> How do I create a macro that returns a search for a specific word

I vaguely remember there was a thread about pre-populating / filtering a
search request, and I think I created a simple script for that -
however, all I could find was this:
http://groups.google.com/group/TiddlyWiki/t/3d7ef3a4c5001ee4
(A more thorough search of the archives should unearth more resources.)

Also, this might be of interest:
http://www.tiddlywiki.org/wiki/Enhanced_Search

> I want to populate my Todo tiddler with
> everything I wrote there, and whereever I wrote "Todo" in the wiki

FWIW, you could also manually assign tags and use the Tag or Tagging
macro to display the respective tiddlers:
http://www.tiddlywiki.org/wiki/Tag_(macro)
http://www.tiddlywiki.org/wiki/Tagging_(macro)

HTH.


-- F.

FND

unread,
Oct 23, 2008, 6:23:28 AM10/23/08
to Tiddl...@googlegroups.com
> FWIW, you could also manually assign tags and use the Tag or Tagging
> macro to display the respective tiddlers

Another option is the ForEachTiddlerPlugin*:
<<forEachTiddler
where 'tiddler.text.contains("foo")'
>>


-- F.


* http://tiddlywiki.abego-software.de/#ForEachTiddlerPlugin

Reenen Laurie

unread,
Oct 23, 2008, 8:00:32 AM10/23/08
to Tiddl...@googlegroups.com
Thanks, The foreachtiddler looks awesome, I'll use that! Thanks!
--
o__
,_.>/ _
(_)_\(_)_______
...speed is good
_______________
I believe five out of four people have a problem with fractions.

Reenen Laurie

unread,
Oct 24, 2008, 10:32:56 AM10/24/08
to Tiddl...@googlegroups.com
How do I make the search case insensitive?

FND

unread,
Oct 24, 2008, 10:40:17 AM10/24/08
to Tiddl...@googlegroups.com
> How do I make the search case insensitive?

Try this:
where 'tiddler.text.toLowerCase().contains("foo")'

HTH.


-- F.

Reenen Laurie

unread,
Oct 24, 2008, 11:03:41 AM10/24/08
to Tiddl...@googlegroups.com
Cool thanks!

elif...@gmail.com

unread,
Oct 24, 2008, 1:56:55 PM10/24/08
to TiddlyWiki
I was looking for something like this, but with a little "twist", is
there a way to search for a word and a specific tag at the same time?
In explanation, I usually write the name of whoever I talk to about
something, and I tag my tiddlers by type of work (Maintenance,
OfficeSupplies, Personnel...) and status (Done, ToDo, InProgress).
When I call a certain person, it would be great to search for whatever
is ToDo or InProgress, that concerns that person, but I don't care for
what is Done already. Is that possible, or am I pushing this too far?

Thanks in advance,
Eli

On Oct 24, 5:03 pm, "Reenen Laurie" <rlau...@gmail.com> wrote:
> Cool thanks!
>

FND

unread,
Oct 24, 2008, 2:06:59 PM10/24/08
to Tiddl...@googlegroups.com
> search for a word and a specific tag at the same time

Yes; try the following:
<<forEachTiddler
where 'tiddler.tags.contains("foo") &&
tiddler.text.contains("bar")'
>>
This should give you all tiddlers with the tag "foo" and the term "bar"
in the tiddler contents.

Take a look at the FET macro's documentation - the possibilities are
almost endless...


-- F.

Michael.Tarnowski

unread,
Oct 25, 2008, 6:16:52 AM10/25/08
to TiddlyWiki
To implement a search/replace fctn while editing, have a look at
Eric's QuickEdit tools: http://www.tiddlytools.com/#QuickEditPackage
there are sort & replace utils for in-tiddler usage.
Cheers Michael

wolfgang

unread,
Oct 25, 2008, 7:04:02 AM10/25/08
to TiddlyWiki
> > search for a word and a specific tag at the same time

Also with SearchOptionsPlugin it's easy to have a 'see also' link
somewhere in a tiddler, which opens a popup with the results of a
search of its containing tiddler's title - by default in other titles
+ texts + tags + fields + shadows. Take a look at the 'goto' toolbar
command at TiddlyTools for an example how this is implemented there:

http://www.tiddlytools.com/#SearchOptionsPlugin

Regareds,

W.

elif...@gmail.com

unread,
Oct 25, 2008, 3:39:57 PM10/25/08
to TiddlyWiki
The more I use it, the more I love it! I could have never suceeded in
my new job without my Wiki. Now, discovering this group has really
taken this to a new dimension!
Thank you for your answers, I'm sure I'll be back with new questions,
since every day I discover new ways for my Wiki to make my life
easier!
You are all fantastic!

Eli

elif...@gmail.com

unread,
Nov 6, 2008, 9:48:53 AM11/6/08
to TiddlyWiki
This suggestion works perfect for me, but I keep asking more out of my
wiki. Is there a way for it to ask for the word to search for? That
is, I always search for TODO and INPROGRESS tags, but on the tiddler
text I am looking for "someone"; right now I made a tiddler for each
person I could think of, but it would be much easier if I could just
type-in the one I am looking for (like in a search box, or a pop-up,
or whatever)
Thanks in advance!

wolfgang

unread,
Nov 6, 2008, 1:50:28 PM11/6/08
to TiddlyWiki
> text I am looking for "someone"; right now I made a tiddler for each
> person I could think of, but it would be much easier if I could just
> type-in the one I am looking for (like in a search box, or a pop-up,
> or whatever)

I would use YourSearchPlugin:

http://tiddlywiki.abego-software.de/#YourSearchPlugin

Regards,

W.

Marc J. Cawood

unread,
Nov 6, 2008, 4:03:41 PM11/6/08
to TiddlyWiki

David Keltie

unread,
Nov 6, 2008, 4:13:25 PM11/6/08
to Tiddl...@googlegroups.com
Link dead?

David

Morris Gray

unread,
Nov 6, 2008, 7:52:50 PM11/6/08
to TiddlyWiki
On Nov 7, 1:48 am, "elife...@gmail.com" <elife...@gmail.com> wrote:
> it would be much easier if I could just
> type-in the one I am looking for (like in a search box, or a pop-up,
> or whatever)

I believe the GoToPlugin is what you are describing. View a tiddler by
typing its title and pressing enter. As you type, a list of possible
matches is displayed.

http://tiddlytools.com/#GotoPlugin

Morris Gray
http://twhelp.tiddlyspot.com
A TiddlyWiki help file for beginners
http://sidebarpluginvault.tiddlyspot.com
World's largest squeezable TW plugin database

Anthony Muscio

unread,
Nov 6, 2008, 9:00:17 PM11/6/08
to Tiddl...@googlegroups.com
I use the goto plugin as follows in my SideBar

Contact     :<<gotoTiddler search filter:".contact">>

Thus it will only list as I type those with tiddlers tagged ".contact", the search option allows me to search the text of all contacts if it is not found in the titles.

I also Tag tiddlers with a contact name. I can then goto the contact and see all the tiddlers tagged with the contact using tagglyTagging.

If you type the contact name (as a WikiWord) eg [[Tony Me]] in the tiddlers text you can go to the contact tiddler "Tony Me" and use the menu option to look at references and find all tiddlers in which "Tony Me" was mentioned.

Too Many Choices Eh...

TonyM

If you have not found an easy way to do it with TiddlyWiki, you have missed something.
www.tiddlywiki.com

Reply all
Reply to author
Forward
0 new messages