Thanks to both of you!  I had already looked at the
FieldsEditorPlugin, but I'm not clever enough to figure out how to
make it work for an entire list of tiddlers.  Eric's script gave me a
fishing pole along with the fish itself (thanks!) and I have also now
learned a bit more about formatting the results of a script. In case
it's useful to anyone else, here's a version that condenses everything
in a table, turns tiddler titles and fieldnames into links, and uses
matchTagsPlugin to be a bit more specific about selecting tiddlers :
<script>
        var out=[]; var fmt='[[%0]]: %1|'; var fmt2='\n|[[%0]]|';
        var tids=store.sortTiddlers(store.filterTiddlers("[tag[(alpha
AND NOT some tag with spaces)]]"), "modified");
        for (var i=0; i<tids.length; i++) {
                                out.push(fmt2.format([tids[i].title]));
                                        for (var f in tids[i].fields) 
out.push(fmt.format
([f,tids[i].fields [f]]));
        }
        return out.join('|');
</script>

cmari

On Mar 30, 10:22 am, Eric Shulman <[email protected]> wrote:
> > Is there a generic way to "show all the custom fields that I've added,
> > even if I forgot what I called them" for a list of tiddlers (e.g.,
> > tiddlers tagged with "myTag")?
>
> Try this inline script (requires TiddlyTools' InlineJavascriptPlugin):
>
> <script>
>         var out=[]; var fmt='| %0|%1|';
>         var tids=store.getTaggedTiddlers('alpha');
>         for (var i=0; i<tids.length; i++) {
>                 out.push(tids[i].title);
>                 for (var f in tids[i].fields) 
> out.push(fmt.format([f,tids[i].fields
> [f]]));
>         }
>         return out.join('\n');
> </script>
>
> enjoy,
> -e
> Eric Shulman
> TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to