My Notes TW idea - forEachTiddler question

64 views
Skip to first unread message

Dave Gifford - http://www.giffmex.org/

unread,
Jan 24, 2008, 10:10:50 AM1/24/08
to TiddlyWiki
Hi all,

I have someone who wants to know if they could have an extra feature
to my My Notes TW (http://www.giffmex.org/emptynotestw.html). He or
she would like to be able to have a tiddler for each topic so that he
sees the topic divided up by notetype, and vice versa - have tiddlers
for each notetype divided up by topic.

At first I thought it would be easy, since I do something similar in
BibblyWiki. Here is a sample code I use for the seminary library.

<<forEachTiddler
where 'tiddler.tags.contains("bibentry") &&
tiddler.data("primtopic")'
sortBy 'GroupTitle = tiddler.data("primtopic")
+"###"+tiddler.data("booktitle")'
script 'function getGroupTitle(tiddler, context) {
if (!context.lastGroup || context.lastGroup !=
tiddler.data("primtopic"))
{
context.lastGroup = tiddler.data("primtopic");
return "!! {{{"+(context.lastGroup?context.lastGroup:"no
categorizados")+"}}}\n";
} else return "";}'
write
'getGroupTitle(tiddler, context)+"** [["+tiddler.title+"]]
{{indent{[["+tiddler.data("callnumber")+"]]}}}
{{indent{[[aquí|"+tiddler.title+"]]}}}\n"'
>>

But then I realized that the forEachTiddler code in BibblyWiki works
with form fields. But the MyNotes info is sorted by MonkeyTagger
macros.

Is there a way to tweak forEachTiddler so that it does something like
the following?

forEachTiddler
where tiddler.tags.contains("the note type the user inputs")
write
each monkeytagger notetopic alphabetically as a headline (!Topic) +
bulleted list of the tiddlers with that notetopic listed under each.

AND/OR

forEachTiddler
where tiddler.tags.contains("the topic the user inputs")
write
each monkeytagger notetype alphabetically as a headline (!Notetype) +
bulleted list of the tiddlers with that notetype listed under each.

I would love to know how to do this - has lots of potential - and I
would also love to help this person out with their desired
modification to My Notes TW.

Blessings,

Dave Gifford

Ken Girard

unread,
Jan 24, 2008, 9:53:20 PM1/24/08
to TiddlyWiki
Take a look at:
http://no-sin.com/wiki/WorkTracker.html#%5B%5BTrainings%20in%20State%5D%5D

I use a custom field called 'searchfield' for data entry (normally
hidden via HideWhen), and then list all tiddlers that have matching
data in another custom field (state), but I am sure you could easily
change it to match up with a tag by tweaking:
where
'(store.getValue(tiddler,"state") ==
store.getValue(context.inTiddler,"searchfield"))'

Ken Girard

On Jan 24, 9:10 am, "Dave Gifford - http://www.giffmex.org/"

iain

unread,
Jan 25, 2008, 2:50:29 AM1/25/08
to TiddlyWiki
Dave,

are you going to post the final result as an updated version of "My
Notes"??

Iain

Dave Gifford - http://www.giffmex.org/

unread,
Jan 25, 2008, 12:18:24 PM1/25/08
to TiddlyWiki
Hi Ken and Iain

Ken: I also use foreach to track data in form fields. What I need is
how to track when a monkeytagger macro is "x". Since I know no
Javascript and all that, I just depend on you guys bailing me out!

Iain: If it looks nice I might add it to the notes by note type part
so that they display results by topic. Importing it to your current
version should just be a matter of importing 10 or so tiddlers and
shouldn't require any other tweaks.

Dave

I function

unread,
Jan 27, 2008, 3:14:12 PM1/27/08
to TiddlyWiki
Come on fellas, you can do this one!!

On Jan 25, 8:18 am, "Dave Gifford - http://www.giffmex.org/"

Dave Gifford - http://www.giffmex.org/

unread,
Jan 29, 2008, 7:15:12 AM1/29/08
to TiddlyWiki
Can anyone tell that I function in the post above is the one who asked
me for this?

Seriously, I love the forEachTiddler and MonkeyTagger plugins, and
think that they are a great combination for indexing tags. If someone
could help me out with the problem I pose in the original post, it
could really be a great benefit to the TW toolkit. It would allow two
dropdown lists to cross reference each other in automatically
generated indexes. Where are Saq and Udo? They created these plugins,
maybe they could figure out how to code this fairly easily?

