diff --git a/core/modules/macros/list/list.js b/core/modules/macros/list/list.js index f168a1a99..58897ee56 100644 --- a/core/modules/macros/list/list.js +++ b/core/modules/macros/list/list.js @@ -117,7 +117,7 @@ exports.createListElement = function(title) { }}; node.execute(this.parents,this.tiddlerTitle); var listElement = $tw.Tree.Element(this.isBlock ? "div" : "span",{"class": ["tw-list-element"]},[node],{ - events: ["tw-navigate","tw-EditTiddler","tw-SaveTiddler","tw-CloseTiddler"], + events: ["tw-navigate","tw-EditTiddler","tw-SaveTiddler","tw-CloseTiddler","tw-NewTiddler"], eventHandler: eventHandler }); // Save our data inside the list element node diff --git a/core/modules/macros/navigationcatcher.js b/core/modules/macros/navigationcatcher.js index 44fe3ad29..09d447207 100644 --- a/core/modules/macros/navigationcatcher.js +++ b/core/modules/macros/navigationcatcher.js @@ -32,6 +32,15 @@ exports.saveList = function(title,list) { },storyTiddler,{text: list.join("\n")})); }; +exports.findTitleInStory = function(title,defaultIndex) { + for(var t=0; t