Derek Peschel
unread,Oct 19, 2009, 8:15:44 PM10/19/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to TiddlyWikiDev
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();