Dave Gifford

FND

unread,
Jan 29, 2008, 8:27:52 AM1/29/08
to Tiddl...@googlegroups.com
> If someone could help me out with the problem I pose in the original post

Quite honestly: I'm not exactly sure what you're asking for there.
Maybe that's because I'm not intimately familiar with both MonkeyTagger
and My Notes TiddlyWiki.
Either way, your chances of getting help would certainly improve if you
could describe your request in a concise way that even dummies like
myself could relate to... :)


-- F.

Saq Imtiaz

unread,
Jan 29, 2008, 8:29:46 AM1/29/08
to Tiddl...@googlegroups.com
Hiya Dave,

Sorry about not taking a lot at this sooner. OK.. so perhaps I'm just a little slow today but I'm having a bit of a hard time following exactly what you want to do. Could you perhaps try to provide me with an actual example?

MonkeyTagger works on a tagging principle. So if you want all the different notetypes, you'd get them by store.getTaggedTiddlers('notetype')

Does that help at all?

Working with this:


forEachTiddler
where tiddler.tags.contains("the topic the user inputs")
write
each monkeytagger notetype alphabetically as a headline (!Notetype) +
bulleted list of the tiddlers with that notetype listed under each.

I get the following:

forEachTiddler
where 'tiddler.tags.contains("foo")'
script 'function getNoteTypes(){
var out ="";
var notetypes = store.getTaggedTiddlers("notetype");
for (var i=0; i< tiddler.tags.length; i++){
    var tag = tiddler.tags[i];
    if(notetypes.contains(tag)){
        out += "!"+ tag + "\n" + store.getTaggedTiddlers(tag).join("\n");
    }
}
return out;}'
write 'getNoteType()'


But I dont completely understand what you're doing so thats mostly guesswork. Code untested btw.

