Re: [tw] Indirection in filter expressions

2014-07-26 Thread Jeremy Ruston
Hi Richard

Great, glad you got things working, looks quite neat.

In fact I went ahead and fixed #583 yesterday, so you'll have a few more
options for 5.0.14,

Best wishes

Jeremy.



On Sat, Jul 26, 2014 at 4:04 AM, Richard Smith 
richardwilliamsmit...@gmail.com wrote:

 Hi Jeremy

 Thanks again for your help and all the support that you give to the
 community.

 I was able to achieve the desired effect by putting the whole text to the
 sub-sub-tiddler into a macro definition which can then reference the global
 variable, like this;

 \define section(sec)
 $text text=$(currentChapter)$/
 tabs [tag[$(currentChapter)$]tag[$sec$]] Subtraction
 $:/state/videotab tw-vertical
 \end


 I made the template available for anybody who's interested (it doesn't do
 anything too exciting, but it lets me add chapters and sections by just
 making tiddlers and then add content to the right place in the grid with
 pairs of tags - it's very useful to me)

 Thanks again

 Regards,
 Richard

 https://dl.dropboxusercontent.com/u/83055414/booktemplate.html



 On Friday, July 25, 2014 5:44:30 PM UTC+10, Jeremy Ruston wrote:

 Hi Richard

 At the moment there is no way to reference a variable value within a
 filter: there is no equivalent to the construction `[tag[$text
 text=currentChapter/]tag[Videos]]`. There is a ticket to add this
 feature - https://github.com/Jermolene/TiddlyWiki5/issues/583

 Until that ticket is implemented, the workaround is to take advantage of
 the fact that filters can reference the currentTiddler variable. So, you
 can do something like this:

 $set name=currentTiddler value=currentChapter
 tabs [all[current]tagging[]tag[Videos]] Subtraction
 $:/state/videostab tw-vertical
 /$set

 The tagging operator returns all the tiddlers that are tagged by the
 current tiddler.

 The problem with assigning to currentTiddler is that you may also need to
 access the current tiddler within one of your tabs. You can use the set
 widget to copy the currentTiddler value to another variable before you
 overwrite it.

 Best wishes

 Jeremy



 On Fri, Jul 25, 2014 at 4:14 AM, Richard Smith richardwil...@gmail.com
 wrote:

 Hi Jeremy and thanks

 I'm afraid I am still confused;

 $text text=currentChapter/
 tabs [tag[$text text=currentChapter/]tag[Videos]]
 Subtraction $:/state/videostab tw-vertical

 This is my sub-sub-tiddler. The first $text works as expected and
 inserts the right chapter title but the filter expression returns an error,
 as does

 tabs [tag[currentChapter]tag[Videos]] Subtraction
 $:/state/videostab tw-vertical

 What am I not getting?

 Regards,
 Richard


 On Friday, July 25, 2014 8:03:00 AM UTC+10, Jeremy Ruston wrote:

 Hi Richard

 The tabs macro places the title of the current tab in the variable
 currentTab.

 So, in your top level tab tiddlers you can copy that variable to a new
 variable currentChapter like this:

 $set name=currentChapter value=currentTab
 ...insert content of chapter tab here
 /$set

 Then, inside you sub-sub-tiddler you can write this to get a reference
 to the current chapter:

 $text text=currentChapter/: My section name

  I am guessing there may be a clever way to put the Chapter title
 into a field and then use it in the filter expression but I am still
 struggling to grok the wikitext syntax.

 You were on the right track, except that we use a variable rather than
 a field. Tiddler field values are global across the entire wiki, while
 variable values are assigned to specific portions of the widget render
 tree. So, any value that needs to be different in different areas of the
 render tree needs to be a variable.

 Best wishes

 Jeremy.





 On Thu, Jul 24, 2014 at 10:20 PM, Richard Smith richardwil...@gmail.
 com wrote:

 Suppose I have a tiddler that generates tabs from a tag.

 tabs [tag[Chapter]] Chapter1 $:/state/chapter

 And each of those tab-tiddlers also generates tabs, containing
 sub-sections

 tabs [tag[Chapter1]tag[Sections]] VideosTab $:/state/section
 tw-vertical

 And each of those also generates tabs, containing individual pieces of
 content

 tabs [tag[Chapter1]tag[Section1]] Subtraction
 $:/state/section1tid tw-vertical

 --
 Is there a way to alter the text of the bottom tiddler so that instead
 of Chapter1 it contains a reference to the Chapter as selected at the 
 top
 level.

 ie;

 tabs [tag[ -reference- ]tag[Section1]] Subtraction
 $:/state/section1tid tw-vertical

 This would let me re-use the code at levels two and three. I have
 tried many combinations of magical punctuation but can't seem to find one
 that works.

 If I drop the top level of my construct and instead have a tiddler for
 each chapter then the transcluded content in the tabs remains in the
 context of each chapter, meaning that if I write {{!!title}} at the bottom
 level, I get the title of the correct chapter, but I can't include this in
 the filter expression.

 I am guessing there may be a clever way to put the Chapter title into
 a field and then use it in the 

Re: [tw] Re: TW5 TiddlyWiki processing while typing?

2014-07-26 Thread Jeremy Ruston
Hi Mark

 Apparently when you are editing in a TW5 text field some sort of
processing is going on with every keystroke.

