[tw] Re: Integrate in the site

2009-08-08 Thread FND

 the problem is when TW opened
 there are no options to add new tiddler and edit existent. Why?

See here:
 http://tiddlywiki.org/wiki/Read-Only_Mode


-- F.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: CollapsedTiddlersPlugin - How to Activate?

2009-08-08 Thread SteveM

Mike,

Thanks.  About adding the Macros, in this crawl-walk-run world of
mine, can you explain to me how to do one?

Then I can figure out the generality

SteveM



On Aug 7, 7:23 pm, Mike eris...@gmail.com wrote:
 Sounds like you are using a custom toolbar, or not using
 ToolbarCommands (see your view template)
 you will need to add the macros manually,

 Hope that helps !

 Mike

 On Aug 7, 2:59 pm, SteveM sbma...@comcast.net wrote:

  I imported Eric Shulman's Navigation package including
  CollapsedTiddlersPlugin and CollapsedTemplate.  I saved and reloaded
  the TW, but I can't figure out how to activate the Collapse
  functionality.

  Any Help?

  Thanks,

  SteveM
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: CollapsedTiddlersPlugin - How to Activate?

2009-08-08 Thread wolfgang

In the CollapsedTemplate at TiddlyTools you'll find the following
line:

span class='toolbar' macro='toolbar
[[ToolbarCommands::CollapsedToolbar]]'/span
/span

- where [[ToolbarCommands::CollapsedToolbar]] embeds the row
'CollapsedToolbar' of the table in the 'ToolbarCommands' shadowed
tiddler for every collapsed tiddler. There you'll also find the
command for the regular ViewTemplate for displaying the collapse
command for a tiddler in regular view mode:

collapseTiddler

Which you have to add to your ToolbarCommands shadowed tiddler. If the
ToolbarCommands aren't embedded within your ViewTemplate you can add
'collapseTiddler' directly to the ViewTemplate. And if a systemTheme
would be in use, to the ViewTemplate or ToolbarCommands embedded from
there.

Shadowed tiddlers you'll find in the right hand side under the 'More'
and 'Shadowed' tabs.

Regards..

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: CollapsedTiddlersPlugin - How to Activate?

2009-08-08 Thread SteveM

wolfgang,

Thanks for the advice.

Forgive me for being dense.  I read that you are telling me to simply
add collapseTiddler to the ViewToolbar line of the ToolbarCommands
Shadow Tiddler.  I did that and the fold menu item appeared on the
View menu.  However when activated the Tiddler did fold but the View
menu disappeared and a Macro error was generated, Error while
executing macro tiddlerIcons: No such macro exists

Can you walk through another step to fix that?

Steve

On Aug 8, 9:35 am, wolfgang wolfgangl...@gmail.com wrote:
 In the CollapsedTemplate at TiddlyTools you'll find the following
 line:

 span class='toolbar' macro='toolbar
 [[ToolbarCommands::CollapsedToolbar]]'/span
 /span

 - where [[ToolbarCommands::CollapsedToolbar]] embeds the row
 'CollapsedToolbar' of the table in the 'ToolbarCommands' shadowed
 tiddler for every collapsed tiddler. There you'll also find the
 command for the regular ViewTemplate for displaying the collapse
 command for a tiddler in regular view mode:

 collapseTiddler

 Which you have to add to your ToolbarCommands shadowed tiddler. If the
 ToolbarCommands aren't embedded within your ViewTemplate you can add
 'collapseTiddler' directly to the ViewTemplate. And if a systemTheme
 would be in use, to the ViewTemplate or ToolbarCommands embedded from
 there.

 Shadowed tiddlers you'll find in the right hand side under the 'More'
 and 'Shadowed' tabs.

 Regards..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] ForEachTiddlerPlugin output alters with a space character

2009-08-08 Thread shavinder

guys please have a look here 
http://classrecords.tiddlyspot.com/#StudentGroupSliders
In the function getGroupTitle() in the line:
 str = part\x22+(context.lastGroup?context.lastGroup:no Student
Group) + \x22;

when i introduce a space after part and before \x22 the
foreachtiddler macro does not display the first group name. why is it??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: Blog Spam plugins

2009-08-08 Thread lynnjUK

I don't know about blogs, but Eric's http://www.tiddlytools.com/ has a
comments feature.  You will need to modify it to make it work for you
(by adding your own serverscript), but I have done this with success.