Hope that helps,
Saq
--
Tiddly Learning ( http://lewcid.org ) : TiddlyWiki news, plugins, themes and educational usage

Dave Gifford - http://www.giffmex.org/

unread,
Jan 29, 2008, 9:25:22 AM1/29/08
to TiddlyWiki
Thanks for your replies, Saq and Fred. Sorry for my confusing
description, maybe I was too concise. Here is what I'm shooting for:

1. In the My Notes TW you can see your note tiddler displayed by
either the topic or the type of note it is (quotation, statistic,
etc). A monkeytagger dropdown list in the viewtemplate helps you
decide what topic(s) and what note type should be assigned to each
note tiddler.
> Tiddly Learning (http://lewcid.org) : TiddlyWiki news, plugins, themes and
> educational usage

Dave Gifford - http://www.giffmex.org/

unread,
Jan 29, 2008, 9:26:54 AM1/29/08
to TiddlyWiki
Sorry, I must have hit send without realizing it. Let me finish in a
moment...

Dave Gifford - http://www.giffmex.org/

unread,
Jan 29, 2008, 9:39:47 AM1/29/08
to TiddlyWiki
Thanks for your replies, Saq and Fred. Sorry for my confusing
description, maybe I was too concise. Here is what I'm shooting for:

1. In the My Notes TW you can see your note tiddler displayed by
either the topic or the type of note it is (quotation, statistic,
etc). A monkeytagger dropdown list in the viewtemplate helps you
decide what topic(s) and what note type should be assigned to each
note tiddler. ForEachTiddler currently provides unsorted indexes based
on the tag.

2. But someone named "I function" asked if it were possible to cross-
reference these, so that when I open the index for, say, tiddlers with
the note type "Statistics", I get the same list of tiddler titles, but
now they are sorted alphabetically by topic, so that each topic is
listed as a headline text and the tiddlers show up below it. It would
look something like this:

http://www.giffmex.org/emptynotestw.html#TiddlyWiki

but whereas the tiddler in the link above is generated by a form
field, the index I'm suggesting would be generated by the various
items listed in the monkeytagger macro "notetopic". Ah! But wait, now
I understand your comment, Saq -- if an item is in a Monkeytagger
notetopic list, it's because it has a notetopic tag. So maybe it's
just a matter of having the forEach say, where
tiddler.tags.contains("Statistics")
the script groups them by notetopic tag, sorted alphabetically and
writes ! notetopic and lists the tiddlers as a bulleted list below it.

I'm no javascript person, but I think by comparing the scripts I have
in my various TWs, I can come up with that, if Saq's code above
doesn't work.

Thanks, guys, for getting me to think this through.

Dave

Saq Imtiaz

unread,
Jan 29, 2008, 9:49:05 AM1/29/08
to Tiddl...@googlegroups.com
Dave,

If the code I provided doesn't work, do let me know. I think I'm a lot closer to understanding what you need now.

Cheers,
Saq
--
Tiddly Learning ( http://lewcid.org ) : TiddlyWiki news, plugins, themes and educational usage

Dave Gifford - http://www.giffmex.org/

unread,
Jan 29, 2008, 10:25:36 AM1/29/08
to TiddlyWiki

Saq it's coming up blank, or just listing the tiddler titles. I also
experimented just now with the getGroup function which is what I use
elsewhere on the same file. I'm thinking it needs to be something
relatively like this:

forEachTiddler
where
'tiddler != context.inTiddler &&
tiddler.tags.contains(context.inTiddler.title)' [THIS IS TO MAKE IT
EASIER FOR USERS TO CREATE A NEW INDEX WITH A SIDEBAR MACRO]
script
[get grouptitle where group = the list of tiddler titles that have the
notetopic tag that also have the tag mentioned in the where clause,
and if there is no notetopic tag assigned, list as "No topic yet"]
write
'getGroupTitle(tiddler, context)+"* [["+tiddler.title+"]]\n"'
>>

Dave
> Tiddly Learning (http://lewcid.org) : TiddlyWiki news, plugins, themes and
> educational usage

I function

unread,
Jan 31, 2008, 7:15:42 PM1/31/08
to TiddlyWiki
Yay! Progress???!??

Keep up the good work boys!

I wish I could decipher your computer speak. I'm just the idea guy.

On Jan 29, 6:25 am, "Dave Gifford - http://www.giffmex.org/"

Dave Gifford - http://www.giffmex.org/

unread,
Feb 5, 2008, 9:12:59 AM2/5/08
to TiddlyWiki
I'm going to bump this one to the top again. I think the bigshots are
holding out on us. Need to be persistent...

Dave

FND

unread,
Feb 5, 2008, 11:34:17 AM2/5/08
to Tiddl...@googlegroups.com
> I think the bigshots are holding out on us.

If I understand this correctly (and I'm afraid I'm not sure I do),
Pascal's recently released TagsTreePlugin should do what you want:
http://visualtw.ouvaton.org/VisualTW.html#TagsTreePlugin

HTH.


-- F.

FND

unread,
Feb 5, 2008, 11:49:19 AM2/5/08
to Tiddl...@googlegroups.com
> If I understand this correctly (and I'm afraid I'm not sure I do)

Also try this bit:
---------------
<<forEachTiddler
where 'tiddler.tags.contains("notetopic")'


script 'function getNoteTypes() {
var out = "";

var noteTypes = store.getTaggedTiddlers("notetype");
var tag, tiddlers, j;
for(var i = 0; i < noteTypes.length; i++) {
tag = noteTypes[i].title;
out += "!![[" + tag + "]]\n"
tiddlers = store.getTaggedTiddlers(tag);
for(j = 0; i < tiddlers.length; i++) {
out += "* [[" + tiddlers[i].title + "]]\n";
}
}
return out;
}'
write '"!" + tiddler.title + "\n" + getNoteTypes()'
>>
---------------

If none of this matches your requirements, please create a minimalist
TiddlyWiki document that better illustrates your needs.


-- F.

Sean

unread,
Feb 5, 2008, 5:27:45 PM2/5/08
to TiddlyWiki
> I get the same list of tiddler titles, but
> now they are sorted alphabetically by topic, so that each topic is
> listed as a headline text and the tiddlers show up below it.

I'm not sure if I'm completely understanding what you want, but
wouldn't TagglyTagging in group or sitemap view work for what you
want? I have a note TW of my own and I use that to generate an index.

Also, when I want to add a new book to put down bibliographical
information (I actually took some parts from your bibblywiki :) ) I
have a 'new book' button that opens a new tiddler with the following
as the default text:

!Book Title
<<slider chkBookDetails newBookTemplate2 'Book Details' 'Book
Details'>>
<<forEachTiddler
where
'tiddler.tags.contains("Book Title")'
write
'"+++!!!!^40em^*[" + tiddler.title + "|" + tiddler.title + "]
\n <<tiddler [[" + tiddler.title + "]]$))
==="'"
>>

