NameFancyMissingPlugin
Version0.1.0
DescriptionOrders the output in the Missing tab by how missing
AuthorFrederik Dohr
LicenseBSD

Usage

No explicit use require, just add the plugin and go to the Missing tab.

Code

(function() {

// hijack getMissingLinks to sort by number of references
var getMissingLinks = TiddlyWiki.prototype.getMissingLinks;
TiddlyWiki.prototype.getMissingLinks = function(sortField) {
	var results = getMissingLinks.apply(this, arguments);
	var index = results.map(function(item, i) {
		return {
			title: results[i],
			count: store.getReferringTiddlers(results[i]).length
		};
	});
	return index.sort(function(a, b) {
		return b.count - a.count;
	}).map(function(item, i) {
		return item.title;
	});
};

})();
bag
fancymissing_public
created
Wed, 17 Nov 2010 12:59:16 GMT
creator
cdent
modified
Wed, 17 Nov 2010 12:59:16 GMT
modifier
cdent
tags
excludeLists
systemConfig