On Aug 5, 5:53 am, Senthil Nambi senthil...@gmail.com wrote:
 Hey guys,

 Is there a blog plugin for tiddlywiki that actually works? Google
 search brings me this plugin (http://www.anshul.info/blogwiki.html)
 but it doesn't seem to work me.

 Also I'm afraid if I switch to Tiddlywiki as my primary blogging
 platform, I'll be swarmed with spam. Any Captcha supported comments
 feature?

 Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: CollapsedTiddlersPlugin - How to Activate?

2009-08-08 Thread wolfgang

 Forgive me for being dense.

No reason to apologize.

 However when activated the Tiddler did fold but the View
 menu disappeared and a Macro error was generated, Error while
 executing macro tiddlerIcons: No such macro exists

 Can you walk through another step to fix that?


tiddlerIcons macro error is produced by the following lines in the
CollapsedTemplate, because you haven't TiddlerIconsPlugin installed:

span class='title'
span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'/span
span macro='view title'/span
/span

.. try deleting this.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: CollapsedTiddlersPlugin - How to Activate?

2009-08-08 Thread Eric Shulman

 Forgive me for being dense.  I read that you are telling me to simply
 add collapseTiddler to the ViewToolbar line of the ToolbarCommands
 Shadow Tiddler.  I did that and the fold menu item appeared on the
 View menu.  However when activated the Tiddler did fold but the View
 menu disappeared and a Macro error was generated, Error while
 executing macro tiddlerIcons: No such macro exists

 Can you walk through another step to fix that?

The CollapsedTemplate from TiddlyTools has been customized to also
include a call to the tiddlerIcons macro defined by
TiddlerIconsPlugin.  You can remove this by changing this:
-
span class='toolbar' macro='toolbar
[[ToolbarCommands::CollapsedToolbar]]'/span
span class='title'
span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'/span
span macro='view title'/span
/span

to just this:

span class='toolbar' macro='toolbar
[[ToolbarCommands::CollapsedToolbar]]'/span
span class='title' macro='view title'/span


You will also need to add a new row to the 'slice table' definition in
ToolbarCommands... First, copy the ViewToolbar row and name the new
row CollapsedToolbar.  Then, in the value for CollapsedToolbar ,
replace the 'collapseTiddler' command keyword with 'expandTiddler'.
This will provide the same toolbar menu as the when in view mode, but
with fold replaced by unfold


enjoy,
-e

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: CollapsedTiddlersPlugin - How to Activate?

2009-08-08 Thread SteveM

Eric  wolfgang,

Thanks!  I got it to work.

But hah!  The Collapsed View menu is aligned left.  I.e., Left of the
Tiddler title

How to push it back right?

SteveM

On Aug 8, 2:16 pm, Eric Shulman elsdes...@gmail.com wrote:
  Forgive me for being dense.  I read that you are telling me to simply
  add collapseTiddler to the ViewToolbar line of the ToolbarCommands
  Shadow Tiddler.  I did that and the fold menu item appeared on the
  View menu.  However when activated the Tiddler did fold but the View
  menu disappeared and a Macro error was generated, Error while
  executing macro tiddlerIcons: No such macro exists

  Can you walk through another step to fix that?

 The CollapsedTemplate from TiddlyTools has been customized to also
 include a call to the tiddlerIcons macro defined by
 TiddlerIconsPlugin.  You can remove this by changing this:
 -
 span class='toolbar' macro='toolbar
 [[ToolbarCommands::CollapsedToolbar]]'/span
 span class='title'
         span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
 important;'/span
         span macro='view title'/span
 /span
 
 to just this:
 
 span class='toolbar' macro='toolbar
 [[ToolbarCommands::CollapsedToolbar]]'/span
 span class='title' macro='view title'/span
 

 You will also need to add a new row to the 'slice table' definition in
 ToolbarCommands... First, copy the ViewToolbar row and name the new
 row CollapsedToolbar.  Then, in the value for CollapsedToolbar ,
 replace the 'collapseTiddler' command keyword with 'expandTiddler'.
 This will provide the same toolbar menu as the when in view mode, but
 with fold replaced by unfold

 enjoy,
 -e
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: CollapsedTiddlersPlugin - How to Activate?

2009-08-08 Thread Eric Shulman

 But hah!  The Collapsed View menu is aligned left.  I.e., Left of the
 Tiddler title

Normally, I add this to my StyleSheet:
   .toolbar { float:right; }

alternatively, you could specify the style inline in the ViewTemplate:

span class='toolbar' style='float:right' macro='toolbar
[[ToolbarCommands::CollapsedToolbar]]'/span

enjoy,
-e
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] GotoPlugin (ELS) on IE8 renders suggestion box off right side of page and not below goto box

2009-08-08 Thread rouilj

Hi all:

I am using:

http://www.TiddlyTools.com/#GotoPlugin version 1.9.2

in IE 8 with compatibility mode enabled.