The forEachTiddler code formats the tiddler to display a link for a
popup inline slider for each tiddler that has a tag with the book
title's name.

I know this probably isn't the best explanation, but if you want me to
upload it so you can see if it will help (or are just curious) just
let me know.

-Sean

Dave Gifford - http://www.giffmex.org/

unread,
Feb 8, 2008, 10:58:52 AM2/8/08
to TiddlyWiki

> If none of this matches your requirements, please create a minimalist
> TiddlyWiki document that better illustrates your needs.
>
> -- F.

Hi Fred and any onlookers,

First, congrats on your 'selling out', Fred. Hope you enjoy working
with Osmosoft.

Second, while it's not minimalist, I did create a tiddler in a TW so
you can see what I am (still) looking for. The url:

http://www.giffmex.org/emptynotestwexperiment.html#%5B%5BHowTo%20Example%5D%5D

ThFYH

Blessings,

Dave

FND

unread,
Feb 8, 2008, 2:05:19 PM2/8/08
to Tiddl...@googlegroups.com
> Second, while it's not minimalist, I did create a tiddler in a TW so
> you can see what I am (still) looking for.

That actually made it much easier to understand what you're really after.

So try this (requires EvalMacro*):
---------------
<<eval
'
function getTiddlerHierarchy(scope, category) {
// retrieve topics
var categories = store.getTaggedTiddlers(category);
var topics = [];
for(var i = 0; i < categories.length; i++)
topics.push(categories[i].title);
// generate index
var index = {};
for(i = 0; i < topics.length; i++) {
index[topics[i]] = [];
store.forEachTiddler(function(title, tiddler) {
if(tiddler.tags.containsAll([scope, topics[i]]))
index[topics[i]].push(title);
});
}
return index;
}

var index = getTiddlerHierarchy(tiddler.title, "notetopic");
var output = "";
var i;
for(topic in index) {
output += "!" + topic + "\n";
for(i = 0; i < index[topic].length; i++) {
output += "* [[" + index[topic][i] + "]]\n";
}
}
wikify(output, place);
'
"scriptMode"
>>
---------------

I somehow feel there should be another, less complex way - but all I
could think of were nested ForEachTiddler macro calls, and those aren't
very pretty either...

HTH.


-- F.


* http://devpad.tiddlyspot.com/#EvalMacro

Dave Gifford - http://www.giffmex.org/

unread,
Feb 8, 2008, 3:21:26 PM2/8/08
to TiddlyWiki
Yowza! The goal is now so close I can almost taste it! It's also nice
to use one of YOUR plugins for once!

Now, Fred, the only shortcoming I see is the following: if there are
topics that do not contain tiddlers tagged with "HowTo", the topics
still show up in the index.
Open HowTo in the mainmenu to see what I mean. Then open Cooking to
see an even worse example. http://www.giffmex.org/emptynotestwexperiment.html

Is there a way to suppress the topics that don't have any HowTo
tiddlers linked to them? BTW, as you can see, I already reversed your
code so that Cooking references all notetypes, just as HowTo
references all notetopics.

Dave

FND

unread,
Feb 8, 2008, 5:37:09 PM2/8/08
to Tiddl...@googlegroups.com
> if there are topics that do not contain tiddlers tagged with "HowTo",
> the topics still show up in the index

Oh right, I forgot to implement that condition - that's an easy fix though.

However, I don't like how this big chunk of code needs to be manually
inserted into all "notetopic" tiddlers. So let's turn this into a proper
macro then, shall we:
http://devpad.tiddlyspot.com/#TiddlerHierarchyMacro
(I'm having trouble finding a fitting name for this plugin - suggestions
are welcome!)

Now all you need to do is enter the following:
<<tiddlerHierarchy "notetopic">>

That way you could also use HideWhenPlugin to automatically invoke this
macro for all tiddlers tagged with "notetopic".

HTH.


-- F.

Dave Gifford - http://www.giffmex.org/

unread,
Feb 8, 2008, 6:27:54 PM2/8/08
to TiddlyWiki
Actually, I was going to create a macro that calls up a template.
<<newTiddler title:"Blank topic" label:"new topic" tag:"notetopic"
text: {{store.getTiddlerText("NoteTopicMacroInfo")}}>>

