Been 2 weeks and I haven't figured out anything new myself so I'm going to 
go ahead and bump this. 

On Tuesday, June 4, 2013 9:54:40 PM UTC-7, Arc Acorn wrote:
>
> I figured sense this is really more of a development based question 
> and off-topic to the original thread on the main group I'd re-post it over 
> here:
>
> --------------Post------------
>
>  I'm trying to add a check box at the start of each unSelected tab in 
> TiddlersBarPlugin:
> http://visualtw.ouvaton.org/VisualTW.html#TiddlersBarPlugin
>
> Which seems to be here:
> else {
> var d = createTiddlyElement(place,"span",null,"tab tabUnselected");
> var btn = createTiddlyButton(d,title,config.macros.tiddlersBar.tooltip + 
> title,config.macros.tiddlersBar.onSelectTab);
> btn.setAttribute("tiddler", title);
> if (previous=="active" && config.macros.tiddlersBar.nextKey) 
> btn.setAttribute("accessKey",config.macros.tiddlersBar.previousKey);
> previous=btn;
> }
>
> Using the CheckboxPlugin: http://www.tiddlytools.com/#CheckboxPlugin
>
> wikify("[x("+title+"|pinned)]",place);
>
> Get's me the check boxes and functionality I want however no matter 
> how/where I try adding it in all the boxes show up as a big group at the 
> end of the tab bar rather than where I want them to go...
>
>
>  I assume this has to do with the "place" value in the wikify() function, 
> but any attempts I've made by trying to look at other plugins and using 
> what I find just causes errors... 
>
>
> - hide quoted text -
>
> On Thursday, May 30, 2013 9:16:22 AM UTC-7, Eric Shulman wrote:
>
>
> On May 30, 5:45 am, "G.J.Robert" <[email protected]> wrote: 
> > I frequently open quite a few tiddlers during my note taking and 
> editing, 
> > and I use "close all" a lot. What if I want to pin certain tiddlers from 
> > getting closed by "close all" command/macro? Is there any plugin out 
> there 
> > able to do this? Thanks in advance :) 
>
> Here you go: 
> ----------------------------- 
> Story.prototype.closeAllTiddlers = function(exclude) { 
>         clearMessage(); 
>         this.forEachTiddler(function(title,element) { 
>                 var t=store.getTiddler(title); 
>                 var excluded = title == exclude; 
>                 var dirty    = element.getAttribute("dirty") == "true" 
>                 var pinned   = t && t.isTagged("pinned"); 
>                 if(!excluded && !dirty && !pinned) 
>                         this.closeTiddler(title); 
>         }); 
>         window.scrollTo(0,ensureVisible(this.container)); 
> }; 
> ------------------------------ 
> To use, simply tag a tiddler with "pinned".  You can still close it 
> individually with the "close" toolbar command, but it will be skipped 
> over when either the "close all" sidebar command or "close others" 
> toolbar command is invoked. 
>
> Note: when triggered by "close others", the "exclude" value passed 
> into the function is the title of the tiddler from which the command 
> was triggered, so that tiddler will not be closed along with the 
> others.  However, when triggered by "close all", the "exclude" value 
> is null, so that all tiddlers are closed, except for "dirty" tiddlers 
> (i.e., tiddlers currently being edited) and tiddlers that are tagged 
> with "pinned" (the new feature you requested). 
>
> enjoy, 
> -e 
> Eric Shulman 
> TiddlyTools / ELS Design Studios 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to