When I type anything in the GotoPlugin search box, the suggestions
window/pane/whatever
is displayed to the right of the goto box which places it past the
right hand side of the screen.
I do get a horizontal scrollbar with which I can scroll to see it
(once I figured out it was there).
With Firefox 3.5.1 the suggestion window drops down from the goto
entry box rather than
being placed beside it.

If I disable the IE8 compatibility mode it works as expected, but then
YourSearchPlugin has issues (see:
http://groups.google.com/group/TiddlyWiki/browse_thread/thread/cffee3254381e478).

This is repeatable in a 2.5.2 empty.html with only ImportTiddlers and
GotoPlugin installed.

Does anybody have any ideas on how to fix this, or is it one of the
IE'isms that I will need to have
people live with?

-- rouilj

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] ELS StorySaverPlugin also displays Tiddlers inside of macros.

2009-08-08 Thread rouilj

Hi all:

I am using two plugins:

  the SlideShowPlugin from http://www.math.ist.utl.pt/~psoares/addons.html

  the StorySaverPlugin from http://www.tiddlytools.com/

The slide show plugin and the story saver plugin both use a (index)
tiddler that has links in it as a list of tidders to open/display. I
am using the same tiddler to provide:

  a standard slide show for presentation

  a follow along version of the slide show where students can record
  notes on the slides

  a printable version of the slides suitable for pdf/handouts

  a printable version of the slideshow with the student's notes.

However I would like to be able to have links in the index tiddler
that are not interpreted as links to display when opened via the
openStory macro.

I tried using transclusion tiddler SlideStyleLinks/print to hide
the links from the SlideShowPlugin so they didn't show up in the
slideshows, but the StorySaverPlugin's openStory opens the
SlideStyleLinks tiddler as part of the story. Also because I am using
the SlideShowPlugin, I have macros in the index tiddler like:

  slideShow  theme:InstructorSlideShowTheme toc:titles
footer:copyrightcopy; 2009br /John P. Rouillard clock:+
label:Instructor tooltip:Start slideshow in instructor projection
mode

that start the slideshow. However the presence of
InstructorSlideShowTheme in the macro triggers the openStory macro to
open the InstructorSlideShowTheme tiddler when opening the tiddlers in
the index tiddler.

I can think of two ways to handle this and filter out the unwanted
tiddlers:

  1) if the tiddler occurs as the argument to a macro, don't open
  it. However I am not sure how hard this is to implement as the
  tiddler list seems to be returned by tiddler.links[] and I am
  not sure if that has the filtering capabilities, and I would
  prefer to not have core tweaks to make this work.

  2) check each tiddler in the list (returned by tiddler.links) for
  the tag NoStoryDisplay, and if present don't open/display the
  tiddler.

I prefer 2 since I think it should be easier to implement (although
beyond my current capabilities I am afraid), and it is a more general
solution as I may have tiddler links outside of macros that I don't
wish to display as part of a story.

Also method 2 provides a mechanism to have displayed and undisplayed
versions of the same content by tagging one tiddler say TiddlerOne
with NoStoryDisplay. Then create TiddlerTwo with the contents
tiddler TiddlerOne where TiddlerTwo is not tagged with
NoStoryDisplay.

So am I missing an easy way to do what I need that requires no code
changes?

Thanks for any ideas/patches.

-- rouilj

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] can I display date and time in the head

2009-08-08 Thread stunix

I know there is a time on my pc but for reasons i cant explain here i
would like to display a live date and time on the page somewhere.  ive
played with some of the scripts from dynamic drive but from what I can
tell, it would need to be a plugin.  does anyone know how this would
be done?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: can I display date and time in the head

2009-08-08 Thread rtimwest

Eric Shulman's Shulman'sDigitalClock plugin alone can do this,
depending on where you want it...

I'm using it with my own code to display the date in dot format in
conjunction with (Swatch) Internet Time, but it can display ordinary
date/time formats without my plugin:

www.rtimwest.com

  ...if that's what you're going for.

You can get it off of Eric's site:  www.tiddlytools.com.


On Aug 8, 4:03 pm, stunix s...@stunix.com wrote:
 I know there is a time on my pc but for reasons i cant explain here i
 would like to display a live date and time on the page somewhere.  ive
 played with some of the scripts from dynamic drive but from what I can
 tell, it would need to be a plugin.  does anyone know how this would
 be done?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: can I display date and time in the head

2009-08-08 Thread rtimwest

Eric Shulman's DigitalClock plugin alone can do this,
depending on where you want it...

I'm using it with my own code to display the date in dot format in
conjunction with (Swatch) Internet Time, but it can display ordinary
date/time formats without my plugin:

www.rtimwest.com

  ...if that's what you're going for.

You can get it off of Eric's site:  www.tiddlytools.com.

