Re: [tw] TiddlyWiki 5 questions

2013-07-27 Thread Jeremy Ruston
Hi Dave


 Sorry I missed this week's hangout. Was on vacation in nearby Acapulco -
 photos here http://www.flickr.com/photos/giffmex/sets/72157634758987625/


Lovely.


 Playing around with Five, and I have some questions:

 1. Is there or will there be a way to paste the pill (the colorful bubble)
 of just one tag inside the text of a tiddler?


Do you mean an equivalent of the tag macro of TW classic? In TW5, you
can get the same effect with this:

{{NameOfTag||$:/core/ui/TagTemplate}}

That is interpreted as a transclusion of the tiddler NameOfTag through
the template $:/core/ui/TagTemplate.

There isn't yet, but should be, a tag macro defined like this to make
it a little easier:

\define tag(title)
{{$title$||$:/core/ui/TagTemplate}}
\end

With that definition, you can then write `tag MyTag` in the traditional
way.

2. Is there or will there be a way to display the number of tiddlers tagged
 with a tag next to the tag pill, as the tags are default displayed in TW
 classic?


Not yet, but there will be.


 3. Is it possible to create a custom field called, say, priority, where
 one inputs A, B, C, D or E? Then is there a way to do a [tag[]] filter that
 is sorted by priority?


Probably easier to use a numeric field for the priority. One can then sort
with a filter like this:

[tag[task]sort[priority]]


 4. How exactly can I make my custom style additions 'stick' upon
 refreshing the browser?


Can you show me what you're doing at the moment?


 5. Could the tag pills for a tiddler be moved, permanently or optionally,
 to a tab in the information window? Or will there be a printing hack so
 that they don't get printed with the title and content of a tiddler?


Yes, the tag pills could be moved into the info panel with a change in the
templates. You could easily hide the tags from printing with CSS:



@media print {
.tw-tags-wrapper {
display: none;
}
}

Many thanks for the feedback, keep it coming,

Best wishes

Jeremy


 Dave

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






-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

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




Re: [tw] TiddlyWiki 5 questions

2013-07-27 Thread David Gifford
Hi Jeremy, 

Thanks for the helpful responses. I will play around with them for a while. 

You asked what I am doing for style changes. What I did was create a 
tiddler entitled $:/StyleSheet and tagged it $:/tags/stylesheet, and added 
CSS stuff that worked. But when I save refresh Firefox it reverts back to 
the standard CSS.

Dave

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




Re: [tw] TiddlyWiki 5 questions

2013-07-27 Thread Jeremy Ruston
Hi Dave

The problem with stylesheet handling at the moment is that stylesheet
tiddlers may be rendered in any order. That means that in order to override
an existing style you can't just rely on being executed second. Instead,
your style rules need to have a higher specificity than the corresponding
rule in the theme that you're overriding. (See
http://www.htmldog.com/guides/css/intermediate/specificity/ for a simple
overview).

For example, to redefine the body background colour, instead of:

body {
background: red;
}

You could increase the specificity by inserting an otherwise redundant
selector for the root HTML tag:

html body {
background: red;
}

Let me know how you get on,

Best wishes

Jeremy


On Sat, Jul 27, 2013 at 12:44 PM, David Gifford dgiff...@crcna.org wrote:

 Hi Jeremy,

 Thanks for the helpful responses. I will play around with them for a
 while.

 You asked what I am doing for style changes. What I did was create a
 tiddler entitled $:/StyleSheet and tagged it $:/tags/stylesheet, and
 added CSS stuff that worked. But when I save refresh Firefox it reverts
 back to the standard CSS.

 Dave




-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

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