Dave

Dave Gifford - http://www.giffmex.org/

unread,
Feb 8, 2008, 6:29:06 PM2/8/08
to TiddlyWiki
Ah, okay I get it. Ignore my previous post. I'm going to give it a try
now.

Dave

Dave Gifford - http://www.giffmex.org/

unread,
Feb 8, 2008, 6:32:50 PM2/8/08
to TiddlyWiki

> (I'm having trouble finding a fitting name for this plugin - suggestions
> are welcome!)

CrossIndexingMacro?
CrossReferencingIndexesMacro?
MacroFavorForGiffmex0001? (made sure to leave enough digits to account
for future favors)

Dave

Dave Gifford - http://www.giffmex.org/

unread,
Feb 8, 2008, 6:49:39 PM2/8/08
to TiddlyWiki
Fred

Just when I thought you had done it, I just realized something: what
about the tiddlers tagged with notetype that are NOT marked by the
user with notetopic? They don't appear in the list.

After all you did, and the beautiful knockup job on the macro, I hate
to hit you with this...

Dave

FND

unread,
Feb 9, 2008, 3:19:02 AM2/9/08
to Tiddl...@googlegroups.com
> Just when I thought you had done it, I just realized something: what
> about the tiddlers tagged with notetype that are NOT marked by the
> user with notetopic? They don't appear in the list.

Try this version:
http://fnd.lewcid.org/svn/TiddlyWiki/plugins/CrossIndexingMacro.js
I haven't tested this (lacking a proper testcase), so it might be
missing the point.


-- F.

Dave Gifford - http://www.giffmex.org/

unread,
Feb 9, 2008, 9:02:25 AM2/9/08
to TiddlyWiki
Fred, you did it!!!!

See http://www.giffmex.org/emptynotestwexperiment.html#HowTo for how
it looks in action. I also added the macro to the 'new note type'
button, so users can adjust it as necessary.

I am pleased as punch. I think this macro is a big deal. You should
announce its arrival to the world in a separate thread. It deserves
some attention. There have to be a zillion good ways to use a cross
indexing macro like this.

Chicken recipes sorted by what dish or by what ethnic style,
Songs sorted by album or by artist
Actions sorted by project or by energy level

I know TagglyTagging has been around a while, and in many ways is
superior to this, because this is limited to one level of depth. But
for those who just need to see all items with one tag sorted by
another tag and including those not tagged with the second tag, this
is the way.

Do you have an Amazon wishlist, paypal, or some other way to do you a
favor as a way of saying thank you? You spent an inordinate amount of
time on this, and the results were superb.

Blessings to you and thank you,

Dave Gifford

SPECIAL NOTE TO I FUNCTION: The link above is the tweak to My Notes TW
that you asked for. Thank you for inspiring this brilliant addition to
TiddlyWiki. I have updated the current note tye indexes and the new
note type button so that all note types will be sorted by topic. If
you wish to see any of your *topics* sorted by note *type*, replace
the present text of the topic tiddler with <<crossIndex notetype>>, or
go all the way and add it to your NoteTopicMacroInfo tiddler so that
new topics automatically have the macro in place. As I said before,
you will lose the subtopic functionality in the topic indexes, so I
personally don't recommend it. But if you want that, go for it.
Consider yourself served! I will update the main MyNotes TW at my site
later, after I make sure I haven't overlooked anything.

SteveB

unread,
Feb 9, 2008, 10:25:12 AM2/9/08
to TiddlyWiki
I've been loosely following this thread and now it seems that My Notes
TiddlyWiki has great new functionality. Can someone give us
instructions on how to retro-fit this functionality into an existing
My Notes TW? I must ask that any instructions be very simple to
understand, I'm just now learning how to spell TiddlyWiki!

Thanks!
Steve

On Feb 9, 8:02 am, "Dave Gifford - http://www.giffmex.org/"
<giff...@gmail.com> wrote:
> Fred, you did it!!!!
>
> Seehttp://www.giffmex.org/emptynotestwexperiment.html#HowTofor how

Dave Gifford - http://www.giffmex.org/

unread,
Feb 9, 2008, 10:47:19 AM2/9/08
to TiddlyWiki
Steve,

I will make sure the instructions are updated before uploading the new
version of My Notes. Deal? I also plan to revise the formatting a
bit.

Dave