On Aug 8, 4:03 pm, stunix s...@stunix.com wrote:
 I know there is a time on my pc but for reasons i cant explain here i
 would like to display a live date and time on the page somewhere.  ive
 played with some of the scripts from dynamic drive but from what I can
 tell, it would need to be a plugin.  does anyone know how this would
 be done?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: ForEachTiddlerPlugin output alters with a space character

2009-08-08 Thread Morris Gray

Just a guess but perhaps it is considering the back-slash a
delimiter

Morris

On Aug 9, 3:13 am, shavinder shavinderpalsi...@gmail.com wrote:
 guys please have a look 
 herehttp://classrecords.tiddlyspot.com/#StudentGroupSliders
 In the function getGroupTitle() in the line:
  str = part\x22+(context.lastGroup?context.lastGroup:no Student
 Group) + \x22;

 when i introduce a space after part and before \x22 the
 foreachtiddler macro does not display the first group name. why is it??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: ForEachTiddlerPlugin output alters with a space character

2009-08-08 Thread Eric Shulman



On Aug 8, 10:13 am, shavinder shavinderpalsi...@gmail.com wrote:
 guys please have a look 
 herehttp://classrecords.tiddlyspot.com/#StudentGroupSliders
 In the function getGroupTitle() in the line:
  str = part\x22+(context.lastGroup?context.lastGroup:no Student
 Group) + \x22;

 when i introduce a space after part and before \x22 the
 foreachtiddler macro does not display the first group name. why is it??

The space is necessary so that part ... is output, rather than
part

I think the problem is that you aren't ever outputting a final /
part.  In addition to including the space in the above code, try
also adding an 'end' clause to the forEachTiddler macro:

end '/part'

-e

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: Blog Spam plugins

2009-08-08 Thread rakugo


Can i dig a little bit more to understand how you want to use
tiddlywiki as a blog? I would urge you to consider using tiddlyweb.
Myself and bengillies - jonrobson.me.uk and www.bengillies.net are
both using tiddlyweb as a blogging platform. Tiddlywiki on its own is
not suitable at all in my opinion... Please let me know more about
your intentions and maybe i can help.
On Aug 8, 6:32 pm, lynnjUK lej2...@googlemail.com wrote:
 I don't know about blogs, but Eric'shttp://www.tiddlytools.com/has a
 comments feature.  You will need to modify it to make it work for you
 (by adding your own serverscript), but I have done this with success.

 On Aug 5, 5:53 am, Senthil Nambi senthil...@gmail.com wrote:

  Hey guys,

  Is there a blog plugin for tiddlywiki that actually works? Google
  search brings me this plugin (http://www.anshul.info/blogwiki.html)
  but it doesn't seem to work me.

  Also I'm afraid if I switch to Tiddlywiki as my primary blogging
  platform, I'll be swarmed with spam. Any Captcha supported comments
  feature?

  Thank you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] replace in macros

2009-08-08 Thread Kris Fremen

I use this in a macro to add a something new between the first and the
second line:
var txt=txtoriginal.replace(/(.+)\n(.+)/, '$1\n' + txtcheckbox + '\n
$2')

Problem is that when i use $1, because the macro accepts arguments the
$1 is actually the argument AND the substitution, which clearly makes
a mess out of the tiddler...

Any way to fix this or an alternative to this method?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: replace in macros

2009-08-08 Thread Eric Shulman



On Aug 8, 3:31 pm, Kris Fremen krisfre...@gmail.com wrote:
 I use this in a macro to add a something new between the first and the
 second line:
 var txt=txtoriginal.replace(/(.+)\n(.+)/, '$1\n' + txtcheckbox + '\n
 $2')

 Problem is that when i use $1, because the macro accepts arguments the
 $1 is actually the argument AND the substitution, which clearly makes
 a mess out of the tiddler...

Perhaps this would work:

var txt=txtoriginal.replace(/(.+)\n(.+)/, '$'+'1\n' + txtcheckbox + '\n
$'+'2')


-e



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: replace in macros

2009-08-08 Thread Kris Fremen

Yes, it does work!!
Thanks for the prompt reply Eric

On Aug 8, 11:52 pm, Eric Shulman elsdes...@gmail.com wrote:
 On Aug 8, 3:31 pm, Kris Fremen krisfre...@gmail.com wrote:

  I use this in a macro to add a something new between the first and the
  second line:
  var txt=txtoriginal.replace(/(.+)\n(.+)/, '$1\n' + txtcheckbox + '\n
  $2')

  Problem is that when i use $1, because the macro accepts arguments the
  $1 is actually the argument AND the substitution, which clearly makes
  a mess out of the tiddler...

 Perhaps this would work:

 var txt=txtoriginal.replace(/(.+)\n(.+)/, '$'+'1\n' + txtcheckbox + '\n
 $'+'2')

 -e


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---