This patch creates a closeAll command, which can go in tiddler
toolbars, as a companion to the closeAll macro, which can only go in
the sidebar.
--- Config.js.orig.20091019a 2009-10-18 14:37:46.000000000 -0700
+++ Config.js 2009-10-19 16:10:23.000000000 -0700
@@ -136,6 +136,7 @@
config.commands = {
closeTiddler: {},
closeOthers: {},
+ closeAll: {},
editTiddler: {},
saveTiddler: {hideReadOnly: true},
cancelTiddler: {},
--- Lingo.js.orig.20091019a 2009-10-19 16:05:36.000000000 -0700
+++ Lingo.js 2009-10-19 16:16:04.000000000 -0700
@@ -374,6 +374,10 @@
text: "close others",
tooltip: "Close all other tiddlers"});
+merge(config.commands.closeAll,{
+ text: "close all",
+ tooltip: "Close all displayed tiddlers (except any that are being
edited)"});
+
merge(config.commands.editTiddler,{
text: "edit",
tooltip: "Edit this tiddler",
--- Commands.js.orig.20091019a 2009-10-18 14:37:46.000000000 -0700
+++ Commands.js 2009-10-19 16:13:28.000000000 -0700
@@ -19,6 +19,12 @@
return false;
};
+config.commands.closeAll.handler = function(event,src,title)
+{
+ story.closeAllTiddlers();
+ return false;
+};
+
config.commands.editTiddler.handler = function(event,src,title)
{
clearMessage();
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWikiDev" 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/tiddlywikidev?hl=en
-~----------~----~----~----~------~----~------~--~---