On Feb 9, 10:25 am, SteveB <SLB1...@gmail.com> wrote:
> I've been loosely following this thread and now it seems that My Notes
> TiddlyWiki has great new functionality. Can someone give us
> instructions on how to retro-fit this functionality into an existing
> My Notes TW? I must ask that any instructions be very simple to
> understand, I'm just now learning how to spell TiddlyWiki!
>
> Thanks!
> Steve
>
> On Feb 9, 8:02 am, "Dave Gifford -http://www.giffmex.org/"

FND

unread,
Feb 9, 2008, 11:29:29 AM2/9/08
to Tiddl...@googlegroups.com
> Fred, you did it!!!!

Glad it works.

> I think this macro is a big deal. You should announce its arrival
> to the world in a separate thread.

This might sound very strange, but I'm not entirely sure what this macro
actually does - in general terms, that is.
So before I can announce anything, I'll need to wrap my head around this
first so I can describe and document it properly - which will most
likely lead to some code modifications to make the whole thing more
flexible/universal...

> Do you have an Amazon wishlist, paypal, or some other way to do you a
> favor as a way of saying thank you?

I appreciate the sentiment, but that's really not necessary.
(Also, I wouldn't want to put you in the awkward position of buying a
book by Richard Dawkins... ;) )


-- F.

SteveB

unread,
Feb 9, 2008, 4:46:52 PM2/9/08
to TiddlyWiki
Deal!

Steve

On Feb 9, 9:47 am, "Dave Gifford - http://www.giffmex.org/"

I function

unread,
Feb 9, 2008, 5:48:51 PM2/9/08
to TiddlyWiki
I'm very proud of you boys!! I can't tell you how thrilled I am to see
this new change implemented. I still don't understand why and how
these mysterious people on the internet do this stuff for free, but it
sure is a wonderful thing.

Thanks so much again. I look forward to following further developments
on this tool. Look out for my thank you speech in ten years when I
receive the Nobel Peace Prize. You will all be at the top of the list
for providing me a simple way to keep track of my thoughts and notes.

Okay maybe that's too ambitious, but I guarantee you will get credit
in a public speech made by me at some point in my life!

Thanks again.

Dave Gifford - http://www.giffmex.org/

unread,
Feb 9, 2008, 6:56:36 PM2/9/08
to TiddlyWiki
FND

I have a couple books by Sam Harris, so it wouldn't be the first
time...I will probably get around to reading Dawkins eventually. I
thought Harris was pretty weak - not to mention downright scary at
times with his support of torture - and leaned more heavily on bumper
sticker rhetoric than with actual interaction with pro-theistic
arguments pro and con, but I trust Dawkins will have a little more
meat to him.

Actually, the applicability of your macro is somewhat tied to the
monkeytaggerplugin and forEachtiddler, and enhanced by the newtiddler
macro. I think for prefabricated TWs like the ones I make, it has a
lot of potential. But it wouldn't be something new users would want to
try to set up on their own.

And I thought of another limitation this morning - since it references
the tiddler title, and since you can only create one tiddler with the
same title, so you couldn't have, in the same file, say, a SongX file
with the macro so it sorts by album, and then another SongX file with
the macro so it sorts by artist. It might need a workaround so that it
is based on something more flexible than the tiddler title.

But my joy is no less restrained because it adds a major new level of
flexibility for My Notes and a spinoff I am working on for pastors,
and it gives me ideas for other possible uses. Thnaks again

Dave

Dave Gifford - http://www.giffmex.org/

unread,
Feb 9, 2008, 7:07:38 PM2/9/08
to TiddlyWiki
I still don't understand why and how
> these mysterious people on the internet do this stuff for free,

I am a Christian so my motivation is to give freely as has much has
been freely given to me, to pour out my life as Christ poured out his
for me. (please, no cheap shots from the atheists, I'm just being
personal here...) I think we all see what a great tool Jeremy Ruston
gave the world for free, and how it helped us, and want to help others
discover and get the most out of it as we have. Glad to have you on
board.

I guarantee you will get credit
> in a public speech made by me at some point in my life!

Make sure to tape it and link the Youtube page here! ;-)

Dave

Dave Gifford - http://www.giffmex.org/

unread,
Feb 9, 2008, 7:43:27 PM2/9/08
to TiddlyWiki
Oops, one more kink in the macro. See this tiddler.

http://www.giffmex.org/emptynotestwexperiment.html#TiddlyWiki

