Re: [tw] TiddlyWiki 5 questions
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
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.
[tw] Re: Find and Replace in all tiddlers
Ah I missed the tooltip that said it was regex based. That's even more helpful thanks! It might be better if there was a message when the regex doesn't work. Just for completeness, I resolved my issue with the escape character \?. On Friday, July 26, 2013 5:00:51 PM UTC+1, Eric Shulman wrote: On Friday, July 26, 2013 6:30:19 AM UTC-7, Aquilai wrote: Can you confirm that the replace text function doesn't work with the question mark ? symbol? Is there a workaround for this? TiddlerTweakerPlugin replace text function uses standard javascript regular expression syntax for specifying the text *pattern* to match. Here's a good reference for special characters in regular expressions: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp note particularly the usage of ?: -- Matches the preceding item 0 or 1 time. For example, /e?le?/ matches the 'el' in angel and the 'le' in angle. If used immediately after any of the quantifiers *, +, ?, or {}, makes the quantifier non-greedy (matching the minimum number of times), as opposed to the default, which is greedy (matching the maximum number of times). -- Perhaps you are using the ? incorrectly within your pattern. Unlike the use of ? and * as 'wildcard symbols' in filenames, javascript regular expressions use the . (dot) symbol to match a single wildcard character. You can make that character optional (0 or 1 instances) by adding a ? following it (i.e., .?). You can match any number of characters (0 or more) by adding a * suffix following the dot (i.e, .*) enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR... http://www.TiddlyTools.com/#Donations Professional TiddlyWiki Consulting Services... Analysis, Design, and Custom Solutions: http://www.TiddlyTools.com/#Contact -- 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
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.
[tw] Modified Dates in newJournal Macro?
*I hope this doesn't double-post, but it looks like Google Groups may have eaten my first post, so I'll try again.* I often pass today's date (or elements of it) to a newJournal macro call, as in *newJournal 0DD MMM (DDD)* to create a tiddler named *28 July 2013 (Sunday)*. (That's today's date as I type this.) But -- can I alter the variables as I pass them to the newJournal macro? That is, could I create a tiddler named *August 2012* by using some syntax like *newJournal MMM-1 +1*? -- 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.
[tw] Modified Dates in newJournal Macro?
The newJournal macro can accept placeholder values for dates in various M, D, and Y formats — but can you pass it values for days other than today? That is, could I have a newJournal macro call to create a tiddler with * tomorrow*'s date? Or have a macro call something like *newJournal MMM+1 -1* to create a tiddler named August 2012? (It's currently July 2013 as I type this.) -- 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.
[tw] Re: Modified Dates in newJournal Macro?
Er, the + and - in that previous example are exactly backwards, so presumably *if there were such a syntax*, I'd have to learn to use it * correctly*. :P -- 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.