QuickEdit mod

57 views
Skip to first unread message

spacev...@gmail.com

unread,
Jan 22, 2008, 8:52:34 PM1/22/08
to TiddlyWiki
hi out there!
I'm trying to modify Eric's QuckEdit_link segment of the QuickEdit
plugin,
such that not all tiddlers are offered, but only those filtered by -
say - having a certain tag -
ie, select from all t's tagged w/ 'person'.

I'm new to JavaScript, so I understand that
store.getTiddlers(this.value)
gets all the t's, just don't know if there's a clever way to get
filtered from the
store, or how to filter post-retrieve.

pointers appreciated,
-Juergen

Eric Shulman

unread,
Jan 22, 2008, 9:46:54 PM1/22/08
to TiddlyWiki
Here's the basic TW core function calls:

store.getTiddlers('title')
gets ALL tiddler objects, sorted by title
store.getTaggedTiddlers('person','title')
gets only tiddlers tagged with 'person', sorted by title

this should get you going... but...

I like your idea of filtering the droplist by a selected tag value...
so I've added it to the "link" and "tiddler" QuickEdit button
definitions, which now include a second droplist, showing all tags in
the document... select a tag and the list of tiddlers is filtered to
show only those that match.

Get the updates here:
http://www.TiddlyTools.com/#QuickEdit_link
http://www.TiddlyTools.com/#QuickEdit_tiddler

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

spacev...@gmail.com

unread,
Jan 23, 2008, 12:57:19 AM1/23/08
to TiddlyWiki
thanks, Eric - as always, amazing turnaround time :-)

I ended up using the JS snippet, and built a small one that just
inserts
the tiddler title from the filtered selection pulldown -- but who
knows,
I may get back to using your _link or _tiddler someday :-)

thanks again,
-Juergen
Reply all
Reply to author
Forward
0 new messages