kookma / TW-Commander

A tiddler toolkit for Tiddlywiki 5. Batch operations on bulk of tiddlers. Create, delete, add fields, tags, search and replace and inspect tiddlers.
https://kookma.github.io/TW-Commander/
49 stars 8 forks source link

Suggestion: Regex section allows non-destructive "test mode"? #7

Open TiddlyTweeter opened 5 years ago

TiddlyTweeter commented 5 years ago

An issue with Regular Expressions is they can have unpredictable results, especially in the text field. Safe testing is important to see the effect before application.

I'm wondering if it would be possible to have a "test-mode" where you apply regex to a temporary test tiddler before you apply it across Tiddlers?

Or maybe http://tw-regexp.tiddlyspot.com could have a subset of TC that allows that?

kookma commented 5 years ago

Do you mean by test mode to have preview before applying SnR? Or do you mean to add some test cases?

TiddlyTweeter commented 5 years ago

In my own work I'm working on adding both.

BUT, practically, all I think is needed is a "test area" where you can paste in data to test against that won't damage your existing Tiddlers.

kookma commented 5 years ago

I will see, but practically test area is not simple to be implemented! I will check to see if sandboxing is possible in Tiddlywiki or not!

TiddlyTweeter commented 5 years ago

I understand.

It may be it should be done as a separate tool? Not sure.