Each keypress causes the associated tiddler to be saved to the internal
JavaScript tiddler store. That triggers the refresh cycle whereby the
entire displayed tree of widgets is scanned for anything that needs to be
rerendered in the light of the changes to the store.

TiddlyWiki's architecture means that we can't store state in the DOM
because the DOM might need to be refreshed at any time. So we can't just
leave the partially edited tiddler in the HTML input element until done
is clicked.

There's a significant optimisation whereby the refresh cycle is deferred
until the user stops typing for 400ms. The tiddler is still saved to the
store on each keypress, so there's no risk of data loss.

 Not a problem on my desktop nor with short tiddlers, or empty TW's, but
definitely a problem with longish tiddlers running on FireFox on Android.

Yes, I've also seen poor performance on lower powered browsers.

 Is there a way to turn off this behavior? I'm guessing that it's
reiterating in order to make real-time changes to titles, styles, and such.
But I really only want the TW to update when I've clicked on the finish
checkmark.

There's no way to turn off the refresh cycle; it is intrinsic to
TiddlyWiki's operation.

But we could make the 400ms delay be configurable, and perhaps allow for it
to be set to infinite whereby we'd defer the refresh cycle until done was
clicked.

 The problem seems (a little subjective) to have become worse as the TW
fills up, so it seems that it's doing something where it loops and looks at
the entire contents of the TW.

Some sidebar tabs are fairly expensive to refresh, notably recent.

Best wishes

Jeremy



On Fri, Jul 25, 2014 at 9:02 PM, Danielo Rodríguez rdani...@gmail.com
wrote:

 He is not complaining about the losing focus issue. He is asking if some
 kind of processing happens on every keystroke. The answer is yes.
 Tiddlywiky re-evaluates all the displayed tiddlers on every keystroke. This
 is definitively a problem on limited resources machines.

 --
 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/d/optout.




-- 
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/d/optout.


[tw] Password Vault and Bookmarks

2014-07-26 Thread Chemaster
Are there or has someone come up with a clever way to make a password vault 
and bookmark list within TiddlyWiki. Or is there a blank wiki already out 
there that may be used for such.

I've something basic but I'm sure there is a way to organize and make it 
more attractive.

Thanks 

Chemaster

-- 
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/d/optout.


[tw] (TWC TW5) How i can add Adsense?

2014-07-26 Thread Victor Garcia
How i can add Adsense to my TW sites?
Thanks.

-- 
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/d/optout.


[tw] Re: Password Vault and Bookmarks

2014-07-26 Thread Chemaster
I did find TiddyMarks http://tiddlymarks.tiddlyspot.com/

This looks great but I was hoping to be able to save notes like username 
and password as well

Chemaster

On Saturday, July 26, 2014 8:09:12 AM UTC-5, Chemaster wrote:

 Are there or has someone come up with a clever way to make a password 
 vault and bookmark list within TiddlyWiki. Or is there a blank wiki already 
 out there that may be used for such.

 I've something basic but I'm sure there is a way to organize and make it 
 more attractive.

 Thanks 

 Chemaster


-- 
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/d/optout.


[tw] Re: Autosave after added tag with cycleTag

2014-07-26 Thread magev958
... in TWC of course. Or more precisly TiddlySpace

-- 
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/d/optout.


[tw] Re: Autosave after added tag with cycleTag

2014-07-26 Thread Eric Shulman
On Thursday, July 17, 2014 6:01:52 AM UTC-7, magev958 wrote:

 Hi, I'm trying to get cycleTag from 
 http://lastfm.tiddlyspot.com/#cycleTags to trigger a autoSave after a tag 
 is added but with no luck. Anyone have any idea or have manage to do it?


Open the [[cycleTags]] tiddler and edit the source.

Find this code syntax:
  story.refreshTiddler(...
It will occur TWO times in the script.  Immediately *before* each instance 
of this code, insert:
  autoSaveChanges();
That should do it.

Note: be sure to add comments and rename the tiddler so your modified 
version is easily distinguishable from the original tiddler.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

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/d/optout.


[tw] Re: Password Vault and Bookmarks

2014-07-26 Thread David Gifford
http://giffmex.org/experiments/tidmarks.html#Bookmarking%20with%20TidMarks



On Saturday, July 26, 2014 8:49:08 AM UTC-5, Chemaster wrote:

 I did find TiddyMarks http://tiddlymarks.tiddlyspot.com/

 This looks great but I was hoping to be able to save notes like username 
 and password as well

 Chemaster

 On Saturday, July 26, 2014 8:09:12 AM UTC-5, Chemaster wrote:

 Are there or has someone come up with a clever way to make a password 
 vault and bookmark list within TiddlyWiki. Or is there a blank wiki already 
 out there that may be used for such.

 I've something basic but I'm sure there is a way to organize and make it 
 more attractive.

 Thanks 

 Chemaster



-- 
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/d/optout.


[tw] Re: Password Vault and Bookmarks

2014-07-26 Thread Chemaster

Perfect, many thanks!


On Saturday, July 26, 2014 8:09:12 AM UTC-5, Chemaster wrote:

 Are there or has someone come up with a clever way to make a password 
 vault and bookmark list within TiddlyWiki. Or is there a blank wiki already 
 out there that may be used for such.

 I've something basic but I'm sure there is a way to organize and make it 
 more attractive.

 Thanks 

 Chemaster


-- 
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/d/optout.