http://welford.github.io/pinned.html

I wrote this simple example, It lets you use a new View Toolbar to pin 
tiddlers to $:/DefaultTiddlers rather than having to edit 
$:/DefaultTiddlers manually. It requires a 2 line change to story.js

var PINNED_TAG = "pinned"; //change 0

...

function openStartupTiddlers(options) {

...

storyFilter = storyFilter + " [tag["+PINNED_TAG+"]]"; //change 1

// Process the story filter to get the story listvar storyList = 
$tw.wiki.filterTiddlers(storyFilter);

...


I think it might be nice to have in the main TW5, rather than as a plugin, 
as it provides a quick way for light users to be able to easily pin 
anything to the home page without having to know about Default Tiddlers. 
Obviously it could be expanded to sort the pinned tiddlers by modified date 
or title, but I think it would be nice to keep it as simple as possible.

On a related note: It's kind of awkward to add something like this as a 
plugin as it appears after the close tiddlers icon, which seems out of 
phase with current GUIs. To get this to appear before it I need to edit 
$:/tags/ViewToolbar which is cumbersome to support as a plugin as I want to 
keep this up to date with the latest tiddlywiki version. Is there a simpler 
way of having it appear before that I am missing?

Thanks,
James

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywikidev+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywikidev@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to