The problem is that the tiddlers are showing up uncategorized once for
each of the 12 note type categories that they are not tagged with.
They should either show up in the category, or they should show up as
uncategorized, and only once.

Dave

On Feb 8, 6:32 pm, "Dave Gifford - http://www.giffmex.org/"

FND

unread,
Feb 10, 2008, 8:58:05 AM2/10/08
to Tiddl...@googlegroups.com
> The problem is that the tiddlers are showing up uncategorized once for
> each of the 12 note type categories that they are not tagged with.

Try this version:
http://fnd.lewcid.org/svn/TiddlyWiki/plugins/CrossIndexingMacro.js
I'm not sure whether that really fixes the problem though, so you should
do some testing.

> I thought of another limitation this morning - [...] it references
> the tiddler title

That's why I've added an optional scope parameter in the latest version.
If that's missing, the respective tiddler's title will be used as
fallback value.

I don't think I've ever written code that I could relate to in such a
very limited extent as in this case - that's kinda disconcerting...
I keep trying to visualize the underlying concept, but fail to come up
with anything useful.
That's also why I can't release this to the general public; I'm unable
to describe its purpose in a few words.


-- F.

Dave Gifford - http://www.giffmex.org/

unread,
Feb 10, 2008, 10:44:34 PM2/10/08
to TiddlyWiki
Hello all,

Just a follow-up note to all those who were following FND and I on the
My Notes thread.

My Notes TW 2.02 is now available at its usual place,
http://www.giffmex.org/emptynotestw.html.

1. It has FND's cool new macro installed so that current as well as
future user-generated 'note type indexes' are now sorted by topic. See
the HowTo tiddler for what this looks like.
2. Additional bonus: I added the excludeList tag to all tiddlers so
that only your notes will show up in the timeline and all tabbed
lists.
3. I updated the features and instructions. I also updated the section
on how to add your notes from prior versions of My Notes. The
instructions are actually shorter, though still more complicated than
I would have liked.

The macro mentioned in #1 was requested by Joe aka I function and
graciously created by FND.

For those of you who use My Notes for any Bible or ministry-related
work, I suggest holding off a few days. I am almost done with a
project I've been working on, for seminarians and pastors and people
like that. It will be called Giffmex Notes - Pastor's Edition (GNPE).
It will be the current My Notes TW, plus some Greek and Hebrew and
other formatting features, plus a separate growing TW of tips and
tricks for people who use GNPE to take notes on the and other ministry
topics - Greek clausal analysis, IFrame ideas, etc. I'll announce it
in this group when it is ready.

Blessings,

Dave Gifford


iain

unread,
Feb 13, 2008, 12:10:53 AM2/13/08
to TiddlyWiki
Dave,

I take it that My Notes 2.02 ready to fly.

I'll have to take it on a test run.

Iain

jds

