Hello,
I was creating a tool to make text batch processing (comparison, cleaning, getting unique values,etc) using TW as backend and I realized that some parts could be packed into a plugin. Basically we can say that I have created a plugin by mistake :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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/994c0f91-dc37-4b0f-9f0f-dcbe285fda18%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi DanieloExcellent, that's very neat - well done.
When I tried it out I misunderstood the "Global" option to mean that the operation would apply to all tiddlers.
but I do wonder if now that you're tantalisingly close to a true global search and replace,
perhaps the option should be relabelled.
Actually, I wonder if there is ever a situation where one would want it unchecked? Perhaps it can be removed entirely.
Jeremy, regarding the naming issue: I realized that the current implementation and even your proposal takes the same space as another button will do. So I think I will end up with a button for single replace labelled replace and another button labelled replace all. Most of search and replace menus works this way so I think it makes sense.
May you can help me with this. I have tried to use some special characters on the replace field (\n,\t etc) and I expected it to work. But it is not working, and I can't understand why. If I do any javascript replace on the console it works. I even tried using some TW functions on console like setText and it works at expected.$tw.wiki.setText("$:/temp/col-a",null,null,$tw.wiki.getTiddlerText("$:/temp/col-a").replace(/\n/g,"\n\n"))But I don't understand why it is not working when the "daemon" does the replacement. Hope you can figure it out.
Please can you point to the code?
Glad it finally worked
That's a good suggestion. However, this plugin is quite old, and it is previous to the editor bar. I don't have experience with it, so I don't know how easy or hard would be to integrate it .