Ticket #488: ticket488-updated.patch

File ticket488-updated.patch, 4.1 KB (added by SaqImtiaz, 4 years ago)
  • tiddlers/EditTemplate.tiddler

     
    11<div title="EditTemplate"> 
    22<pre><!--{{{--> 
    3 <div class='toolbar' macro='toolbar +saveTiddler -cancelTiddler deleteTiddler'></div> 
     3<div class='toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]]'></div> 
    44<div class='title' macro='view title'></div> 
    55<div class='editor' macro='edit title'></div> 
    66<div macro='annotations'></div> 
  • tiddlers/ViewTemplate.tiddler

     
    11<div title="ViewTemplate"> 
    22<pre><!--{{{--> 
    3 <div class='toolbar' macro='toolbar closeTiddler closeOthers +editTiddler > fields syncing permalink references jump'></div> 
     3<div class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></div> 
    44<div class='title' macro='view title'></div> 
    55<div class='subtitle'><span macro='view modifier link'></span>, <span macro='view modified date'></span> (<span macro='message views.wikified.createdPrompt'></span> <span macro='view created date'></span>)</div> 
    66<div class='tagging' macro='tagging'></div> 
  • js/Config.js

     
    110110                touched: {}, 
    111111                filter: {} 
    112112        }, 
     113        listCommands: {}, 
    113114        closeAll: {}, 
    114115        permaview: {}, 
    115116        saveChanges: {}, 
  • js/Lingo.js

     
    402402        SiteUrl: "http://www.tiddlywiki.com/", 
    403403        SideBarOptions: '<<search>><<closeAll>><<permaview>><<newTiddler>><<newJournal "DD MMM YYYY" "journal">><<saveChanges>><<slider chkSliderOptionsPanel OptionsPanel "options »" "Change TiddlyWiki advanced options">>', 
    404404        SideBarTabs: '<<tabs txtMainTab "Timeline" "Timeline" TabTimeline "All" "All tiddlers" TabAll "Tags" "All tags" TabTags "More" "More lists" TabMore>>', 
    405         TabMore: '<<tabs txtMoreTab "Missing" "Missing tiddlers" TabMoreMissing "Orphans" "Orphaned tiddlers" TabMoreOrphans "Shadowed" "Shadowed tiddlers" TabMoreShadowed>>'}); 
     405        TabMore: '<<tabs txtMoreTab "Missing" "Missing tiddlers" TabMoreMissing "Orphans" "Orphaned tiddlers" TabMoreOrphans "Shadowed" "Shadowed tiddlers" TabMoreShadowed>>', 
     406        ToolbarCommands: "|~ViewToolbar|closeTiddler closeOthers +editTiddler > fields syncing permalink references jump|\n|~EditToolbar|+saveTiddler -cancelTiddler deleteTiddler|"}); 
    406407 
    407408merge(config.annotations,{ 
    408409        AdvancedOptions: "This shadow tiddler provides access to several advanced options", 
     
    436437        TabMoreShadowed: "This shadow tiddler contains the contents of the 'Shadowed' tab in the right-hand sidebar", 
    437438        TabTags: "This shadow tiddler contains the contents of the 'Tags' tab in the right-hand sidebar", 
    438439        TabTimeline: "This shadow tiddler contains the contents of the 'Timeline' tab in the right-hand sidebar", 
     440        ToolbarCommands: "This shadow tiddler determines what commands are available in tiddlers' toolbars. \n\n\">\" will be replaced by \"more\", and will show the commands to the right when clicked.\nUse \"+\" before the command to make it the default command.\nUse \"-\" before the command to make it the cancel command.\n\nThe available commands are: <<listCommands>>", 
    439441        ViewTemplate: "The HTML template in this shadow tiddler determines how tiddlers look" 
    440442        }); 
    441443 
  • js/Macros.js

     
    6868        return results; 
    6969}; 
    7070 
     71config.macros.listCommands.handler = function(place,macroName,params) 
     72{ 
     73        var text = ["|!Command|!Description|h"]; 
     74        for (var c in config.commands){ 
     75                text.push("|''"+ c +"''|"+ config.commands[c].tooltip +"|"); 
     76        } 
     77        wikify(text.join("\n"),place); 
     78} 
     79 
    7180config.macros.allTags.handler = function(place,macroName,params) 
    7281{ 
    7382        var tags = store.getTags(params[0]);