unread,
Mar 5, 2008, 3:47:25 AM3/5/08
to TiddlyWiki
Hi Dave,
In the "Download My Notes" tiddler in the new My Notes version (http://
www.giffmex.org/emptynotestw.html) you link to the wrong HTML file
(http://www.giffmex.org/emptynotestwexperiment.html) which has a buggy
version of CrossIndexingMacro.

Great tool though, very well designed. Thanks.


On Feb 10, 7:44 pm, "Dave Gifford - http://www.giffmex.org/"
<giff...@gmail.com> wrote:
> Hello all,
>
> Just a follow-up note to all those who were following FND and I on theMy Notesthread.
>
> My NotesTW 2.02 is now available at its usual place,http://www.giffmex.org/emptynotestw.html.
>
> 1. It has FND's cool new macro installed so that current as well as
> future user-generated 'note type indexes' are now sorted by topic. See
> the HowTo tiddler for what this looks like.
> 2. Additional bonus: I added the excludeList tag to all tiddlers so
> that only your notes will show up in the timeline and all tabbed
> lists.
> 3. I updated the features and instructions. I also updated the section
> on how to add your notes from prior versions ofMy Notes. The
> instructions are actually shorter, though still more complicated than
> I would have liked.
>
> The macro mentioned in #1 was requested by Joe aka I function and
> graciously created by FND.
>
> For those of you who useMy Notesfor any Bible or ministry-related
> work, I suggest holding off a few days. I am almost done with a
> project I've been working on, for seminarians and pastors and people
> like that. It will be called Giffmex Notes - Pastor's Edition (GNPE).
> It will be the currentMy NotesTW, plus some Greek and Hebrew and

Dave Gifford - http://www.giffmex.org/

unread,
Mar 5, 2008, 8:42:04 AM3/5/08
to TiddlyWiki
Whoops! Thanks for that!

Dave

On Mar 5, 3:47 am, jds <schulmanner...@gmail.com> wrote:
> Hi Dave,
> In the "Download My Notes" tiddler in the new My Notes version (http://www.giffmex.org/emptynotestw.html) you link to the wrong HTML file
> (http://www.giffmex.org/emptynotestwexperiment.html) which has a buggy
> version of CrossIndexingMacro.
>
> Great tool though, very well designed. Thanks.
>

jds

unread,
Mar 21, 2008, 12:57:55 PM3/21/08
to TiddlyWiki
Another fix: when you list notes by topic, the heading "no subtopics"
is repeated for every note with no subtopic, instead of just once.
Here's how I changed the tiddler NoteTopicMacroInfo


<<forEachTiddler
where 'tiddler != context.inTiddler &&
tiddler.tags.contains(context.inTiddler.title)'
sortBy 'GroupTitle = tiddler.data("notetopic")
+"###"+tiddler.data("booktitle")'
script 'function getGroupTitle(tiddler, context) {
if ( (context.lastGroup != "no subtopics") && (!context.lastGroup
|| context.lastGroup != tiddler.data("notetopic")))
{
context.lastGroup = tiddler.data("notetopic");
if (!context.lastGroup || context.lastGroup == "")
context.lastGroup = "no subtopics";
return "!! "+context.lastGroup+"\n";
} else return "";}'
write
'getGroupTitle(tiddler, context)+"** [["+tiddler.title+"]]\n"'
>>


On Mar 5, 9:42 am, "Dave Gifford - http://www.giffmex.org/"
<giff...@gmail.com> wrote:
> Whoops! Thanks for that!
>
> Dave
>
> On Mar 5, 3:47 am, jds <schulmanner...@gmail.com> wrote:
>
> > Hi Dave,
> > In the "Download MyNotes" tiddler in the new MyNotesversion (http://www.giffmex.org/emptynotestw.html) you link to the wrong HTML file
> > (http://www.giffmex.org/emptynotestwexperiment.html) which has a buggy
> > version of CrossIndexingMacro.
>
> > Great tool though, very well designed. Thanks.
>
> > On Feb 10, 7:44 pm, "Dave Gifford -http://www.giffmex.org/"<giff...@gmail.com> wrote:
> > > Hello all,
>
> > > Just a follow-up note to all those who were following FND and I on theMy Notesthread.
>
> > > My NotesTW 2.02 is now available at its usual place,http://www.giffmex.org/emptynotestw.html.
>
> > > 1. It has FND's cool new macro installed so that current as well as
> > > future user-generated 'note type indexes' are now sorted by topic. See
> > > the HowTo tiddler for what this looks like.
> > > 2. Additional bonus: I added the excludeList tag to all tiddlers so
> > > that only yournoteswill show up in the timeline and all tabbed
> > > lists.
> > > 3. I updated the features and instructions. I also updated the section
> > > on how to add yournotesfrom prior versions ofMyNotes. The
> > > instructions are actually shorter, though still more complicated than
> > > I would have liked.
>
> > > The macro mentioned in #1 was requested by Joe aka I function and
> > > graciously created by FND.
>
> > > For those of you who useMy Notesfor any Bible or ministry-related
> > > work, I suggest holding off a few days. I am almost done with a
> > > project I've been working on, for seminarians and pastors and people
> > > like that. It will be called GiffmexNotes- Pastor's Edition (GNPE).
> > > It will be the currentMy NotesTW, plus some Greek and Hebrew and
> > > other formatting features, plus a separate growing TW of tips and
> > > tricks for people who use GNPE to takenoteson the and other ministry

Dave Gifford - http://www.giffmex.org/

unread,
Mar 21, 2008, 4:46:59 PM3/21/08
to TiddlyWiki
jds that is awesome. I was getting annoyed by that defect of My Notes
TW. I have added it and have uploaded it to the web.

Thank you so much for helping me improve my TW adaptation. God bless
you this Easter weekend.

Dave Gifford
Reply all
Reply to author
Forward
0 new messages